Analysis
Trajectory conversion
Gromacs can work with a number of trajectory file formats.
The two most important are
TRR Files
and
XTC Files.
You can get more information on trajectory file types (popup).
All trajectory conversions can be performed with the Gromacs tool trjconv
.
Create a trajectory file containing only protein atoms (select the protein group):
gmx trjconv -f md.xtc -s md.tpr -o md_protein.xtc -center -ur compact -pbc mol
*.gro
or *.pdb
file that contains the exact particles as the
trajectory, so other programs know how to interpret the numbers in the trajectory.
It is possible to dump the first frame at time 0 into a *.pdb
file:
gmx trjconv -f md.xtc -s md.tpr -o md_protein.pdb -center -ur compact -pbc mol -dump 0
*.tpr
) with the exact same particles
(protein atoms in this case), as it contains explicit information on bonds and enables Gromacs tools to handle
artifacts that are produced by molecules that cross periodic boundary conditions:
gmx convert-tpr -s md.tpr -o md_protein.tpr
Looking at the trajectory with VMD
After correction of the periodic boundaries, you can look the trajectory via VMD by the following command:
vmd md_protein.pdb md_protein.xtc
New Cartoon
representation for [KIGAKI]3
as drawing method.
For the coloring method, use the Secondary Structure
. Now, you can follow the MD simulation via the main
window of VMD. But the problem is that VMD does not update the secondary structure. Therefore, you need a free available TCL script
. Load
the following script into your working directory:
sscache.tclNext, open the Extensions > Tk consule
and type the following the commands to source and to activate
the script (ensure that script is located in the directory where you open VMD):
source sscache.tcl
start_sscache 0
Tk consule
:
stop_sscache 0
File > Save Visualization State
and choose the name with the ending *.vmd
(for instance, md_protein.vmd
). If you open this file with an editor, you will see that is a text file with all visualization settings (representations, colors, labels, display etc.). There is also a part with loading of the pdb file and after that, the tractory file. To open the md_protein.vmd
, you have to use the following command:
vmd -e md_protein.vmd
-e
means for VMD to read a text file which can contain a tcl script or a visualization state. Here, it is also recommended to open this file in the directory where the corresponding files (md_protein.pdb and md_protein.xtc
) are located. For more information and tutorials for VMD, consider this website of the developers.