MDAnalysis as universal topology reader #949
Replies: 1 comment 3 replies
-
|
I agree that unifying the back-end to be just MDAnalysis and dropping Main reason I haven't currently headed in that direction:
Bringing that functionality either directly into MDA or just into MN would allow us to unify everything. An intermediate step could be parsing files with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @BradyAJohnston , @yuxuanzhuang , just wanted to make a note of this before I forget.
Currently, MN is using MDAnalysis only for Trajectories - regular ones and oxdna (with a custom topology parser). MDAnalysis supports loading a single topology file as well and has support for a wide variety of topology formats. The trajectory file is optional for creating a universe. MN UI (operator based import) currently requires a trajectory file to be specified. API doesn't have this limitation as a loaded universe is passed. With this, even regular
Moleculeentity formats can be loaded. These would be single frame universes, but allow using the annotations we have for it, framing based on the selection phrases orAtomGroups, etc. There isn't currently support for some formats like.cif,.bcifetc, but that doesn't seem difficult to add as it is pretty extensible.The selections for the
Moleculeentity seem a bit rigid and hardcoded today (one reason why I didn't venture to add more annotations there). Maybe having a generic molecular entity using MDAnalysis's universal reader will make things a lot simpler (both for an external API as well as internal implementations) and consistent across the major entities? We'd also immediately get support for a much wider variety of topology formats (like we did with theDensityentity grids by using MDAnalysisGridDataFormats). Maybe something to think about for the future. ThanksBeta Was this translation helpful? Give feedback.
All reactions