Load a dtr file from disk.
The .dtr format is a cross-platform compressed binary trajectory format produced by DESMOND. Many different trajectory formats are generated from different versions of DESMOND. They usually stores:
atomic coordinates velocities (or momentum that will be converted to velocity) box vectors time information other arbitrary data
WRAPPED_V_2 is produced by DESMOND released by Schrodinger since 2010.
Unlike other trajectory format, DESMOND trajectory splits frames into different files, and put them under a directory. Other auxiliary files containing meta data are also stored under the same directory. Among those files, there is one empty file named clickme.dtr, which is originally created to allow DESMOND trajectory to be loaded by VMD.
Parameters: | filename : str
top : {str, Trajectory, Topology}
stride : int, default=None
atom_indices : array_like, optional
frame : int, optional
|
---|---|
Returns: | trajectory : md.Trajectory
|
See also
Examples
>>> # loading clickme.dtr file under DESMOND trajectory directory
>>> import mdtraj as md
>>> traj = md.load_dtr('output_trj/clickme.dtr', top='topology.pdb')
>>> print traj
<mdtraj.Trajectory with 500 frames, 423 atoms at 0x110740a90>
>>> # loading DESMOND trajectory directory directly
>>> import mdtraj as md
>>> traj = md.load_dtr('output_trj', top='topology.pdb')
>>> print traj
<mdtraj.Trajectory with 500 frames, 423 atoms at 0x110740a90>