GMX-SCATTERING(1)

πŸ’– GMX-SCATTERING(1) πŸ’–

okay bestie, welcome to the GROMACS manual page for gmx-scattering β€” yes that's the man page name, we're being ✨official✨ about it. sit down, grab a strawberry, and let's get into it πŸ“


🌈 NAME 🌈

gmx-scattering β€” Calculate small angle scattering profiles for SANS or SAXS

like. it literally computes your scattering curves. iconic behavior honestly 🫢


✨ SYNOPSIS ✨

gmx scattering [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]]
             [-n [<.ndx>]] [-o [<.xvg>]] [-b <time>] [-e <time>]
             [-dt <time>] [-tu <enum>] [-fgroup <selection>]
             [-xvg <enum>] [-[no]rmpbc] [-[no]pbc] [-sf <file>]
             [-selrpos <enum>] [-seltype <enum>] [-sel <selection>]
             [-startq <real>] [-endq <real>] [-qspacing <real>]
             [-binwidth <real>] [-mc-coverage <real>] [-seed <int>]
             [-[no]norm] [-[no]mc] [-scattering-type <enum>]

look at her go πŸ’… that's the whole vibe right there, don't panic, we're gonna walk through every single flag together, no cap.


🌸 DESCRIPTION 🌸

gmx scattering calculates SANS and SAXS scattering curves using Debye method.

The scattering intensity, I(q), as a function of scattering angle q with averaging over frames.

🚨 heads up bestie, this is important: this is a new implementation of the SANS/SAXS utilities added in GROMACS 2024. If you need the old ones, use gmx sans-legacy or gmx saxs-legacy. the way that the old tools are still hanging around for you… legacy support really said "I'm not leaving" 😭

πŸŽ€ OPTIONS πŸŽ€

πŸ“₯ Options to specify input files:

  • -f [<.xtc/.trr/...>] (traj.xtc) (Optional) β€” Input trajectory or single configuration: xtc trr cpt gro g96 pdb tng h5md
  • -s [<.tpr/.gro/...>] (topol.tpr) (Optional) β€” Input structure: tpr gro g96 pdb brk ent
  • -n [<.ndx>] (index.ndx) (Optional) β€” Extra index groups

πŸ“€ Options to specify output files:

  • -o [<.xvg>] (scattering.xvg) (Optional) β€” scattering intensity as a function of q

πŸ› οΈ Other options:

  • -b <time> (0) β€” First frame (ps) to read from trajectory
  • -e <time> (0) β€” Last frame (ps) to read from trajectory
  • -dt <time> (0) β€” Only use frame if t MOD dt == first time (ps)
  • -tu <enum> (ps) β€” Unit for time values: fs, ps, ns, us, ms, s
  • -fgroup <selection> β€” Atoms stored in the trajectory file (if not set, assume first N atoms)
  • -xvg <enum> (xmgrace) β€” Plot formatting: xmgrace, xmgr, none
  • -[no]rmpbc (yes) β€” Make molecules whole for each frame
  • -[no]pbc (yes) β€” Use periodic boundary conditions for distance calculation
  • -sf <file> β€” Provide selections from files
  • -selrpos <enum> (atom) β€” Selection reference positions: atom, res_com, res_cog, mol_com, mol_cog, whole_res_com, whole_res_cog, whole_mol_com, whole_mol_cog, part_res_com, part_res_cog, part_mol_com, part_mol_cog, dyn_res_com, dyn_res_cog, dyn_mol_com, dyn_mol_cog
  • -seltype <enum> (atom) β€” Default selection output positions: atom, res_com, res_cog, mol_com, mol_cog, whole_res_com, whole_res_cog, whole_mol_com, whole_mol_cog, part_res_com, part_res_cog, part_mol_com, part_mol_cog, dyn_res_com, dyn_res_cog, dyn_mol_com, dyn_mol_cog
  • -sel <selection> β€” Selection for Scattering calculation
  • -startq <real> (0) β€” smallest q value (1/nm)
  • -endq <real> (2) β€” largest q value (1/nm)
  • -qspacing <real> (0.01) β€” spacing of q values (1/nm)
  • -binwidth <real> (0.1) β€” Bin width (nm) for P(r)
  • -mc-coverage <real> (0.2) β€” coverage of Monte Carlo (%)
  • -seed <int> (2023) β€” random seed for Monte Carlo
  • -[no]norm (no) β€” normalize scattering intensities
  • -[no]mc (yes) β€” use Monte Carlo to scattering intensities
  • -scattering-type <enum> (sans) β€” Scattering type: saxs, sans
πŸ¦‹ ngl the mother of all enums award goes to -selrpos and -seltype, they really said "here's 16 options, choose wisely" and I respect it πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

More information about GROMACS is available at <‐ http://www.gromacs.org/.


2026, GROMACS development team


and that's the whole page bestie!! go compute some beautiful scattering curves β€” this was GROMACS version 2026.4, dated Oct 02, 2026, and yes I do think this manual page ate πŸ’…βœ¨ mwah, bye 🫢🌸

πŸ“¦ where this page comes from