A quick atom-count check can make a conformation search much less painful

When a molecular project contains many conformations, it can be surprisingly easy to spend time inspecting structures that are not even the right size for the task. Perhaps you are looking for a candidate with more than 100 atoms, or want to narrow a set to conformations in a particular size range. In SAMSON, the Node Specification Language (NSL) lets you express that filter directly using the conformation atom-count attribute.

The attribute is called numberOfAtoms. Its short form is nat, and the conformation attribute space can be written as co. So a useful starting point is:

co.nat > 100

This matches conformation nodes whose atom count is greater than 100. The full attribute spelling works too:

conformation.numberOfAtoms > 100

The short expression is handy when writing a query; the full spelling can be easier to read later, especially when you are learning NSL or sharing an expression with someone who has not memorized the abbreviations.

Use a range when a cutoff is not enough

A single threshold is useful for excluding smaller candidates, but some tasks call for a narrower interval. For that, use a colon-separated range:

co.nat 100:200

This matches conformations with an atom count between 100 and 200. For example, you might use a range to focus attention on structures of roughly the expected size before examining them more closely. The point is not that atom count tells you whether a conformation is correct—it does not—but that it can remove an obvious source of irrelevant results early in the search.

Keep the attribute names straight

There is one easy-to-miss detail: co.n means the conformation’s name, not its number of atoms. The short name for atom count is co.nat. For instance, co.n "A" is a name-based expression, while co.nat > 100 is based on atom count. If an expression returns an unexpected set, checking this distinction is a good first troubleshooting step.

Conformations also inherit general node attributes such as selected and selectionFlag. These can be useful when combining a size condition with other criteria. For example, co.nat > 100 and co.selected expresses a combined condition: the conformation must have more than 100 atoms and be selected. As with any combined query, check that each part describes what you intend before relying on the results.

What atom count can—and cannot—tell you

Atom count is a simple, reproducible way to narrow candidates. It can help distinguish conformations with different sizes and make a large collection easier to inspect. But matching the expected count does not establish that atoms are the right ones, that the structure is chemically sensible, or that two conformations are otherwise equivalent. Treat the count as a screening criterion, then use the structural and scientific checks appropriate to your project.

For the complete attribute reference and additional syntax details, see the SAMSON conformation attributes documentation.

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

Comments are closed.