GMX-CONVERT-TRJ(1)
β¨ NAME β¨
okay so this is gmx-convert-trj, from the GROMACS manual (section 1, bestie) β and it does exactly what it says on the tin: it converts between different trajectory types. π
π¦ SYNOPSIS π¦
gmx convert-trj [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]]
[-n [<.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 π
so like. gmx convert-trj converts trajectory files between different formats. it literally writes every GROMACS-supported file format from the supported input formats. no cap, all of them. π₯
it also comes with a lil selection of options to modify individual trajectory frames, including options to produce slimmer output files (yes queen, smaller trajectories). and you can also straight-up replace the particle information stored in the input trajectory with the ones from a structure file. it's giving glow-up but for atoms. β¨
the module can also generate subsets of trajectories based on selections you supply. so you're the main character picking and choosing what stays. π
πΈ OPTIONS πΈ
π Options to specify input files
-f [<.xtc/.trr/...>](traj.xtc) (Optional) β input trajectory or single configuration. she accepts:xtctrrcptgrog96pdbtngh5mdπ¦-s [<.tpr/.gro/...>](topol.tpr) (Optional) β input structure. she accepts:tprgrog96pdbbrkentπΈ-n [<.ndx>](index.ndx) (Optional) β extra index groups, if you've got some π
π Options to specify output files
-o [<.xtc/.trr/...>](trajout.xtc) β output trajectory. options are:xtctrrcptgrog96pdbtngh5mdβ¨
π§ Other options
-b <time>(0) β first frame (ps) to read from the trajectory π-e <time>(0) β last frame (ps) to read from the trajectory π-dt <time>(0) β only use a frame ift MOD dt == first time(ps). fr fr, that's the condition π-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, and babes there are a LOT: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 particles to write to the file βοΈ-vel <enum>(preserved-if-present) β save velocities from the frame if possible:preserved-if-present,always,neverπ¨-force <enum>(preserved-if-present) β save forces from the frame if possible:preserved-if-present,always,neverπͺ-atoms <enum>(preserved-if-present) β decide on providing new atom information from topology vs using the current frame atom information:preserved-if-present,always-from-structure,never,alwaysπ§¬-precision <int>(3) β set output precision to a custom value π-starttime <time>(0) β change start time for the first frame β°-timestep <time>(0) β change the time between different frames β±οΈ-box <vector>β new diagonal box vector for the output frame π¦
π₯ SEE ALSO π₯
more info about GROMACS is available at <http://www.gromacs.org/>. go look, bestie, it's iconic π
π COPYRIGHT π
2026, GROMACS development team
and that's the whole vibe check π«Ά this page is GROMACS 2026.4, dated Oct 02, 2026 β so if you're reading this in the future, hiii, you're a time traveler, slay π β¨
π¦ 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