When a Molecular File Won’t Open: Find the Right Importer Path

A file that will not load can interrupt a modeling session before the science even begins. The first useful question is not necessarily “What is wrong with my molecule?” It is “Does SAMSON have an importer for this file format?” Importers are the extensions that read files and bring structures, maps, meshes, and other objects into a SAMSON document.

Here is a simple way to work out what to do next—without confusing file loading, format support, and extension development.

Start with the format, not the symptom

When a file fails to open, note its format and what it is meant to contain. Is it a molecular structure, an electron-density map, a mesh, or another kind of object? This matters because importers are responsible for reading particular kinds of data. A file can be valid for another application and still require an importer that SAMSON does not currently have.

Next, check the list of formats supported by SAMSON. It is the place to confirm whether a format is supported for import. The page also covers export, so check the direction you need: reading a file into SAMSON is an importer task; writing a file out is an exporter task.

Use the right reference for the job

These three questions point to three different resources:

  • How do I open or fetch a structure? Start with Loading molecules, which covers the user workflow for opening local files, fetching structures, and understanding documents.
  • Can SAMSON read this format? Check Supported formats.
  • What reads the file? This is the role of an importer. SAMSON has default importers, and additional importers can be added from SAMSON Connect.

Keeping these questions separate can save time. A workflow guide explains how to load a file; the supported-formats list helps establish whether its format is covered; the importer reference explains the extension family that performs the reading.

If the format is missing

If you cannot find the format in the supported-formats list, the importer you need may not be available in your current setup. The documentation points to SAMSON Connect as the place to add more importers. If you are still missing an importer, you can contact the SAMSON team at contact@samson-connect.net.

If you are considering building an importer yourself, that is a separate path from loading an existing file. The documentation directs developers to the guide for generating SAMSON Extensions and to the Documentation center. For the matching extension family that writes files, see Exporters.

A quick checklist before you move on

  1. Identify the file format and the type of data it contains.
  2. Check whether that format is listed as supported.
  3. If you need the opening workflow, consult Loading molecules.
  4. If the importer is unavailable, look for additional importers through SAMSON Connect or contact the team.
  5. If your goal is to create an importer, use the extension-development resources instead of the user loading guide.

This small distinction—format support versus loading workflow versus extension development—helps turn an unclear file-opening problem into a concrete next step. For the importer reference, learn more about importers.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.