Find the structures that are slowing down your molecular scene

A crowded molecular project can be difficult to inspect by eye. One imported model may contain thousands of atoms; another may have many chains or residues; a third may carry an unexpected charge. Before opening models one by one, use SAMSON’s Node Specification Language (NSL) to narrow the scene by structural-model properties.

This is especially useful when you need to locate a model by size or composition, check an import, or identify candidates for closer inspection. Structural-model attributes apply to structural model nodes and use the sm prefix. The examples below are individual NSL expressions you can adapt to the question you are asking.

Start with the size of the model

For a quick size check, search by total atom count. For example, sm.nat > 100 matches structural models with more than 100 atoms. If you have a useful interval in mind, try sm.nat 100:200 to find models with an atom count between 100 and 200.

These two forms answer different practical questions: the comparison helps find models above a threshold, while the range helps focus on a known size band. You can use the same approach for residues: sm.nr > 100 finds models with more than 100 residues, and sm.nr 100:120 narrows the search to a specified interval.

Use structure counts to distinguish candidates

Atom count alone may not tell you why a model is large or how it is organized. Chain and molecule counts provide another way to sort candidates. For example, sm.nc < 3 matches models with fewer than three chains, while sm.nm 2:4 matches models with two to four molecules. To look for models with more than two segments, use sm.ns > 2.

These counts can help turn a vague visual search into a more specific question: Is the candidate a multi-chain model? Does it contain several molecules? Does it have the segment count expected from the structure you imported? The query narrows the possibilities; you can then inspect the matching models in context.

Check composition without counting atoms manually

NSL also exposes counts for selected elements. For instance, sm.nC < 10 matches models with fewer than ten carbon atoms, and sm.nO 10:20 matches models with between ten and twenty oxygen atoms. Corresponding attributes are available for hydrogen (sm.nH), nitrogen (sm.nN), and sulfur (sm.nS).

For a coarse-grained model, sm.ncga < 1000 filters by the number of coarse-grained atoms. These element and coarse-grained counts are useful when checking whether a model’s composition looks consistent with what you expect. They are counts, not a substitute for inspecting chemical identity or connectivity.

Investigate charge as a separate clue

If charge matters to your review, distinguish formal charge from partial charge. sm.fc 6:8 matches models with a formal charge in the stated range. For partial charge, use a real-number expression such as sm.pc 1.5:2.0. A threshold is also possible: sm.pc > 1.5.

Formal charge uses integer values; partial charge uses real values. Treat them as different properties rather than interchangeable ways of expressing the same filter.

A simple triage routine

  1. Choose the property that describes the problem: size, organization, composition, or charge.
  2. Begin with a broad threshold or range, such as sm.nat > 100.
  3. Refine the search with another relevant attribute, testing expressions as separate queries if needed.
  4. Inspect the matching structural models to confirm that the results fit your scientific intent.

NSL gives you a compact way to describe what you are looking for, rather than relying only on names or visual inspection. For the complete attribute reference and more examples, see the structural model attributes documentation.

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

Comments are closed.