Fixed macros that ended in semicolons
[gromacs.git] / man / man1 / trjconv.1
blob637edc2170dce2286d4207734caea9676a71cd29
1 .TH trjconv 1 "Mon 4 Apr 2011" "" "GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c"
2 .SH NAME
3 trjconv - converts and manipulates trajectory files
5 .B VERSION 4.5.4-dev-20110404-bc5695c
6 .SH SYNOPSIS
7 \f3trjconv\fP
8 .BI "\-f" " traj.xtc "
9 .BI "\-o" " trajout.xtc "
10 .BI "\-s" " topol.tpr "
11 .BI "\-n" " index.ndx "
12 .BI "\-fr" " frames.ndx "
13 .BI "\-sub" " cluster.ndx "
14 .BI "\-drop" " drop.xvg "
15 .BI "\-[no]h" ""
16 .BI "\-[no]version" ""
17 .BI "\-nice" " int "
18 .BI "\-b" " time "
19 .BI "\-e" " time "
20 .BI "\-tu" " enum "
21 .BI "\-[no]w" ""
22 .BI "\-xvg" " enum "
23 .BI "\-skip" " int "
24 .BI "\-dt" " time "
25 .BI "\-[no]round" ""
26 .BI "\-dump" " time "
27 .BI "\-t0" " time "
28 .BI "\-timestep" " time "
29 .BI "\-pbc" " enum "
30 .BI "\-ur" " enum "
31 .BI "\-[no]center" ""
32 .BI "\-boxcenter" " enum "
33 .BI "\-box" " vector "
34 .BI "\-clustercenter" " vector "
35 .BI "\-trans" " vector "
36 .BI "\-shift" " vector "
37 .BI "\-fit" " enum "
38 .BI "\-ndec" " int "
39 .BI "\-[no]vel" ""
40 .BI "\-[no]force" ""
41 .BI "\-trunc" " time "
42 .BI "\-exec" " string "
43 .BI "\-[no]app" ""
44 .BI "\-split" " time "
45 .BI "\-[no]sep" ""
46 .BI "\-nzero" " int "
47 .BI "\-dropunder" " real "
48 .BI "\-dropover" " real "
49 .BI "\-[no]conect" ""
50 .SH DESCRIPTION
51 \&\fB trjconv\fR can convert trajectory files in many ways:
53 \&\fB 1.\fR from one format to another
55 \&\fB 2.\fR select a subset of atoms
57 \&\fB 3.\fR change the periodicity representation
59 \&\fB 4.\fR keep multimeric molecules together
61 \&\fB 5.\fR center atoms in the box
63 \&\fB 6.\fR fit atoms to reference structure
65 \&\fB 7.\fR reduce the number of frames
67 \&\fB 8.\fR change the timestamps of the frames 
68 \&(\fB \-t0\fR and \fB \-timestep\fR)
70 \&\fB 9.\fR cut the trajectory in small subtrajectories according
71 \&to information in an index file. This allows subsequent analysis of
72 \&the subtrajectories that could, for example, be the result of a
73 \&cluster analysis. Use option \fB \-sub\fR.
74 \&This assumes that the entries in the index file are frame numbers and
75 \&dumps each group in the index file to a separate trajectory file.
77 \&\fB 10.\fR select frames within a certain range of a quantity given
78 \&in an \fB .xvg\fR file.
81 \&The program \fB trjcat\fR is better suited for concatenating multiple trajectory files.
85 \&Currently seven formats are supported for input and output:
86 \&\fB .xtc\fR, \fB .trr\fR, \fB .trj\fR, \fB .gro\fR, \fB .g96\fR,
87 \&\fB .pdb\fR and \fB .g87\fR.
88 \&The file formats are detected from the file extension.
89 \&The precision of \fB .xtc\fR and \fB .gro\fR output is taken from the
90 \&input file for \fB .xtc\fR, \fB .gro\fR and \fB .pdb\fR,
91 \&and from the \fB \-ndec\fR option for other input formats. The precision
92 \&is always taken from \fB \-ndec\fR, when this option is set.
93 \&All other formats have fixed precision. \fB .trr\fR and \fB .trj\fR
94 \&output can be single or double precision, depending on the precision
95 \&of the \fB trjconv\fR binary.
96 \&Note that velocities are only supported in
97 \&\fB .trr\fR, \fB .trj\fR, \fB .gro\fR and \fB .g96\fR files.
100 \&Option \fB \-app\fR can be used to
101 \&append output to an existing trajectory file.
102 \&No checks are performed to ensure integrity
103 \&of the resulting combined trajectory file.
106 \&Option \fB \-sep\fR can be used to write every frame to a separate
107 \&\fB .gro, .g96\fR or \fB .pdb\fR file. By default, all frames all written to one file.
108 \&\fB .pdb\fR files with all frames concatenated can be viewed with
109 \&\fB rasmol \-nmrpdb\fR.
112 \&It is possible to select part of your trajectory and write it out
113 \&to a new trajectory file in order to save disk space, e.g. for leaving
114 \&out the water from a trajectory of a protein in water.
115 \&\fB ALWAYS\fR put the original trajectory on tape!
116 \&We recommend to use the portable \fB .xtc\fR format for your analysis
117 \&to save disk space and to have portable files.
120 \&There are two options for fitting the trajectory to a reference
121 \&either for essential dynamics analysis, etc.
122 \&The first option is just plain fitting to a reference structure
123 \&in the structure file. The second option is a progressive fit
124 \&in which the first timeframe is fitted to the reference structure 
125 \&in the structure file to obtain and each subsequent timeframe is 
126 \&fitted to the previously fitted structure. This way a continuous
127 \&trajectory is generated, which might not be the case when using the
128 \&regular fit method, e.g. when your protein undergoes large
129 \&conformational transitions.
132 \&Option \fB \-pbc\fR sets the type of periodic boundary condition
133 \&treatment:
135 \&\fB * mol\fR puts the center of mass of molecules in the box.
137 \&\fB * res\fR puts the center of mass of residues in the box.
139 \&\fB * atom\fR puts all the atoms in the box.
141 \&\fB * nojump\fR checks if atoms jump across the box and then puts
142 \&them back. This has the effect that all molecules
143 \&will remain whole (provided they were whole in the initial
144 \&conformation). \fB Note\fR that this ensures a continuous trajectory but
145 \&molecules may diffuse out of the box. The starting configuration
146 \&for this procedure is taken from the structure file, if one is
147 \&supplied, otherwise it is the first frame.
149 \&\fB * cluster\fR clusters all the atoms in the selected index
150 \&such that they are all closest to the center of mass of the cluster,
151 \&which is iteratively updated. \fB Note\fR that this will only give meaningful
152 \&results if you in fact have a cluster. Luckily that can be checked
153 \&afterwards using a trajectory viewer. Note also that if your molecules
154 \&are broken this will not work either.
156 \&The separate option \fB \-clustercenter\fR can be used to specify an
157 \&approximate center for the cluster. This is useful e.g. if you have
158 \&two big vesicles, and you want to maintain their relative positions.
160 \&\fB * whole\fR only makes broken molecules whole.
163 \&Option \fB \-ur\fR sets the unit cell representation for options
164 \&\fB mol\fR, \fB res\fR and \fB atom\fR of \fB \-pbc\fR.
165 \&All three options give different results for triclinic boxes and
166 \&identical results for rectangular boxes.
167 \&\fB rect\fR is the ordinary brick shape.
168 \&\fB tric\fR is the triclinic unit cell.
169 \&\fB compact\fR puts all atoms at the closest distance from the center
170 \&of the box. This can be useful for visualizing e.g. truncated
171 \&octahedra. The center for options \fB tric\fR and \fB compact\fR
172 \&is \fB tric\fR (see below), unless the option \fB \-boxcenter\fR
173 \&is set differently.
176 \&Option \fB \-center\fR centers the system in the box. The user can
177 \&select the group which is used to determine the geometrical center.
178 \&Option \fB \-boxcenter\fR sets the location of the center of the box
179 \&for options \fB \-pbc\fR and \fB \-center\fR. The center options are:
180 \&\fB tric\fR: half of the sum of the box vectors,
181 \&\fB rect\fR: half of the box diagonal,
182 \&\fB zero\fR: zero.
183 \&Use option \fB \-pbc mol\fR in addition to \fB \-center\fR when you
184 \&want all molecules in the box after the centering.
187 \&With \fB \-dt\fR, it is possible to reduce the number of 
188 \&frames in the output. This option relies on the accuracy of the times
189 \&in your input trajectory, so if these are inaccurate use the
190 \&\fB \-timestep\fR option to modify the time (this can be done
191 \&simultaneously). For making smooth movies, the program \fB g_filter\fR
192 \&can reduce the number of frames while using low\-pass frequency
193 \&filtering, this reduces aliasing of high frequency motions.
196 \&Using \fB \-trunc\fR \fB trjconv\fR can truncate \fB .trj\fR in place, i.e.
197 \&without copying the file. This is useful when a run has crashed
198 \&during disk I/O (i.e. full disk), or when two contiguous
199 \&trajectories must be concatenated without having double frames.
202 \&Option \fB \-dump\fR can be used to extract a frame at or near
203 \&one specific time from your trajectory.
206 \&Option \fB \-drop\fR reads an \fB .xvg\fR file with times and values.
207 \&When options \fB \-dropunder\fR and/or \fB \-dropover\fR are set,
208 \&frames with a value below and above the value of the respective options
209 \&will not be written.
210 .SH FILES
211 .BI "\-f" " traj.xtc" 
212 .B Input
213  Trajectory: xtc trr trj gro g96 pdb cpt 
215 .BI "\-o" " trajout.xtc" 
216 .B Output
217  Trajectory: xtc trr trj gro g96 pdb 
219 .BI "\-s" " topol.tpr" 
220 .B Input, Opt.
221  Structure+mass(db): tpr tpb tpa gro g96 pdb 
223 .BI "\-n" " index.ndx" 
224 .B Input, Opt.
225  Index file 
227 .BI "\-fr" " frames.ndx" 
228 .B Input, Opt.
229  Index file 
231 .BI "\-sub" " cluster.ndx" 
232 .B Input, Opt.
233  Index file 
235 .BI "\-drop" " drop.xvg" 
236 .B Input, Opt.
237  xvgr/xmgr file 
239 .SH OTHER OPTIONS
240 .BI "\-[no]h"  "no    "
241  Print help info and quit
243 .BI "\-[no]version"  "no    "
244  Print version info and quit
246 .BI "\-nice"  " int" " 19" 
247  Set the nicelevel
249 .BI "\-b"  " time" " 0     " 
250  First frame (ps) to read from trajectory
252 .BI "\-e"  " time" " 0     " 
253  Last frame (ps) to read from trajectory
255 .BI "\-tu"  " enum" " ps" 
256  Time unit: \fB fs\fR, \fB ps\fR, \fB ns\fR, \fB us\fR, \fB ms\fR or \fB s\fR
258 .BI "\-[no]w"  "no    "
259  View output \fB .xvg\fR, \fB .xpm\fR, \fB .eps\fR and \fB .pdb\fR files
261 .BI "\-xvg"  " enum" " xmgrace" 
262  xvg plot formatting: \fB xmgrace\fR, \fB xmgr\fR or \fB none\fR
264 .BI "\-skip"  " int" " 1" 
265  Only write every nr\-th frame
267 .BI "\-dt"  " time" " 0     " 
268  Only write frame when t MOD dt = first time (ps)
270 .BI "\-[no]round"  "no    "
271  Round measurements to nearest picosecond
273 .BI "\-dump"  " time" " \-1    " 
274  Dump frame nearest specified time (ps)
276 .BI "\-t0"  " time" " 0     " 
277  Starting time (ps) (default: don't change)
279 .BI "\-timestep"  " time" " 0     " 
280  Change time step between input frames (ps)
282 .BI "\-pbc"  " enum" " none" 
283  PBC treatment (see help text for full description): \fB none\fR, \fB mol\fR, \fB res\fR, \fB atom\fR, \fB nojump\fR, \fB cluster\fR or \fB whole\fR
285 .BI "\-ur"  " enum" " rect" 
286  Unit\-cell representation: \fB rect\fR, \fB tric\fR or \fB compact\fR
288 .BI "\-[no]center"  "no    "
289  Center atoms in box
291 .BI "\-boxcenter"  " enum" " tric" 
292  Center for \-pbc and \-center: \fB tric\fR, \fB rect\fR or \fB zero\fR
294 .BI "\-box"  " vector" " 0 0 0" 
295  Size for new cubic box (default: read from input)
297 .BI "\-clustercenter"  " vector" " 0 0 0" 
298  Optional starting point for pbc cluster option
300 .BI "\-trans"  " vector" " 0 0 0" 
301  All coordinates will be translated by trans. This can advantageously be combined with \-pbc mol \-ur compact.
303 .BI "\-shift"  " vector" " 0 0 0" 
304  All coordinates will be shifted by framenr*shift
306 .BI "\-fit"  " enum" " none" 
307  Fit molecule to ref structure in the structure file: \fB none\fR, \fB rot+trans\fR, \fB rotxy+transxy\fR, \fB translation\fR, \fB transxy\fR or \fB progressive\fR
309 .BI "\-ndec"  " int" " 3" 
310  Precision for .xtc and .gro writing in number of decimal places
312 .BI "\-[no]vel"  "yes   "
313  Read and write velocities if possible
315 .BI "\-[no]force"  "no    "
316  Read and write forces if possible
318 .BI "\-trunc"  " time" " \-1    " 
319  Truncate input trajectory file after this time (ps)
321 .BI "\-exec"  " string" " " 
322  Execute command for every output frame with the frame number as argument
324 .BI "\-[no]app"  "no    "
325  Append output
327 .BI "\-split"  " time" " 0     " 
328  Start writing new file when t MOD split = first time (ps)
330 .BI "\-[no]sep"  "no    "
331  Write each frame to a separate .gro, .g96 or .pdb file
333 .BI "\-nzero"  " int" " 0" 
334  If the \-sep flag is set, use these many digits for the file numbers and prepend zeros as needed
336 .BI "\-dropunder"  " real" " 0     " 
337  Drop all frames below this value
339 .BI "\-dropover"  " real" " 0     " 
340  Drop all frames above this value
342 .BI "\-[no]conect"  "no    "
343  Add conect records when writing \fB .pdb\fR files. Useful for visualization of non\-standard molecules, e.g. coarse grained ones
345 .SH SEE ALSO
346 .BR gromacs(7)
348 More information about \fBGROMACS\fR is available at <\fIhttp://www.gromacs.org/\fR>.