Basic support for titles within tool help
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_wham.cpp
index cdcd4bcac2c316fa125a3ca0ce2e6b50e423b68a..9e71686b393f3ebe718940a562df1fcdf617ee9a 100644 (file)
@@ -3222,36 +3222,36 @@ int gmx_wham(int argc, char *argv[])
         "",
         "At present, three input modes are supported.",
         "",
-        " * With option [TT]-it[tt], the user provides a file which contains the",
-        "   file names of the umbrella simulation run-input files ([REF].tpr[ref] files),",
-        "   AND, with option [TT]-ix[tt], a file which contains file names of",
-        "   the pullx [TT]mdrun[tt] output files. The [REF].tpr[ref] and pullx files must",
-        "   be in corresponding order, i.e. the first [REF].tpr[ref] created the",
-        "   first pullx, etc.",
-        " * Same as the previous input mode, except that the the user",
-        "   provides the pull force output file names ([TT]pullf.xvg[tt]) with option [TT]-if[tt].",
-        "   From the pull force the position in the umbrella potential is",
-        "   computed. This does not work with tabulated umbrella potentials.",
-        " * With option [TT]-ip[tt], the user provides file names of (gzipped) [REF].pdo[ref] files, i.e.",
-        "   the GROMACS 3.3 umbrella output files. If you have some unusual"
-        "   reaction coordinate you may also generate your own [REF].pdo[ref] files and",
-        "   feed them with the [TT]-ip[tt] option into to [THISMODULE]. The [REF].pdo[ref] file header",
-        "   must be similar to the following::",
+        "* With option [TT]-it[tt], the user provides a file which contains the",
+        "  file names of the umbrella simulation run-input files ([REF].tpr[ref] files),",
+        "  AND, with option [TT]-ix[tt], a file which contains file names of",
+        "  the pullx [TT]mdrun[tt] output files. The [REF].tpr[ref] and pullx files must",
+        "  be in corresponding order, i.e. the first [REF].tpr[ref] created the",
+        "  first pullx, etc.",
+        "* Same as the previous input mode, except that the the user",
+        "  provides the pull force output file names ([TT]pullf.xvg[tt]) with option [TT]-if[tt].",
+        "  From the pull force the position in the umbrella potential is",
+        "  computed. This does not work with tabulated umbrella potentials.",
+        "* With option [TT]-ip[tt], the user provides file names of (gzipped) [REF].pdo[ref] files, i.e.",
+        "  the GROMACS 3.3 umbrella output files. If you have some unusual"
+        "  reaction coordinate you may also generate your own [REF].pdo[ref] files and",
+        "  feed them with the [TT]-ip[tt] option into to [THISMODULE]. The [REF].pdo[ref] file header",
+        "  must be similar to the following::",
         "",
-        "     # UMBRELLA      3.0",
-        "     # Component selection: 0 0 1",
-        "     # nSkip 1",
-        "     # Ref. Group 'TestAtom'",
-        "     # Nr. of pull groups 2",
-        "     # Group 1 'GR1'  Umb. Pos. 5.0 Umb. Cons. 1000.0",
-        "     # Group 2 'GR2'  Umb. Pos. 2.0 Umb. Cons. 500.0",
-        "     #####",
+        "    # UMBRELLA      3.0",
+        "    # Component selection: 0 0 1",
+        "    # nSkip 1",
+        "    # Ref. Group 'TestAtom'",
+        "    # Nr. of pull groups 2",
+        "    # Group 1 'GR1'  Umb. Pos. 5.0 Umb. Cons. 1000.0",
+        "    # Group 2 'GR2'  Umb. Pos. 2.0 Umb. Cons. 500.0",
+        "    #####",
         "",
-        "   The number of pull groups, umbrella positions, force constants, and names ",
-        "   may (of course) differ. Following the header, a time column and ",
-        "   a data column for each pull group follows (i.e. the displacement",
-        "   with respect to the umbrella center). Up to four pull groups are possible ",
-        "   per [REF].pdo[ref] file at present.",
+        "  The number of pull groups, umbrella positions, force constants, and names ",
+        "  may (of course) differ. Following the header, a time column and ",
+        "  a data column for each pull group follows (i.e. the displacement",
+        "  with respect to the umbrella center). Up to four pull groups are possible ",
+        "  per [REF].pdo[ref] file at present.",
         "",
         "By default, all pull groups found in all pullx/pullf files are used in WHAM. If only ",
         "some of the pull groups should be used, a pull group selection file (option [TT]-is[tt]) can ",
@@ -3267,20 +3267,22 @@ int gmx_wham(int argc, char *argv[])
         "",
         "By default, the output files are",
         "",
-        " * [TT]-o[tt]      PMF output file",
-        " * [TT]-hist[tt]   Histograms output file",
+        "* [TT]-o[tt]      PMF output file",
+        "* [TT]-hist[tt]   Histograms output file",
         "",
         "Always check whether the histograms sufficiently overlap.[PAR]",
         "The umbrella potential is assumed to be harmonic and the force constants are ",
         "read from the [REF].tpr[ref] or [REF].pdo[ref] files. If a non-harmonic umbrella force was applied ",
-        "a tabulated potential can be provided with [TT]-tab[tt].[PAR]",
-        "WHAM OPTIONS[BR]------------[BR]",
+        "a tabulated potential can be provided with [TT]-tab[tt].",
         "",
-        " * [TT]-bins[tt]   Number of bins used in analysis",
-        " * [TT]-temp[tt]   Temperature in the simulations",
-        " * [TT]-tol[tt]    Stop iteration if profile (probability) changed less than tolerance",
-        " * [TT]-auto[tt]   Automatic determination of boundaries",
-        " * [TT]-min,-max[tt]   Boundaries of the profile",
+        "WHAM options",
+        "^^^^^^^^^^^^",
+        "",
+        "* [TT]-bins[tt]   Number of bins used in analysis",
+        "* [TT]-temp[tt]   Temperature in the simulations",
+        "* [TT]-tol[tt]    Stop iteration if profile (probability) changed less than tolerance",
+        "* [TT]-auto[tt]   Automatic determination of boundaries",
+        "* [TT]-min,-max[tt]   Boundaries of the profile",
         "",
         "The data points that are used to compute the profile",
         "can be restricted with options [TT]-b[tt], [TT]-e[tt], and [TT]-dt[tt]. ",
@@ -3297,10 +3299,16 @@ int gmx_wham(int argc, char *argv[])
         "periodicity of the system and generate a periodic PMF. The first and the last bin of the",
         "reaction coordinate will assumed be be neighbors.[PAR]",
         "Option [TT]-sym[tt] symmetrizes the profile around z=0 before output, ",
-        "which may be useful for, e.g. membranes.[PAR]",
-        "PARALLELIZATION[BR]----------------[BR]",
-        "If available, the number of OpenMP threads used by g_wham is controlled with [TT]-nt[tt].[PAR]",
-        "AUTOCORRELATIONS[BR]----------------[BR]",
+        "which may be useful for, e.g. membranes.",
+        "",
+        "Parallelization",
+        "^^^^^^^^^^^^^^^",
+        "",
+        "If available, the number of OpenMP threads used by g_wham is controlled with [TT]-nt[tt].",
+        "",
+        "Autocorrelations",
+        "^^^^^^^^^^^^^^^^",
+        "",
         "With [TT]-ac[tt], [THISMODULE] estimates the integrated autocorrelation ",
         "time (IACT) [GRK]tau[grk] for each umbrella window and weights the respective ",
         "window with 1/[1+2*[GRK]tau[grk]/dt]. The IACTs are written ",
@@ -3315,8 +3323,11 @@ int gmx_wham(int argc, char *argv[])
         "less robust) method such as fitting to a double exponential, you can ",
         "compute the IACTs with [gmx-analyze] and provide them to [THISMODULE] with the file ",
         "[TT]iact-in.dat[tt] (option [TT]-iiact[tt]), which should contain one line per ",
-        "input file ([REF].pdo[ref] or pullx/f file) and one column per pull group in the respective file.[PAR]",
-        "ERROR ANALYSIS[BR]--------------[BR]",
+        "input file ([REF].pdo[ref] or pullx/f file) and one column per pull group in the respective file.",
+        "",
+        "Error analysis",
+        "^^^^^^^^^^^^^^",
+        "",
         "Statistical errors may be estimated with bootstrap analysis. Use it with care, ",
         "otherwise the statistical error may be substantially underestimated. ",
         "More background and examples for the bootstrap technique can be found in ",
@@ -3325,36 +3336,36 @@ int gmx_wham(int argc, char *argv[])
         "Four bootstrapping methods are supported and ",
         "selected with [TT]-bs-method[tt].",
         "",
-        " * [TT]b-hist[tt]   Default: complete histograms are considered as independent ",
-        "   data points, and the bootstrap is carried out by assigning random weights to the ",
-        "   histograms (\"Bayesian bootstrap\"). Note that each point along the reaction coordinate",
-        "   must be covered by multiple independent histograms (e.g. 10 histograms), otherwise the ",
-        "   statistical error is underestimated.",
-        " * [TT]hist[tt]    Complete histograms are considered as independent data points. ",
-        "   For each bootstrap, N histograms are randomly chosen from the N given histograms ",
-        "   (allowing duplication, i.e. sampling with replacement).",
-        "   To avoid gaps without data along the reaction coordinate blocks of histograms ",
-        "   ([TT]-histbs-block[tt]) may be defined. In that case, the given histograms are ",
-        "   divided into blocks and only histograms within each block are mixed. Note that ",
-        "   the histograms within each block must be representative for all possible histograms, ",
-        "   otherwise the statistical error is underestimated.",
-        " * [TT]traj[tt]  The given histograms are used to generate new random trajectories,",
-        "   such that the generated data points are distributed according the given histograms ",
-        "   and properly autocorrelated. The autocorrelation time (ACT) for each window must be ",
-        "   known, so use [TT]-ac[tt] or provide the ACT with [TT]-iiact[tt]. If the ACT of all ",
-        "   windows are identical (and known), you can also provide them with [TT]-bs-tau[tt]. ",
-        "   Note that this method may severely underestimate the error in case of limited sampling, ",
-        "   that is if individual histograms do not represent the complete phase space at ",
-        "   the respective positions.",
-        " * [TT]traj-gauss[tt]  The same as method [TT]traj[tt], but the trajectories are ",
-        "   not bootstrapped from the umbrella histograms but from Gaussians with the average ",
-        "   and width of the umbrella histograms. That method yields similar error estimates ",
-        "   like method [TT]traj[tt].",
+        "* [TT]b-hist[tt]   Default: complete histograms are considered as independent ",
+        "  data points, and the bootstrap is carried out by assigning random weights to the ",
+        "  histograms (\"Bayesian bootstrap\"). Note that each point along the reaction coordinate",
+        "  must be covered by multiple independent histograms (e.g. 10 histograms), otherwise the ",
+        "  statistical error is underestimated.",
+        "* [TT]hist[tt]    Complete histograms are considered as independent data points. ",
+        "  For each bootstrap, N histograms are randomly chosen from the N given histograms ",
+        "  (allowing duplication, i.e. sampling with replacement).",
+        "  To avoid gaps without data along the reaction coordinate blocks of histograms ",
+        "  ([TT]-histbs-block[tt]) may be defined. In that case, the given histograms are ",
+        "  divided into blocks and only histograms within each block are mixed. Note that ",
+        "  the histograms within each block must be representative for all possible histograms, ",
+        "  otherwise the statistical error is underestimated.",
+        "* [TT]traj[tt]  The given histograms are used to generate new random trajectories,",
+        "  such that the generated data points are distributed according the given histograms ",
+        "  and properly autocorrelated. The autocorrelation time (ACT) for each window must be ",
+        "  known, so use [TT]-ac[tt] or provide the ACT with [TT]-iiact[tt]. If the ACT of all ",
+        "  windows are identical (and known), you can also provide them with [TT]-bs-tau[tt]. ",
+        "  Note that this method may severely underestimate the error in case of limited sampling, ",
+        "  that is if individual histograms do not represent the complete phase space at ",
+        "  the respective positions.",
+        "* [TT]traj-gauss[tt]  The same as method [TT]traj[tt], but the trajectories are ",
+        "  not bootstrapped from the umbrella histograms but from Gaussians with the average ",
+        "  and width of the umbrella histograms. That method yields similar error estimates ",
+        "  like method [TT]traj[tt].",
         "",
         "Bootstrapping output:",
         "",
-        " * [TT]-bsres[tt]   Average profile and standard deviations",
-        " * [TT]-bsprof[tt]  All bootstrapping profiles",
+        "* [TT]-bsres[tt]   Average profile and standard deviations",
+        "* [TT]-bsprof[tt]  All bootstrapping profiles",
         "",
         "With [TT]-vbs[tt] (verbose bootstrapping), the histograms of each bootstrap are written, ",
         "and, with bootstrap method [TT]traj[tt], the cumulative distribution functions of ",