1 .TH g_analyze 1 "Thu 26 Aug 2010" "" "GROMACS suite, VERSION 4.5"
3 g_analyze - analyzes data sets
8 .BI "\-f" " graph.xvg "
9 .BI "\-ac" " autocorr.xvg "
10 .BI "\-msd" " msd.xvg "
11 .BI "\-cc" " coscont.xvg "
12 .BI "\-dist" " distr.xvg "
13 .BI "\-av" " average.xvg "
14 .BI "\-ee" " errest.xvg "
15 .BI "\-bal" " ballisitc.xvg "
16 .BI "\-g" " fitlog.log "
18 .BI "\-[no]version" ""
28 .BI "\-errbar" " enum "
29 .BI "\-[no]integrate" ""
30 .BI "\-aver_start" " real "
32 .BI "\-[no]regression" ""
35 .BI "\-fitstart" " real "
36 .BI "\-fitend" " real "
37 .BI "\-smooth" " real "
38 .BI "\-filter" " real "
42 .BI "\-acflen" " int "
43 .BI "\-[no]normalize" ""
45 .BI "\-fitfn" " enum "
46 .BI "\-ncskip" " int "
47 .BI "\-beginfit" " real "
48 .BI "\-endfit" " real "
50 \&g_analyze reads an ascii file and analyzes data sets.
51 \&A line in the input file may start with a time
52 \&(see option \fB \-time\fR) and any number of y values may follow.
53 \&Multiple sets can also be
54 \&read when they are separated by & (option \fB \-n\fR),
55 \&in this case only one y value is read from each line.
56 \&All lines starting with and @ are skipped.
57 \&All analyses can also be done for the derivative of a set
58 \&(option \fB \-d\fR).
61 \&All options, except for \fB \-av\fR and \fB \-power\fR assume that the
62 \&points are equidistant in time.
65 \&g_analyze always shows the average and standard deviation of each
66 \&set. For each set it also shows the relative deviation of the third
67 \&and fourth cumulant from those of a Gaussian distribution with the same
71 \&Option \fB \-ac\fR produces the autocorrelation function(s).
74 \&Option \fB \-cc\fR plots the resemblance of set i with a cosine of
75 \&i/2 periods. The formula is:
76 2 (int0\-T y(t) cos(i pi t) dt)2 / int0\-T y(t) y(t) dt
78 \&This is useful for principal components obtained from covariance
79 \&analysis, since the principal components of random diffusion are
83 \&Option \fB \-msd\fR produces the mean square displacement(s).
86 \&Option \fB \-dist\fR produces distribution plot(s).
89 \&Option \fB \-av\fR produces the average over the sets.
90 \&Error bars can be added with the option \fB \-errbar\fR.
91 \&The errorbars can represent the standard deviation, the error
92 \&(assuming the points are independent) or the interval containing
93 \&90% of the points, by discarding 5% of the points at the top and
97 \&Option \fB \-ee\fR produces error estimates using block averaging.
98 \&A set is divided in a number of blocks and averages are calculated for
99 \&each block. The error for the total average is calculated from
100 \&the variance between averages of the m blocks B_i as follows:
101 \&error2 = Sum (B_i \- B)2 / (m*(m\-1)).
102 \&These errors are plotted as a function of the block size.
103 \&Also an analytical block average curve is plotted, assuming
104 \&that the autocorrelation is a sum of two exponentials.
105 \&The analytical curve for the block average is:
107 \&f(t) = sigma sqrt(2/T ( a (tau1 ((exp(\-t/tau1) \- 1) tau1/t + 1)) +
109 \& (1\-a) (tau2 ((exp(\-t/tau2) \- 1) tau2/t + 1)))),
110 where T is the total time.
111 \&a, tau1 and tau2 are obtained by fitting f2(t) to error2.
112 \&When the actual block average is very close to the analytical curve,
113 \&the error is sigma*sqrt(2/T (a tau1 + (1\-a) tau2)).
114 \&The complete derivation is given in
115 \&B. Hess, J. Chem. Phys. 116:209\-217, 2002.
118 \&Option \fB \-bal\fR finds and subtracts the ultrafast "ballistic"
119 \&component from a hydrogen bond autocorrelation function by the fitting
120 \&of a sum of exponentials, as described in e.g.
121 \&O. Markovitch, J. Chem. Phys. 129:084505, 2008. The fastest term
122 \&is the one with the most negative coefficient in the exponential,
123 \&or with \fB \-d\fR, the one with most negative time derivative at time 0.
124 \&\fB \-nbalexp\fR sets the number of exponentials to fit.
127 \&Option \fB \-gem\fR fits bimolecular rate constants ka and kb
128 \&(and optionally kD) to the hydrogen bond autocorrelation function
129 \&according to the reversible geminate recombination model. Removal of
130 \&the ballistic component first is strongly adviced. The model is presented in
131 \&O. Markovitch, J. Chem. Phys. 129:084505, 2008.
134 \&Option \fB \-filter\fR prints the RMS high\-frequency fluctuation
135 \&of each set and over all sets with respect to a filtered average.
136 \&The filter is proportional to cos(pi t/len) where t goes from \-len/2
137 \&to len/2. len is supplied with the option \fB \-filter\fR.
138 \&This filter reduces oscillations with period len/2 and len by a factor
139 \&of 0.79 and 0.33 respectively.
142 \&Option \fB \-g\fR fits the data to the function given with option
146 \&Option \fB \-power\fR fits the data to b ta, which is accomplished
147 \&by fitting to a t + b on log\-log scale. All points after the first
148 \&zero or negative value are ignored.
150 Option \fB \-luzar\fR performs a Luzar & Chandler kinetics analysis
151 \&on output from \fB g_hbond\fR. The input file can be taken directly
152 \&from \fB g_hbond \-ac\fR, and then the same result should be produced.
154 .BI "\-f" " graph.xvg"
158 .BI "\-ac" " autocorr.xvg"
162 .BI "\-msd" " msd.xvg"
166 .BI "\-cc" " coscont.xvg"
170 .BI "\-dist" " distr.xvg"
174 .BI "\-av" " average.xvg"
178 .BI "\-ee" " errest.xvg"
182 .BI "\-bal" " ballisitc.xvg"
186 .BI "\-g" " fitlog.log"
192 Print help info and quit
194 .BI "\-[no]version" "no "
195 Print version info and quit
197 .BI "\-nice" " int" " 0"
201 View output xvg, xpm, eps and pdb files
203 .BI "\-xvg" " enum" " xmgrace"
204 xvg plot formatting: \fB xmgrace\fR, \fB xmgr\fR or \fB none\fR
206 .BI "\-[no]time" "yes "
207 Expect a time in the input
209 .BI "\-b" " real" " \-1 "
210 First time to read from set
212 .BI "\-e" " real" " \-1 "
213 Last time to read from set
215 .BI "\-n" " int" " 1"
216 Read sets separated by &
221 .BI "\-bw" " real" " 0.1 "
222 Binwidth for the distribution
224 .BI "\-errbar" " enum" " none"
225 Error bars for \-av: \fB none\fR, \fB stddev\fR, \fB error\fR or \fB 90\fR
227 .BI "\-[no]integrate" "no "
228 Integrate data function(s) numerically using trapezium rule
230 .BI "\-aver_start" " real" " 0 "
231 Start averaging the integral from here
233 .BI "\-[no]xydy" "no "
234 Interpret second data set as error in the y values for integrating
236 .BI "\-[no]regression" "no "
237 Perform a linear regression analysis on the data. If \-xydy is set a second set will be interpreted as the error bar in the Y value. Otherwise, if multiple data sets are present a multilinear regression will be performed yielding the constant A that minimize chi2 = (y \- A0 x0 \- A1 x1 \- ... \- AN xN)2 where now Y is the first data set in the input file and xi the others. Do read the information at the option \fB \-time\fR.
239 .BI "\-[no]luzar" "no "
240 Do a Luzar and Chandler analysis on a correlation function and related as produced by g_hbond. When in addition the \-xydy flag is given the second and fourth column will be interpreted as errors in c(t) and n(t).
242 .BI "\-temp" " real" " 298.15"
243 Temperature for the Luzar hydrogen bonding kinetics analysis
245 .BI "\-fitstart" " real" " 1 "
246 Time (ps) from which to start fitting the correlation functions in order to obtain the forward and backward rate constants for HB breaking and formation
248 .BI "\-fitend" " real" " 60 "
249 Time (ps) where to stop fitting the correlation functions in order to obtain the forward and backward rate constants for HB breaking and formation. Only with \-gem
251 .BI "\-smooth" " real" " \-1 "
252 If = 0, the tail of the ACF will be smoothed by fitting it to an exponential function: y = A exp(\-x/tau)
254 .BI "\-filter" " real" " 0 "
255 Print the high\-frequency fluctuation after filtering with a cosine filter of length
257 .BI "\-[no]power" "no "
260 .BI "\-[no]subav" "yes "
261 Subtract the average before autocorrelating
263 .BI "\-[no]oneacf" "no "
264 Calculate one ACF over all sets
266 .BI "\-acflen" " int" " \-1"
267 Length of the ACF, default is half the number of frames
269 .BI "\-[no]normalize" "yes "
272 .BI "\-P" " enum" " 0"
273 Order of Legendre polynomial for ACF (0 indicates none): \fB 0\fR, \fB 1\fR, \fB 2\fR or \fB 3\fR
275 .BI "\-fitfn" " enum" " none"
276 Fit function: \fB none\fR, \fB exp\fR, \fB aexp\fR, \fB exp_exp\fR, \fB vac\fR, \fB exp5\fR, \fB exp7\fR or \fB exp9\fR
278 .BI "\-ncskip" " int" " 0"
279 Skip N points in the output file of correlation functions
281 .BI "\-beginfit" " real" " 0 "
282 Time where to begin the exponential fit of the correlation function
284 .BI "\-endfit" " real" " \-1 "
285 Time where to end the exponential fit of the correlation function, \-1 is until the end
290 More information about \fBGROMACS\fR is available at <\fIhttp://www.gromacs.org/\fR>.