gmx-trjconv man page
gmx-trjconv — Convert and manipulates trajectory files gmx trjconv can convert trajectory files in many ways: gmx trjcat is better suited for concatenating multiple trajectory files. Option -ur sets the unit cell representation for options mol, res and atom of -pbc. All three options give different results for triclinic boxes and identical results for rectangular boxes. rect is the ordinary brick shape. tric is the triclinic unit cell. compact puts all atoms at the closest distance from the center of the box. This can be useful for visualizing e.g. truncated octahedra or rhombic dodecahedra. The center for options tric and compact is tric (see below), unless the option -boxcenter is set differently. Options to specify input files: Options to specify output files: Other options: gmx(1) 2016, GROMACS development team gmx(1).
gmx trjconv [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]]
[-fr [<.ndx>]] [-sub [<.ndx>]] [-drop [<.xvg>]]
[-o [<.xtc/.trr/...>]] [-b <time>] [-e <time>]
[-tu <enum>] [-[no]w] [-xvg <enum>] [-skip <int>]
[-dt <time>] [-[no]round] [-dump <time>] [-t0 <time>]
[-timestep <time>] [-pbc <enum>] [-ur <enum>]
[-[no]center] [-boxcenter <enum>] [-box <vector>]
[-trans <vector>] [-shift <vector>] [-fit <enum>]
[-ndec <int>] [-[no]vel] [-[no]force] [-trunc <time>]
[-exec <string>] [-split <time>] [-[no]sep]
[-nzero <int>] [-dropunder <real>] [-dropover <real>]
The following formats are supported for input and output: .xtc, .trr, .gro, .g96 and .pdb. The file formats are detected from the file extension. The precision of .xtc and .gro output is taken from the input file for .xtc, .gro and .pdb, and from the -ndec option for other input formats. The precision is always taken from -ndec, when this option is set. All other formats have fixed precision. .trr output can be single or double precision, depending on the precision of the gmx trjconv binary. Note that velocities are only supported in .trr, .gro and .g96 files.
Option -sep can be used to write every frame to a separate .gro, .g96 or .pdb file. By default, all frames all written to one file. .pdb files with all frames concatenated can be viewed with rasmol -nmrpdb.
It is possible to select part of your trajectory and write it out to a new trajectory file in order to save disk space, e.g. for leaving out the water from a trajectory of a protein in water. ALWAYS put the original trajectory on tape! We recommend to use the portable .xtc format for your analysis to save disk space and to have portable files.
There are two options for fitting the trajectory to a reference either for essential dynamics analysis, etc. The first option is just plain fitting to a reference structure in the structure file. The second option is a progressive fit in which the first timeframe is fitted to the reference structure in the structure file to obtain and each subsequent timeframe is fitted to the previously fitted structure. This way a continuous trajectory is generated, which might not be the case when using the regular fit method, e.g. when your protein undergoes large conformational transitions.
Option -pbc sets the type of periodic boundary condition treatment:
The separate option -clustercenter can be used to specify an approximate center for the cluster. This is useful e.g. if you have two big vesicles, and you want to maintain their relative positions.
Option -center centers the system in the box. The user can select the group which is used to determine the geometrical center. Option -boxcenter sets the location of the center of the box for options -pbc and -center. The center options are: tric: half of the sum of the box vectors, rect: half of the box diagonal, zero: zero. Use option -pbc mol in addition to -center when you want all molecules in the box after the centering.
Option -box sets the size of the new box. This option only works for leading dimensions and is thus generally only useful for rectangular boxes. If you want to modify only some of the dimensions, e.g. when reading from a trajectory, you can use -1 for those dimensions that should stay the same It is not always possible to use combinations of -pbc, -fit, -ur and -center to do exactly what you want in one call to gmx trjconv. Consider using multiple calls, and check out the GROMACS website for suggestions.
With -dt, it is possible to reduce the number of frames in the output. This option relies on the accuracy of the times in your input trajectory, so if these are inaccurate use the -timestep option to modify the time (this can be done simultaneously). For making smooth movies, the program gmx filter can reduce the number of frames while using low-pass frequency filtering, this reduces aliasing of high frequency motions.
Using -trunc gmx trjconv can truncate .trr in place, i.e. without copying the file. This is useful when a run has crashed during disk I/O (i.e. full disk), or when two contiguous trajectories must be concatenated without having double frames.
Option -dump can be used to extract a frame at or near one specific time from your trajectory, but only works reliably if the time interval between frames is uniform.
Option -drop reads an .xvg file with times and values. When options -dropunder and/or -dropover are set, frames with a value below and above the value of the respective options will not be written.
More information about GROMACS is available at <http://www.gromacs.org/>.
gmx trjconv can convert trajectory files in many ways:
gmx trjcat is better suited for concatenating multiple trajectory files.
Option -ur sets the unit cell representation for options mol, res and atom of -pbc. All three options give different results for triclinic boxes and identical results for rectangular boxes. rect is the ordinary brick shape. tric is the triclinic unit cell. compact puts all atoms at the closest distance from the center of the box. This can be useful for visualizing e.g. truncated octahedra or rhombic dodecahedra. The center for options tric and compact is tric (see below), unless the option -boxcenter is set differently.
Options to specify input files:
Options to specify output files:
2016, GROMACS development team