Load an Gromacs XTC file from disk.
Since the Gromacs XTC format doesn’t contain information to specify the topology, you need to supply the topology yourself.
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
>>> import mdtraj as md
>>> traj = md.load_xtc('output.xtc', top='topology.pdb')
>>> print traj
<mdtraj.Trajectory with 500 frames, 423 atoms at 0x110740a90>