Load a single frame from a trajectory file
Parameters: | filename : str
index : int
top : {str, Trajectory, Topology}
atom_indices : array_like, optional
|
---|---|
Returns: | trajectory : md.Trajectory
|
See also
Examples
>>> import mdtraj as md
>>> first_frame = md.load_frame('traj.h5', 0)
>>> print first_frame
<mdtraj.Trajectory with 1 frames, 22 atoms>