Action: TORSION
| Module | colvar |
|---|---|
| Description | Usage |
| Calculate one or multiple torsional angles. | |
| output value | type |
| the TORSION involving these atoms | scalar/vector |
Details and examples
Calculate one or multiple torsional angles.
This command can be used to compute the torsion between four atoms as shown by the input below:
t: TORSIONCalculate one or multiple torsional angles. More details ATOMSthe four atoms involved in the torsional angle=1,2,3,4 PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t FILEthe name of the file on which to output these quantities=COLVAR
Alternatively you can use this action to calculate the angle between two vectors projected on the plane orthogonal to an axis. The example below uses this syntax and computes the cosine of the torsion that was calculated in the first example input above.
t: TORSIONCalculate one or multiple torsional angles. More details VECTORAtwo atoms that define a vector=2,1 AXIStwo atoms that define an axis=2,3 VECTORBtwo atoms that define a vector=3,4 COSINE calculate cosine instead of dihedral PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t FILEthe name of the file on which to output these quantities=COLVAR
If you combine this sytax with the functionality in FIXEDATOM you can see how we can calculate the torsional angle between two bond vectors around the z-axis as shown below:
a0: FIXEDATOMAdd a virtual atom in a fixed position. This action has hidden defaults. More details ATcoordinates of the virtual atom=0,0,0 az: FIXEDATOMAdd a virtual atom in a fixed position. This action has hidden defaults. More details ATcoordinates of the virtual atom=0,0,1 t1: TORSIONCalculate one or multiple torsional angles. More details VECTORAtwo atoms that define a vector=1,2 AXIStwo atoms that define an axis=a0,az VECTORBtwo atoms that define a vector=5,6 PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t1 FILEthe name of the file on which to output these quantities=colvar STRIDE the frequency with which the quantities of interest should be output=20
If you are working with a protein you can specify the special named torsion angles , , and by using TORSION in combination with the MOLINFO command. This can be done by using the following syntax.
#SETTINGS MOLFILE=regtest/basic/rt32/helix.pdb MOLINFOThis command is used to provide information on the molecules that are present in your system. More details MOLTYPE what kind of molecule is contained in the pdb file - usually not needed since protein/RNA/DNA are compatible=protein STRUCTUREa file in pdb format containing a reference structure=regtest/basic/rt32/helix.pdbClick here to see an extract from this file.t1: TORSIONCalculate one or multiple torsional angles. More details ATOMSthe four atoms involved in the torsional angle=@phi-3the four atoms that are required to calculate the phi dihedral for residue 3. Click here for more information. t2: TORSIONCalculate one or multiple torsional angles. More details ATOMSthe four atoms involved in the torsional angle=@psi-4the four atoms that are required to calculate the psi dihedral for residue 4. Click here for more information. PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t1,t2 FILEthe name of the file on which to output these quantities=colvar STRIDE the frequency with which the quantities of interest should be output=10
Here, @phi-3 tells plumed that you would like to calculate the angle in the third residue of the protein.
Similarly @psi-4 tells plumed that you want to calculate the angle of the fourth residue of the protein.
If you would like to calculate multiple torsion angles at the same time you can use a command like the one shown below:
#SETTINGS MOLFILE=regtest/basic/rt32/helix.pdb MOLINFOThis command is used to provide information on the molecules that are present in your system. More details MOLTYPE what kind of molecule is contained in the pdb file - usually not needed since protein/RNA/DNA are compatible=protein STRUCTUREa file in pdb format containing a reference structure=regtest/basic/rt32/helix.pdbClick here to see an extract from this file.t1: TORSIONCalculate one or multiple torsional angles. More details ATOMS1the four atoms involved in the torsional angle=@phi-3the four atoms that are required to calculate the phi dihedral for residue 3. Click here for more information. ATOMS2the four atoms involved in the torsional angle=@phi-4the four atoms that are required to calculate the phi dihedral for residue 4. Click here for more information. ATOMS3the four atoms involved in the torsional angle=@phi-5the four atoms that are required to calculate the phi dihedral for residue 5. Click here for more information. ATOMS4the four atoms involved in the torsional angle=@phi-6the four atoms that are required to calculate the phi dihedral for residue 6. Click here for more information. ATOMS5the four atoms involved in the torsional angle=@phi-7the four atoms that are required to calculate the phi dihedral for residue 7. Click here for more information. PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t1 FILEthe name of the file on which to output these quantities=colvar STRIDE the frequency with which the quantities of interest should be output=10
This input tells PLUMED to calculate the angles in residues 3-7 of the protein. The output, t1, is a 5 dimensional vector.
Notice that you can also use the VECTORA, VECTORB axis syntax when calculating multiple torsions as shown below:
t: TORSIONCalculate one or multiple torsional angles. More details ... VECTORA1two atoms that define a vector=2,1 AXIS1two atoms that define an axis=2,3 VECTORB1two atoms that define a vector=3,4 VECTORA2two atoms that define a vector=6,5 AXIS2two atoms that define an axis=6,7 VECTORB2two atoms that define a vector=7,8 VECTORA3two atoms that define a vector=10,9 AXIS3two atoms that define an axis=10,11 VECTORB3two atoms that define a vector=11,12 ... PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t FILEthe name of the file on which to output these quantities=colvar STRIDE the frequency with which the quantities of interest should be output=20
This input would output a three dimensional vector of torsion angles.
The last thing to note is that by default a procedure akin to that used in WHOLEMOLECULES is used to ensure that the sets of atoms that are specified to each ATOMS keyword or set of VECTORA, AXIS and VECTORB keywords are not broken by the periodic boundary conditions. If you would like to turn this off for any reason you add the NOPBC in your input file as shown below:
t: TORSIONCalculate one or multiple torsional angles. More details ATOMSthe four atoms involved in the torsional angle=1,2,3,4 NOPBC ignore the periodic boundary conditions when calculating distances PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=t FILEthe name of the file on which to output these quantities=COLVAR
Input
The atoms that serve as the input for this action are specified using one or more of the keywords in the following table.
| Keyword | Type | Description |
|---|---|---|
| ATOMS | atoms | the four atoms involved in the torsional angle |
| AXIS | atoms | two atoms that define an axis |
| VECTORA | atoms | two atoms that define a vector |
| VECTORB | atoms | two atoms that define a vector |
Full list of keywords
The following table describes the keywords and options that can be used with this action
| Keyword | Type | Default | Description |
|---|---|---|---|
| ATOMS | input | none | the four atoms involved in the torsional angle |
| AXIS | input | none | two atoms that define an axis |
| VECTORA | input | none | two atoms that define a vector |
| VECTORB | input | none | two atoms that define a vector |
| NOPBC | optional | false | ignore the periodic boundary conditions when calculating distances |
| COSINE | optional | false | calculate cosine instead of dihedral |
deprecated keywords
The keywords in the following table can still be used with this action but have been deprecated
| Keyword | Description |
|---|---|
| VECTOR1 | You should use VECTORA instead of this keyword which was used in older versions of PLUMED and is provided for back compatibility only |
| VECTOR2 | You should use VECTORB instead of this keyword which was used in older versions of PLUMED and is provided for back compatibility only |