-
|
Hi everyone, I've been implementing an mmcif reader for MDAnalysis (PR link), and was thinking also to add an MMCIFWriter in the future. That would allow to (relatively) seamlessly convert between all available formats in MDAnalysis, and mmcif, for whatever needs. I wonder if there's a "canonical" way to do that, given e.g. we have multiple arrays with precise attribute mapping in place (see this parsing code)? I'd be looking for something like that: One option that I also have in mind is to create a PDB string with built-in PDBWriter in MDAnalysis and than just read it from StringIO with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
|
You can make an empty Model with: I'm afraid there is no easy way to set coordinates, bfactors etc from arrays. |
Beta Was this translation helpful? Give feedback.
-
|
@wojdyr that's actually cool, I'll have a look into that regarding making a model from scratch. Another question that arises after reading that -- seems that However, I can't seem to find all the properties that I need in the I need: but I can see only dir(flat_structure)
[
...
# magic methods
'atom_names',
'b_iso',
'chain_ids',
'charge',
'entity_ids',
'generate_structure',
'model_num',
'occ',
'pos',
'residue_names',
'selected',
'subchains'] |
Beta Was this translation helpful? Give feedback.
You can make an empty Model with:
I'm afraid there is no easy way to set coordinates, bfactors etc from arrays.
I'll keep your request in mind.
Cheers
Marcin