Trajectory Reference¶
Loading molecular dynamics trajectories is easy with MDTraj.
>>> import mdtraj as md
>>> t = md.load('trajectory.pdb')
The function mdtraj.load()
will automatically detect the appropriate
format based on the filename extension. The supported formats are all
listed below in the format-specific loaders. The return value of
mdtraj.load()
is an mdtraj.Trajectory
object.
While mdtraj.load()
will read an entire trajectory into memory, other
functions like mdtraj.iterload()
and mdtraj.open()
are
available for working with trajectories in chunks, without loading them
entirely into memory all at once.
Internal representation¶
|
Container object for a molecular dynamics trajectory |
|
Topology stores the topological information about a system. |
Format-agnostic loading functions¶
|
Load a trajectory from one or more files on disk. |
|
An iterator over a trajectory from one or more files on disk, in fragments |
|
Load a single frame from a trajectory file |
|
Open a trajectory file-like object |
|
Concatenate multiple trajectories into one long trajectory |
Format-specific loading functions¶
|
Load an AMBER .binpos file from disk. |
|
Load an deprecated MSMBuilder2 LH5 trajectory file. |
|
Load a RCSB Protein Data Bank file from disk. |
|
Load a single conformation from an OpenMM XML file. |
|
Load a TINKER .arc file from disk. |
|
Load an DCD file from disk. |
|
Load a dtr file from disk. |
|
Load an MDTraj hdf5 trajectory file from disk. |
|
Load an AMBER NetCDF file. |
|
Load a Gromacs TRR file from disk. |
|
Load a Gromacs XTC file from disk. |
|
Load an AMBER prmtop topology file from disk. |
|
Load a xyz trajectory file. |
|
Load a LAMMPS trajectory file. |
|
Load a single conformation from an HOOMD-Blue XML file. |