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

A file that will not open can interrupt a modeling session before the science even begins. The first useful question is not always “What went wrong with the file?” It may be “Does SAMSON have an importer for this format, and is this the right workflow for the object I want to load?”

In SAMSON, an importer is an extension that parses a file and brings its contents into a document. Importers can handle different kinds of data, including molecular structures, electron-density maps, meshes, and other objects. SAMSON includes default importers, and additional importers can be added from SAMSON Connect.

Start with the format, not guesswork

When a file does not load as expected, begin by identifying its format. Then compare it with the list of formats supported by SAMSON. This is a simple check, but it helps separate two different situations: the format is supported, or you need an importer that is not currently available in your setup.

It also helps to consider what the file represents. A structure file, an electron-density map, and a mesh are not interchangeable kinds of data. Since importers parse files to load particular objects, knowing both the file format and the kind of object you expect can make it easier to identify the relevant importer.

A practical check before you continue

  • Identify the task. Are you opening a local file, fetching a structure, or working with an existing document? The Loading molecules page covers the user workflow for opening files, fetching structures, and understanding documents.
  • Check the format list. Confirm whether SAMSON supports the format you are trying to use. The supported-formats reference also covers formats for export, so check whether you need to read a file or write one.
  • Look at importer availability. SAMSON has default importers, while additional ones can be obtained through SAMSON Connect. If the format is listed but you are unsure how to proceed, the loading workflow and importer references can help you distinguish the task from the extension responsible for reading the file.
  • Ask about a missing importer. If the importer you need is unavailable, the documentation directs users to contact SAMSON support.

Importing and exporting solve different problems

It is easy to mix up importers and exporters when moving data between tools. Importers read files into SAMSON; exporters are the matching extension family for writing files out. If your goal is to save or share a result in another format, visit the Exporters reference instead of looking for an importer.

For developers: extend the file-reading options

If you are building support for a format that your workflow requires, SAMSON’s documentation points to the developer guide for generating SAMSON Extensions. The broader Documentation center is another starting point. This is the route to explore when you want to develop an importer, rather than simply install or use one.

The key is to separate three questions: what kind of data are you loading, which format contains it, and which importer can read that format? That small bit of preparation can save time and point you to the right reference before you change your workflow.

For the importer extension reference, learn more about SAMSON importers.

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

Comments are closed.