4 <LINK rel=stylesheet
href=
"style.css" type=
"text/css">
5 <BODY text=
"#000000" bgcolor=
"#FFFFFF" link=
"#0000FF" vlink=
"#990000" alink=
"#FF0000">
6 <TABLE WIDTH=
"98%" NOBORDER
>
8 <TABLE WIDTH=
400 NOBORDER
>
10 <a href=
"http://www.gromacs.org/"><img SRC=
"../images/gmxlogo_small.png"BORDER=
0 </a></td>
11 <td ALIGN=LEFT VALIGN=TOP WIDTH=
280><br><h2>trjconv
</h2><font size=-
1><A HREF=
"../online.html">Main Table of Contents
</A></font><br><br></td>
12 </TABLE></TD><TD WIDTH=
"*" ALIGN=RIGHT VALIGN=BOTTOM
><p><B>VERSION
4.0<br>
13 Sun
18 Jan
2009</B></td></tr></TABLE>
17 trjconv can convert trajectory files in many ways:
<br>
18 <b>1.
</b> from one format to another
<br>
19 <b>2.
</b> select a subset of atoms
<br><b>3.
</b> change the periodicity representation
<br>
20 <b>4.
</b> keep multimeric molecules together
<br>
21 <b>5.
</b> center atoms in the box
<br>
22 <b>6.
</b> fit atoms to reference structure
<br>
23 <b>7.
</b> reduce the number of frames
<br>
24 <b>8.
</b> change the timestamps of the frames
25 (
<tt>-t0
</tt> and
<tt>-timestep
</tt>)
<br>
26 <b>9.
</b> cut the trajectory in small subtrajectories according
27 to information in an index file. This allows subsequent analysis of
28 the subtrajectories that could, for example be the result of a
29 cluster analysis. Use option
<tt>-sub
</tt>.
30 This assumes that the entries in the index file are frame numbers and
31 dumps each group in the index file to a separate trajectory file.
<br>
32 <b>10.
</b> select frames within a certain range of a quantity given
33 in an
<tt>.
<a href=
"xvg.html">xvg
</a></tt> file.
<p>
34 The program
<tt><a href=
"trjcat.html">trjcat
</a></tt> can concatenate multiple trajectory files.
36 Currently seven formats are supported for input and output:
37 <tt>.
<a href=
"xtc.html">xtc
</a></tt>,
<tt>.
<a href=
"trr.html">trr
</a></tt>,
<tt>.
<a href=
"trj.html">trj
</a></tt>,
<tt>.
<a href=
"gro.html">gro
</a></tt>,
<tt>.
<a href=
"g96.html">g96
</a></tt>,
38 <tt>.
<a href=
"pdb.html">pdb
</a></tt> and
<tt>.
<a href=
"g87.html">g87
</a></tt>.
39 The file formats are detected from the file extension.
40 The precision of
<tt>.
<a href=
"xtc.html">xtc
</a></tt> and
<tt>.
<a href=
"gro.html">gro
</a></tt> output is taken from the
41 input file for
<tt>.
<a href=
"xtc.html">xtc
</a></tt>,
<tt>.
<a href=
"gro.html">gro
</a></tt> and
<tt>.
<a href=
"pdb.html">pdb
</a></tt>,
42 and from the
<tt>-ndec
</tt> option for other input formats. The precision
43 is always taken from
<tt>-ndec
</tt>, when this option is set.
44 All other formats have fixed precision.
<tt>.
<a href=
"trr.html">trr
</a></tt> and
<tt>.
<a href=
"trj.html">trj
</a></tt>
45 output can be single or double precision, depending on the precision
46 of the trjconv binary.
47 Note that velocities are only supported in
48 <tt>.
<a href=
"trr.html">trr
</a></tt>,
<tt>.
<a href=
"trj.html">trj
</a></tt>,
<tt>.
<a href=
"gro.html">gro
</a></tt> and
<tt>.
<a href=
"g96.html">g96
</a></tt> files.
<p>
49 Option
<tt>-app
</tt> can be used to
50 append output to an existing trajectory file.
51 No checks are performed to ensure integrity
52 of the resulting combined trajectory file.
<p>
53 Option
<tt>-sep
</tt> can be used to write every frame to a seperate
54 .
<a href=
"gro.html">gro
</a>, .
<a href=
"g96.html">g96
</a> or .
<a href=
"pdb.html">pdb
</a> file, default all frames all written to one file.
55 <tt>.
<a href=
"pdb.html">pdb
</a></tt> files with all frames concatenated can be viewed with
56 <tt>rasmol -nmrpdb
</tt>.
<p>
57 It is possible to select part of your trajectory and write it out
58 to a new trajectory file in order to save disk space, e.g. for leaving
59 out the water from a trajectory of a protein in water.
60 <b>ALWAYS
</b> put the original trajectory on tape!
61 We recommend to use the portable
<tt>.
<a href=
"xtc.html">xtc
</a></tt> format for your analysis
62 to save disk space and to have portable files.
<p>
63 There are two options for fitting the trajectory to a reference
64 either for essential dynamics analysis or for whatever.
65 The first option is just plain fitting to a reference structure
66 in the structure file, the second option is a progressive fit
67 in which the first timeframe is fitted to the reference structure
68 in the structure file to obtain and each subsequent timeframe is
69 fitted to the previously fitted structure. This way a continuous
70 trajectory is generated, which might not be the case when using the
71 regular fit method, e.g. when your protein undergoes large
72 conformational transitions.
<p>
73 Option
<tt>-pbc
</tt> sets the type of periodic boundary condition
75 *
<tt>mol
</tt> puts the center of mass of molecules in the box.
<br>
76 *
<tt>res
</tt> puts the center of mass of residues in the box.
<br>
77 *
<tt>atom
</tt> puts all the atoms in the box.
<br>
78 *
<tt>nojump
</tt> checks if atoms jump across the box and then puts
79 them back. This has the effect that all molecules
80 will remain whole (provided they were whole in the initial
81 conformation), note that this ensures a continuous trajectory but
82 molecules may diffuse out of the box. The starting configuration
83 for this procedure is taken from the structure file, if one is
84 supplied, otherwise it is the first frame.
<br>
85 *
<tt>cluster
</tt> clusters all the atoms in the selected index
86 such that they are all closest to the center of mass of the cluster
87 which is iteratively updated. Note that this will only give meaningful
88 results if you in fact have a cluster. Luckily that can be checked
89 afterwards using a trajectory viewer. Note also that if your molecules
90 are broken this will not work either.
<br>
91 *
<tt>whole
</tt> only makes broken molecules whole.
<p>
92 Option
<tt>-ur
</tt> sets the unit cell representation for options
93 <tt>mol
</tt>,
<tt>res
</tt> and
<tt>atom
</tt> of
<tt>-pbc
</tt>.
94 All three options give different results for triclinc boxes and
95 identical results for rectangular boxes.
96 <tt>rect
</tt> is the ordinary brick shape.
97 <tt>tric
</tt> is the triclinic unit cell.
98 <tt>compact
</tt> puts all atoms at the closest distance from the center
99 of the box. This can be useful for visualizing e.g. truncated
100 octahedrons. The center for options
<tt>tric
</tt> and
<tt>compact
</tt>
101 is
<tt>tric
</tt> (see below), unless the option
<tt>-boxcenter
</tt>
102 is set differently.
<p>
103 Option
<tt>-center
</tt> centers the system in the box. The user can
104 select the group which is used to determine the geometrical center.
105 Option
<tt>-boxcenter
</tt> sets the location of the center of the box
106 for options
<tt>-pbc
</tt> and
<tt>-center
</tt>. The center options are:
107 <tt>tric
</tt>: half of the sum of the box vectors,
108 <tt>rect
</tt>: half of the box diagonal,
110 Use option
<tt>-pbc mol
</tt> in addition to
<tt>-center
</tt> when you
111 want all molecules in the box after the centering.
<p>
112 With
<tt>-dt
</tt> it is possible to reduce the number of
113 frames in the output. This option relies on the accuracy of the times
114 in your input trajectory, so if these are inaccurate use the
115 <tt>-timestep
</tt> option to modify the time (this can be done
116 simultaneously). For making smooth movies the program
<tt><a href=
"g_filter.html">g_filter
</a></tt>
117 can reduce the number of frames while using low-pass frequency
118 filtering, this reduces aliasing of high frequency motions.
<p>
119 Using
<tt>-trunc
</tt> trjconv can truncate
<tt>.
<a href=
"trj.html">trj
</a></tt> in place, i.e.
120 without copying the file. This is useful when a run has crashed
121 during disk I/O (one more disk full), or when two contiguous
122 trajectories must be concatenated without have double frames.
<p>
123 <tt><a href=
"trjcat.html">trjcat
</a></tt> is more suitable for concatenating trajectory files.
<p>
124 Option
<tt>-dump
</tt> can be used to extract a frame at or near
125 one specific time from your trajectory.
<p>
126 Option
<tt>-drop
</tt> reads an
<tt>.
<a href=
"xvg.html">xvg
</a></tt> file with times and values.
127 When options
<tt>-dropunder
</tt> and/or
<tt>-dropover
</tt> are set,
128 frames with a value below and above the value of the respective options
132 <TABLE BORDER=
1 CELLSPACING=
0 CELLPADDING=
2>
133 <TR><TH>option
</TH><TH>filename
</TH><TH>type
</TH><TH>description
</TH></TR>
134 <TR><TD ALIGN=RIGHT
> <b><tt>-f
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"files.html"> traj.xtc
</a></tt> </TD><TD> Input
</TD><TD> Trajectory:
<a href=
"xtc.html">xtc
</a> <a href=
"trr.html">trr
</a> <a href=
"trj.html">trj
</a> <a href=
"gro.html">gro
</a> <a href=
"g96.html">g96
</a> <a href=
"pdb.html">pdb
</a> cpt
</TD></TR>
135 <TR><TD ALIGN=RIGHT
> <b><tt>-o
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"files.html"> trajout.xtc
</a></tt> </TD><TD> Output
</TD><TD> Trajectory:
<a href=
"xtc.html">xtc
</a> <a href=
"trr.html">trr
</a> <a href=
"trj.html">trj
</a> <a href=
"gro.html">gro
</a> <a href=
"g96.html">g96
</a> <a href=
"pdb.html">pdb
</a> </TD></TR>
136 <TR><TD ALIGN=RIGHT
> <b><tt>-s
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"files.html"> topol.tpr
</a></tt> </TD><TD> Input, Opt.
</TD><TD> Structure+mass(db):
<a href=
"tpr.html">tpr
</a> <a href=
"tpb.html">tpb
</a> <a href=
"tpa.html">tpa
</a> <a href=
"gro.html">gro
</a> <a href=
"g96.html">g96
</a> <a href=
"pdb.html">pdb
</a> </TD></TR>
137 <TR><TD ALIGN=RIGHT
> <b><tt>-n
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"ndx.html"> index.ndx
</a></tt> </TD><TD> Input, Opt.
</TD><TD> Index file
</TD></TR>
138 <TR><TD ALIGN=RIGHT
> <b><tt>-fr
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"ndx.html"> frames.ndx
</a></tt> </TD><TD> Input, Opt.
</TD><TD> Index file
</TD></TR>
139 <TR><TD ALIGN=RIGHT
> <b><tt>-sub
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"ndx.html"> cluster.ndx
</a></tt> </TD><TD> Input, Opt.
</TD><TD> Index file
</TD></TR>
140 <TR><TD ALIGN=RIGHT
> <b><tt>-drop
</tt></b> </TD><TD ALIGN=RIGHT
> <tt><a href=
"xvg.html"> drop.xvg
</a></tt> </TD><TD> Input, Opt.
</TD><TD> xvgr/xmgr file
</TD></TR>
143 <H3>Other options
</H3>
144 <TABLE BORDER=
1 CELLSPACING=
0 CELLPADDING=
2>
145 <TR><TH>option
</TH><TH>type
</TH><TH>default
</TH><TH>description
</TH></TR>
146 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]h
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> Print help info and quit
</TD></TD>
147 <TR><TD ALIGN=RIGHT
> <b><tt>-nice
</tt></b> </TD><TD ALIGN=RIGHT
> int
</TD><TD ALIGN=RIGHT
> <tt>19</tt> </TD><TD> Set the nicelevel
</TD></TD>
148 <TR><TD ALIGN=RIGHT
> <b><tt>-b
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> First frame (ps) to read from trajectory
</TD></TD>
149 <TR><TD ALIGN=RIGHT
> <b><tt>-e
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Last frame (ps) to read from trajectory
</TD></TD>
150 <TR><TD ALIGN=RIGHT
> <b><tt>-tu
</tt></b> </TD><TD ALIGN=RIGHT
> enum
</TD><TD ALIGN=RIGHT
> <tt>ps
</tt> </TD><TD> Time unit:
<tt>ps
</tt>,
<tt>fs
</tt>,
<tt>ns
</tt>,
<tt>us
</tt>,
<tt>ms
</tt> or
<tt>s
</tt> </TD></TD>
151 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]w
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> View output
<a href=
"xvg.html">xvg
</a>,
<a href=
"xpm.html">xpm
</a>,
<a href=
"eps.html">eps
</a> and
<a href=
"pdb.html">pdb
</a> files
</TD></TD>
152 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]xvgr
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>yes
</tt> </TD><TD> Add specific codes (legends etc.) in the output
<a href=
"xvg.html">xvg
</a> files for the xmgrace program
</TD></TD>
153 <TR><TD ALIGN=RIGHT
> <b><tt>-skip
</tt></b> </TD><TD ALIGN=RIGHT
> int
</TD><TD ALIGN=RIGHT
> <tt>1</tt> </TD><TD> Only write every nr-th frame
</TD></TD>
154 <TR><TD ALIGN=RIGHT
> <b><tt>-dt
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Only write frame when t MOD dt = first time (ps)
</TD></TD>
155 <TR><TD ALIGN=RIGHT
> <b><tt>-dump
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>-
1 </tt> </TD><TD> Dump frame nearest specified time (ps)
</TD></TD>
156 <TR><TD ALIGN=RIGHT
> <b><tt>-t0
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Starting time (ps) (default: don't change)
</TD></TD>
157 <TR><TD ALIGN=RIGHT
> <b><tt>-timestep
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Change time step between input frames (ps)
</TD></TD>
158 <TR><TD ALIGN=RIGHT
> <b><tt>-pbc
</tt></b> </TD><TD ALIGN=RIGHT
> enum
</TD><TD ALIGN=RIGHT
> <tt>none
</tt> </TD><TD> PBC treatment (see help text for full description):
<tt>none
</tt>,
<tt>mol
</tt>,
<tt>res
</tt>,
<tt>atom
</tt>,
<tt>nojump
</tt>,
<tt>cluster
</tt> or
<tt>whole
</tt> </TD></TD>
159 <TR><TD ALIGN=RIGHT
> <b><tt>-ur
</tt></b> </TD><TD ALIGN=RIGHT
> enum
</TD><TD ALIGN=RIGHT
> <tt>rect
</tt> </TD><TD> Unit-cell representation:
<tt>rect
</tt>,
<tt>tric
</tt> or
<tt>compact
</tt> </TD></TD>
160 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]center
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> Center atoms in box
</TD></TD>
161 <TR><TD ALIGN=RIGHT
> <b><tt>-boxcenter
</tt></b> </TD><TD ALIGN=RIGHT
> enum
</TD><TD ALIGN=RIGHT
> <tt>tric
</tt> </TD><TD> Center for -pbc and -center:
<tt>tric
</tt>,
<tt>rect
</tt> or
<tt>zero
</tt> </TD></TD>
162 <TR><TD ALIGN=RIGHT
> <b><tt>-box
</tt></b> </TD><TD ALIGN=RIGHT
> vector
</TD><TD ALIGN=RIGHT
> <tt>0 0 0</tt> </TD><TD> Size for new cubic box (default: read from input)
</TD></TD>
163 <TR><TD ALIGN=RIGHT
> <b><tt>-trans
</tt></b> </TD><TD ALIGN=RIGHT
> vector
</TD><TD ALIGN=RIGHT
> <tt>0 0 0</tt> </TD><TD> All coordinates will be translated by trans. This can advantageously be combined with -pbc mol -ur compact.
</TD></TD>
164 <TR><TD ALIGN=RIGHT
> <b><tt>-shift
</tt></b> </TD><TD ALIGN=RIGHT
> vector
</TD><TD ALIGN=RIGHT
> <tt>0 0 0</tt> </TD><TD> All coordinates will be shifted by framenr*shift
</TD></TD>
165 <TR><TD ALIGN=RIGHT
> <b><tt>-fit
</tt></b> </TD><TD ALIGN=RIGHT
> enum
</TD><TD ALIGN=RIGHT
> <tt>none
</tt> </TD><TD> Fit molecule to ref structure in the structure file:
<tt>none
</tt>,
<tt>rot+trans
</tt>,
<tt>rotxy+transxy
</tt>,
<tt>translation
</tt> or
<tt>progressive
</tt> </TD></TD>
166 <TR><TD ALIGN=RIGHT
> <b><tt>-ndec
</tt></b> </TD><TD ALIGN=RIGHT
> int
</TD><TD ALIGN=RIGHT
> <tt>3</tt> </TD><TD> Precision for .
<a href=
"xtc.html">xtc
</a> and .
<a href=
"gro.html">gro
</a> writing in number of decimal places
</TD></TD>
167 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]vel
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>yes
</tt> </TD><TD> Read and write velocities if possible
</TD></TD>
168 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]force
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> Read and write forces if possible
</TD></TD>
169 <TR><TD ALIGN=RIGHT
> <b><tt>-trunc
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>-
1 </tt> </TD><TD> Truncate input
<a href=
"trj.html">trj
</a> file after this time (ps)
</TD></TD>
170 <TR><TD ALIGN=RIGHT
> <b><tt>-exec
</tt></b> </TD><TD ALIGN=RIGHT
> string
</TD><TD ALIGN=RIGHT
> <tt></tt> </TD><TD> Execute command for every output frame with the frame number as argument
</TD></TD>
171 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]app
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> Append output
</TD></TD>
172 <TR><TD ALIGN=RIGHT
> <b><tt>-split
</tt></b> </TD><TD ALIGN=RIGHT
> time
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Start writing new file when t MOD split = first time (ps)
</TD></TD>
173 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]sep
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> Write each frame to a separate .
<a href=
"gro.html">gro
</a>, .
<a href=
"g96.html">g96
</a> or .
<a href=
"pdb.html">pdb
</a> file
</TD></TD>
174 <TR><TD ALIGN=RIGHT
> <b><tt>-nzero
</tt></b> </TD><TD ALIGN=RIGHT
> int
</TD><TD ALIGN=RIGHT
> <tt>0</tt> </TD><TD> Prepend file number in case you use the -sep flag with this number of zeroes
</TD></TD>
175 <TR><TD ALIGN=RIGHT
> <b><tt>-[no]ter
</tt></b> </TD><TD ALIGN=RIGHT
> bool
</TD><TD ALIGN=RIGHT
> <tt>no
</tt> </TD><TD> Use 'TER' in
<a href=
"pdb.html">pdb
</a> file as end of frame in stead of default 'ENDMDL'
</TD></TD>
176 <TR><TD ALIGN=RIGHT
> <b><tt>-dropunder
</tt></b> </TD><TD ALIGN=RIGHT
> real
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Drop all frames below this value
</TD></TD>
177 <TR><TD ALIGN=RIGHT
> <b><tt>-dropover
</tt></b> </TD><TD ALIGN=RIGHT
> real
</TD><TD ALIGN=RIGHT
> <tt>0 </tt> </TD><TD> Drop all frames above this value
</TD></TD>
182 <font size=
"-1"><a href=
"http://www.gromacs.org">http://www.gromacs.org
</a></font><br>
183 <font size=
"-1"><a href=
"mailto:gromacs@gromacs.org">gromacs@gromacs.org
</a></font><br>