Find the Conformations That Are Too Large to Miss

A molecular project can contain many conformations, and a quick visual scan is not always enough to spot the ones that deserve attention. If your immediate question is simply “Which paths contain more than a certain number of atoms?”, SAMSON’s Node Specification Language (NSL) lets you express that criterion directly instead of checking each path one by one.

Filter paths by atom count

In NSL, the path attribute space matches conformation nodes. Its numberOfAtoms attribute counts the atoms in a path. The short form is p.nat, so a threshold query can be written as:

This selects paths with more than 100 atoms. The full attribute name is available too:

Use the threshold as a practical triage step: for example, narrow your attention to paths above a count that matters for your current task. The number is a count of atoms—it is not a direct measure of molecular weight, visual size, or scientific importance. Choose a cutoff that makes sense for the structures in your project.

Use a range when a cutoff is not enough

Sometimes you want to inspect a band of atom counts rather than everything above one value. NSL supports an integer range:

This matches paths with an atom count between 100 and 200. A range can be useful when you want to compare similarly sized conformations, or when you are trying to locate a particular group without including every larger path. The documentation also gives path.nat 100:200 as the full-name version.

Keep the query focused on paths

The p prefix identifies the path attribute space. That matters because the same kind of attribute name may exist in other NSL spaces, while path-specific queries are intended to match conformation nodes. If a query is meant to find paths, making that scope explicit helps keep the expression readable.

Path nodes also inherit several attributes from the general node attribute space. For instance, you can refer to a path by name with p.n "A", or use the inherited selected-state attribute with p.selected and not p.selected. The inherited selectionFlag attribute has the short form p.sf; examples include p.sf false and p.sf. These attributes provide additional ways to describe paths, alongside the atom-count criterion.

A simple way to make the search reproducible

When you find yourself repeatedly scanning for unusually large or similarly sized conformations, write the criterion down as an NSL expression. A threshold such as p.nat > 100 records exactly what “large” means for that search. A range such as p.nat 100:200 makes a bounded comparison easy to repeat. You can adjust the numbers to fit the question at hand, rather than relying on memory or visual estimation.

For the complete attribute reference and additional examples, see the SAMSON path attributes documentation.

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

Comments are closed.