Created
August 22, 2013 21:00
-
-
Save kyleabeauchamp/6312718 to your computer and use it in GitHub Desktop.
Compute Dihedrals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mdtraj, mdtraj.geometry | |
import pandas as pd | |
traj = mdtraj.load("./traj.xtc", top="native.pdb") | |
atom_names = ["H", "N", "CA", "HA"] | |
resid, atom_indices = mdtraj.geometry.dihedral.atom_sequence_finder(traj, atom_names) | |
dih = mdtraj.geometry.compute_dihedrals(traj, atom_indices) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment