GMX-EXTRACT-CLUSTER(1)
β¨ NAME β¨
gmx-extract-cluster β the girlies' way to pull out frames that match clusters from a trajectory π
So this is GMX-EXTRACT-CLUSTER(1) from the GROMACS manual, and bestie, it's literally the tool that goes and grabs you exactly the frames you asked for. Let's go π¦
πΈ SYNOPSIS πΈ
gmx extract-cluster [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]]
[-n [<.ndx>]] [-clusters [<.ndx>]]
[-o [<.xtc/.trr/...>]] [-b <time>] [-e <time>]
[-dt <time>] [-tu <enum>] [-fgroup <selection>]
[-xvg <enum>] [-[no]rmpbc] [-[no]pbc] [-sf <file>]
[-selrpos <enum>] [-select <selection>] [-vel <enum>]
[-force <enum>] [-atoms <enum>] [-precision <int>]
[-starttime <time>] [-timestep <time>] [-box <vector>]
π DESCRIPTION π
Okay so picture this: gmx extract-cluster is the module you run to pull out the trajectory frames that correspond to clusters. And where do those clusters come from? From running gmx cluster with the -clndx option, periodt. π
And the range?? The module supports writing all GROMACS supported trajectory file formats. All of them. She ate. π₯
Also included: a whole selection of possible options to change additional information. Little extras, whatever you need. β¨
And big news β it is possible to write only a selection of atoms to the output trajectory files, for each cluster. So you're not obligated to take the whole squad along. π
π OPTIONS π
π§ Options to specify input files:
-f [<.xtc/.trr/...>](traj.xtc) (Optional) β Input trajectory or single configuration. Formats she eats:xtctrrcptgrog96pdbtngh5md-s [<.tpr/.gro/...>](topol.tpr) (Optional) β Input structure. Formats:tprgrog96pdbbrkent-n [<.ndx>](index.ndx) (Optional) β Extra index groups, in case you need a lil something extra π-clusters [<.ndx>](cluster.ndx) β Name of index file containing frame indices for each cluster, obtained fromgmx cluster -clndx. This one is the whole point bestie, no cap π
π Options to specify output files:
-o [<.xtc/.trr/...>](trajout.xtc) β Prefix for the name of the trajectory file written for each cluster.:xtctrrcptgrog96pdbtngh5md
π« 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-select <selection>β Selection of atoms to write to the file-vel <enum>(preserved-if-present) β Save velocities from frame if possible:preserved-if-present,always,never-force <enum>(preserved-if-present) β Save forces from frame if possible:preserved-if-present,always,never-atoms <enum>(preserved-if-present) β Decide on providing new atom information from topology or using current frame atom information:preserved-if-present,always-from-structure,never,always-precision <int>(3) β Set output precision to custom value-starttime <time>(0) β Change start time for first frame-timestep <time>(0) β Change time between different frames-box <vector>β New diagonal box vector for output frame
π«Ά SEE ALSO π«Ά
More information about GROMACS is available at <http://www.gromacs.org/>.
π COPYRIGHT π
2026, GROMACS development team
okay that's the whole page, you're so welcome π go extract some clusters, main character energy only β¨
Version 2026.4 πΈ β dated Oct 02, 2026 π β and that's the vibe check, bestie, ily, bye π¦π
π¦ 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