This is a read-only mirror of pymolwiki.org
Difference between revisions of "Get Dihedral"
Jump to navigation
Jump to search
m (5 revisions) |
m |
||
Line 1: | Line 1: | ||
− | |||
'''get_dihedral''' returns the dihedral angle between four atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided. | '''get_dihedral''' returns the dihedral angle between four atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided. | ||
Line 5: | Line 4: | ||
===USAGE=== | ===USAGE=== | ||
− | + | <source lang="python"> | |
+ | get_dihedral atom1, atom2, atom3, atom4 [,state ] | ||
+ | </source> | ||
===EXAMPLES=== | ===EXAMPLES=== | ||
− | + | <source lang="python"> | |
− | + | get_dihedral 4/n,4/c,4/ca,4/cb | |
+ | get_dihedral 4/n,4/c,4/ca,4/cb,state=4 | ||
+ | </source> | ||
===PYMOL API=== | ===PYMOL API=== |
Revision as of 08:40, 20 October 2015
get_dihedral returns the dihedral angle between four atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided.
By convention, positive dihedral angles are right-handed (looking down the atom2-atom3 axis).
USAGE
get_dihedral atom1, atom2, atom3, atom4 [,state ]
EXAMPLES
get_dihedral 4/n,4/c,4/ca,4/cb
get_dihedral 4/n,4/c,4/ca,4/cb,state=4
PYMOL API
cmd.get_dihedral(atom1,atom2,atom3,atom4,state=0)