GMX-SHAM(1)
π GMX-SHAM(1) β the GROMACS girlies' guide π
okay bestie, so this is gmx-sham from the GROMACS manual (section 1 of the manual, if you're keeping track π). It's the glow-up era version, and I'm gonna walk you through every single flag like we're sitting in the library at 2am with iced coffee. no cap.
β¨ NAME β¨
gmx-sham β Compute free energies or other histograms from histograms π¦
β¨ SYNOPSIS β¨
gmx sham [-f [<.xvg>]] [-ge [<.xvg>]] [-ene [<.xvg>]] [-dist [<.xvg>]]
[-histo [<.xvg>]] [-bin [<.ndx>]] [-lp [<.xpm>]]
[-ls [<.xpm>]] [-lsh [<.xpm>]] [-lss [<.xpm>]]
[-ls3 [<.pdb>]] [-g [<.log>]] [-[no]w] [-xvg <enum>]
[-[no]time] [-b <real>] [-e <real>] [-ttol <real>]
[-n <int>] [-[no]d] [-[no]sham] [-tsham <real>]
[-pmin <real>] [-dim <vector>] [-ngrid <vector>]
[-xmin <vector>] [-xmax <vector>] [-pmax <real>]
[-gmax <real>] [-emin <real>] [-emax <real>]
[-nlevels <int>]
like, that's the whole vibe right there π
πΈ DESCRIPTION πΈ
so gmx sham makes multi-dimensional free-energy, enthalpy and entropy plots. it reads one or more .xvg files and analyzes data sets. π
the basic purpose of gmx sham is to plot Gibbs free energy landscapes (that's option -ls) by Boltzmann-inverting multi-dimensional histograms (that's option -lp) β but it can also make enthalpy plots (option -lsh) and entropy plots (option -lss). obsessed honestly. π The histograms can be made for any quantities the user supplies, which is giving very customizable, very main character. β¨
A line in the input file may start with a time (see option -time) and any number of y-values may follow. Multiple sets can also be read when they are separated by & (option -n), and in this case only one y-value is read from each line. All lines starting with # and @ are skipped. bye bye comments π«Ά
Option -ge can be used to supply a file with free energies when the ensemble is not a Boltzmann ensemble, but needs to be biased by this free energy. One free energy value is required for each (multi-dimensional) data point in the -f input. one per point. periodt. π
Option -ene can be used to supply a file with energies. These energies are used as a weighting function in the single histogram analysis method by Kumar et al. When temperatures are supplied (as a second column in the file), an experimental weighting scheme is applied. In addition the values are used for making enthalpy and entropy plots. π
With option -dim, dimensions can be given for distances. When a distance is 2- or 3-dimensional, the circumference or surface sampled by two particles increases with increasing distance. Depending on what one would like to show, one can choose to correct the histogram and free-energy for this volume effect. The probability is normalized by r and r^2 for dimensions of 2 and 3, respectively. A value of -1 is used to indicate an angle in degrees between two vectors: a sin(angle) normalization will be applied. π
Note that for angles between vectors the inner-product or cosine is the natural quantity to use, as it will produce bins of the same volume. (lowkey a glow-up tip, not a suggestion to fight the math π§)
π OPTIONS π
π Options to specify input files:
-f [<.xvg>](graph.xvg) β xvgr/xmgr file-ge [<.xvg>](gibbs.xvg) (Optional) β xvgr/xmgr file-ene [<.xvg>](esham.xvg) (Optional) β xvgr/xmgr file
π Options to specify output files:
-dist [<.xvg>](ener.xvg) (Optional) β xvgr/xmgr file-histo [<.xvg>](edist.xvg) (Optional) β xvgr/xmgr file-bin [<.ndx>](bindex.ndx) (Optional) β Index file-lp [<.xpm>](prob.xpm) (Optional) β X PixMap compatible matrix file-ls [<.xpm>](gibbs.xpm) (Optional) β X PixMap compatible matrix file-lsh [<.xpm>](enthalpy.xpm) (Optional) β X PixMap compatible matrix file-lss [<.xpm>](entropy.xpm) (Optional) β X PixMap compatible matrix file-ls3 [<.pdb>](gibbs3.pdb) (Optional) β Protein data bank file-g [<.log>](shamlog.log) (Optional) β Log file
π Other options:
-[no]w(no) β View output.xvg,.xpm,.epsand.pdbfiles. like, auto-open them for you? cute.-xvg <enum>(xmgrace) β xvg plot formatting:xmgrace,xmgr,none. pick your aesthetic bestie β¨-[no]time(yes) β Expect a time in the input-b <real>(-1) β First time to read from set-e <real>(-1) β Last time to read from set-ttol <real>(0) β Tolerance on time in appropriate units (usually ps)-n <int>(1) β Read this number of sets separated by lines containing only an ampersand. the&-separated sets thing π«Ά-[no]d(no) β Use the derivative-[no]sham(yes) β Turn off energy weighting even if energies are given-tsham <real>(298.15) β Temperature for single histogram analysis-pmin <real>(0) β Minimum probability. Anything lower than this will be set to zero. π«-dim <vector>(1 1 1) β Dimensions for distances, used for volume correction (max 3 values, dimensions > 3 will get the same value as the last)-ngrid <vector>(32 32 32) β Number of bins for energy landscapes (max 3 values, dimensions > 3 will get the same value as the last)-xmin <vector>(0 0 0) β Minimum for the axes in energy landscape (see above for > 3 dimensions)-xmax <vector>(1 1 1) β Maximum for the axes in energy landscape (see above for > 3 dimensions)-pmax <real>(0) β Maximum probability in output, default is calculate-gmax <real>(0) β Maximum free energy in output, default is calculate-emin <real>(0) β Minimum enthalpy in output, default is calculate-emax <real>(0) β Maximum enthalpy in output, default is calculate-nlevels <int>(25) β Number of levels for energy landscape
π¦ SEE ALSO π¦
More information about GROMACS is available at <http://www.gromacs.org/>. go click it, fr fr π
π COPYRIGHT π
2026, GROMACS development team
okay that's the whole thing, no notes, you're so ready to sham π§β¨ and hey β this was GROMACS 2026.4, dated Oct 02, 2026. slay, go make some free energy landscapes bestie π ππ
π¦ where this page comes from
- nixpkgs unstable: gromacs 2026.4
- ubuntu stonking: gromacs-data 2026.4-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms