Before You Load That Trajectory: A Practical Format Check

A molecular dynamics trajectory can be perfectly valid and still be the wrong file to open on its own. The first question is not just “Does SAMSON read this extension?” It is also “Am I opening a structure or a sequence of coordinates, and what other files does this workflow require?” Sorting that out before importing can save time and make format handoffs less frustrating.

Structure or trajectory?

A structure file describes molecular coordinates; a trajectory records coordinates across frames. Some extensions can represent either, so the extension alone may not tell you what the file contains. In SAMSON, PDB and XYZ appear in both the molecular structures and molecular trajectories lists. ARC is listed for both as well, though its write support differs between the two categories.

For a trajectory, check the file’s source and intended role before loading. The supported trajectory formats include DCD, LAMMPSTRJ, AMBER NetCDF (NC), TNG, TRR, TRJ, XTC, ARC, PDB, and XYZ. Several formats are read-only in this list, so importing a file does not necessarily mean SAMSON can export the same kind of trajectory.

Use the format list as a read/write check

Here are practical examples from the documentation:

  • DCD: listed for reading and writing; described as a CHARMM, NAMD, or LAMMPS binary trajectory.
  • NC: listed for reading and writing; this is the AMBER NetCDF trajectory format. The documentation notes that an AMBER topology file, such as PARM7 or PRMTOP, is used when loading AMBER NetCDF trajectories.
  • XTC and TRR: GROMACS trajectory formats, listed for reading and writing.
  • LAMMPSTRJ, TNG, TRJ, and ARC: listed for reading, with no write support shown in the trajectory table.
  • PDB and XYZ: listed for both reading and writing as trajectory formats, and also listed among molecular structure formats.

A blank write cell means the documentation does not list write support for that format. Some formats also have extension-specific support or notes, so check the relevant row rather than assuming every format behaves alike.

Check companion files before importing

Some molecular data formats are used together. For example, SAMSON lists PARM7 and PRMTOP as AMBER topology files used when loading AMBER NetCDF trajectories. If your trajectory came with a topology or structure file, keep the files together and consult the instructions for the software that generated them. This helps you identify which file supplies the coordinates over time and which one supplies the associated molecular description.

The same principle applies when choosing a structure format. SAMSON lists formats such as PDB, GRO, MOL2, SDF, and XYZ for molecular structures, alongside specialized options such as GROMACS TPR and AMBER topology files. The documentation’s separate tables are useful: a format’s presence under “Molecular structures” does not automatically establish its role or write support as a trajectory.

When preserving the whole working document matters

If you need to keep SAMSON-specific content together, consider saving in SAM or SAMX. These native formats support a broad range of SAMSON data, including molecular structures, visual models, meshes, animations, notes, simulators, and embedded files. By contrast, an interchange format is usually chosen to move a particular kind of data between tools. Choosing between them depends on whether your priority is compatibility with another program or retaining a broader SAMSON document.

A quick pre-import checklist

  1. Identify whether the file is a structure, a trajectory, or a topology.
  2. Look up the extension in the matching section of the format reference.
  3. Check whether the format is listed for reading, writing, or both.
  4. Look for companion files; AMBER NetCDF trajectories, for example, are associated with PARM7 or PRMTOP topology files.
  5. If a format is handled by an extension, follow the extension link in the documentation to check its role.

This small check helps avoid a common source of confusion: treating every molecular file as a standalone structure, or assuming import and export support are interchangeable. For the full tables and format-specific notes, see the SAMSON supported formats reference.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at www.samson-connect.net.

Comments are closed.