The File Opens—or It Doesn’t: A Practical Guide to Choosing the Right Importer

A file that refuses to load can bring a modeling session to a halt. Before assuming the structure is damaged—or searching for a workaround—it helps to ask a simpler question: does SAMSON have an importer for this file format?

Importers are the extensions that parse files so SAMSON can load their contents into a document. Depending on the format, that content may include molecular structures, electron-density maps, meshes, or other objects. Thinking of an importer as the bridge between a file and a SAMSON document can make it easier to work out what to check next.

Start with the format, not the filename

When a file will not load, begin by identifying the format you expect it to be. A filename extension can be a useful clue, but the important question is whether that format is supported by SAMSON. Check the supported formats list before spending time looking for a problem in the molecular model itself.

This simple check helps separate two different issues: a file may contain data you need, but SAMSON may not have an importer for the format in which it is stored. A format list is also useful when you are planning a workflow ahead of time—for example, when deciding what file to request from a collaborator or what format to use when moving data between tools.

Know which question each page answers

Documentation is easier to navigate when you match the problem to the right kind of reference:

  • Supported formats answers: “Can SAMSON import this format?” It also covers export formats.
  • Loading molecules answers: “What is the workflow for opening files or fetching structures?”
  • This importers reference explains the role of importer extensions.
  • Exporters covers the related extension family for writing files.

Keeping these questions separate can save time. If you already know the format is supported, the loading workflow is the more relevant next stop. If it is not listed, look for an importer that supports it rather than repeatedly trying the same file-opening step.

If the format is not supported

SAMSON includes default importers, and additional importers can be added from SAMSON Connect. This gives you a practical next step when the format you need is missing from your current setup: check whether an extension is available.

If you cannot find an importer for the format, the documentation invites users to contact SAMSON support. When asking for help, it is useful to identify the format you need and describe what kind of data the file contains—such as a structure, map, or mesh. That context makes the request easier to understand without assuming the issue is with the molecular data.

For developers who want to build an importer, SAMSON’s documentation points to the guide for generating SAMSON Extensions. Importers belong to a broader extension system, so the Extending SAMSON page can also help put that path in context.

A quick decision path

  1. Identify the file format you intend to open.
  2. Check whether it appears in the supported formats reference.
  3. If it is supported, consult the loading workflow for guidance on opening files.
  4. If it is not supported, check SAMSON Connect for an importer, then contact the team if you still cannot find one.
  5. If you are developing the capability yourself, start with the extension-generation documentation.

This approach will not diagnose every file-loading problem, but it helps isolate the first important question: whether the required importer is available. That is often a better place to begin than changing a file or model before you know what SAMSON can read.

Learn more in the SAMSON Importers reference.

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

Comments are closed.