Moving from MDTraj¶
Change one line:
import dynome.compat as md # was: import mdtraj as md
t = md.load("traj.xtc", top="protein.pdb")
md.rmsd(t, t, 0)
md.compute_contacts(t, scheme="closest-heavy")
Covered so far: load, load_pdb, load_frame, load_topology, join, Trajectory,
Topology, the selection language, rmsd, rmsf, compute_distances,
compute_displacements, compute_angles, compute_dihedrals, compute_phi, compute_psi,
compute_omega, compute_rg, compute_center_of_mass, compute_center_of_geometry,
compute_contacts, compute_neighbors and shrake_rupley.
Not yet covered: secondary structure (compute_dssp), hydrogen-bond detection, NMR observables
and compute_chi*. Topologies read from PDB carry only CONECT bonds; standard residue bonds
are not generated yet.
Known differences from MDTraj, each pinned by a test:
- Atom names are kept as written in the file. MDTraj renames some by default; pass
standard_names=Falseto MDTraj to get the same names. rmsfwithatom_indicesequals the RMSF of those atoms sliced out first. MDTraj's own two routes to that number disagree with each other.shrake_rupleytreats frames independently. MDTraj's value for a frame can shift by about 0.1% depending on which frames are computed with it.