-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Trajectories #2
Comments
Should velocities and forces even be part of the MM Molecule definition? Maybe another way of thinking about this is to retain
This would be an efficient implementation for systems with static topologies. However, if someone wants to instantiate In the context of writing MMIC translators for MMSchema-MDAnalysis, this problem would then become converting |
So if I'm understanding this correctly, you would be proposing two separate classes, one that handles purely single frame inputs, and one that handles trajectories? I would suggest instead having I realise this is very much exactly how MDAnalysis handles things (so my viewpoint is probably biased), where you have a "static" Universe object that contains all the system information and then a timstep object that updates the system coordinates as you traverse through the trajectory (slight simplification of things, but close enough). Edit; this way, you can have everything be a class that derives from |
You've raised many good points so let me tackle them one by one:
|
ATM the Molecule model stores atomic information for a single frame. Generalizing this to a
Trajectory
class that stores an array ofMolecule
would be inefficient especially for classical MD simulation in which the topology remains static. Therefore, I'm leaning towards refactoring theMolecule
model into 2 by separating the topology from the atomic attributes (coordinates, velocities, etc.) which would then support time series. This would require either dropping qcelemental's Molecule model as a base, or asking @bennybp to change QCSchema.The 3 core models would then become:
coordinates
,velocities
,forces
,Topology
-> Efficient implementation for static topologies / closed systems typically used in the bio-MD world. Naturally supports trajectories.Molecule
connectivity-related info,symbols
,residues
, etc. -> Generalizable to support time-dependent topologies (Everything is a multi-dimensional array) for use with reactive forcefields, open systems for the materials community, etc.Pinging @IAlibay @lilyminium @fiona-naughton
The text was updated successfully, but these errors were encountered: