Before You Convert: A Practical Guide to Molecular File Formats

A familiar frustration in molecular modeling: you have the right structure or trajectory, but the file will not open—or it opens, and you are unsure whether you can save it back in the format your collaborator needs. The extension alone does not always tell the whole story. A format may be supported for reading but not writing, or it may require an extension.

Here is a practical way to check compatibility in SAMSON before you build a workflow around a file.

Start with the direction of travel

In the format tables, Read means SAMSON can import that file type, and Write means it can export to it. Check both columns for your specific task. Seeing a format listed does not necessarily mean SAMSON can do both.

For example, SAMSON lists PDB as readable and writable for molecular structures and trajectories. MMTF is listed for reading as a molecular structure format, but no write support is shown. For molecular trajectories, XTC is listed for both reading and writing, while TNG is listed for reading only. If you need to deliver a file to another person or program, confirm write support—not just that the file can be opened.

Identify what kind of data the file contains

Similar-looking workflows can involve different kinds of files. A molecular structure file describes a molecular system; a trajectory stores changing coordinates over time. A mesh or 3D geometry is different again. SAMSON organizes its supported formats into these categories, so look in the section that matches your data:

  • Structures: examples include PDB, SDF, MOL2, GRO, and XYZ.
  • Trajectories: examples include DCD, XTC, TRR, and AMBER NetCDF (NC).
  • 3D geometries: OBJ and glTF can be read and written; STL is listed for reading.

This distinction is useful when an extension looks familiar but the file is not being handled as expected. For instance, XYZ appears in both the structure and trajectory sections, so check which kind of XYZ data you have and which workflow you intend to use.

Check for companion files and extensions

Some files are not self-contained in the way a simple extension check might suggest. SAMSON lists AMBER topology files such as PARM7 and PRMTOP for use when loading AMBER NetCDF trajectories. The file list also identifies extension-dependent formats: PDBQT support is associated with AutoDock Vina Extended, while GROMACS project-file generation is associated with GROMACS Wizard. DNA-origami formats such as ADN and ADNPART are supported by Adenita.

When an entry names an extension, follow that link and verify that the extension is available for your setup. The documentation also notes that extensions may support formats not listed in the general table, so the list is useful but not exhaustive.

Choose a format that fits the purpose

If you are saving a SAMSON project for continued work in SAMSON, its native SAM and SAMX formats support a broad range of SAMSON data, including molecular structures, visual models, meshes, animations, notes, simulators, and embedded files. An exchange format such as PDB or XYZ is useful for sharing particular kinds of data, but it should not be assumed to carry every project element. Choose based on what the recipient or next tool needs, and check the relevant Read and Write entries before exporting.

A quick preflight can prevent avoidable back-and-forth: identify the data type, confirm the direction (read or write), check for a required extension, and note any companion file mentioned in the format description. If a desired format is missing, SAMSON’s documentation points users to the forum to request support and describes how developers can create importers and exporters.

For the complete format tables and notes, see the SAMSON supported formats reference.

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

Comments are closed.