When a molecular project contains many conformations, it can be hard to spot the ones that deserve closer inspection. A large structure may be relevant to your analysis—or it may simply be an outlier that makes a collection harder to review. In SAMSON, the Node Specification Language (NSL) can help you find conformation nodes by their number of atoms, so you can narrow your search with a specific, readable criterion.
Filter paths by atom count
The path attribute space matches conformation nodes. Its numberOfAtoms attribute counts the atoms in a path. The full form is path.numberOfAtoms, and the short form is p.nat.
To match paths with more than 100 atoms, use:
p.nat > 100
This is useful when you want to identify larger conformations without relying on their names. The expression describes a threshold: it asks for paths whose atom count is greater than 100. Change the number to suit the question you are investigating.
To look for paths in a particular atom-count interval, use:
p.nat 100:200
The documentation describes this as matching paths with between 100 and 200 atoms. This can be a practical way to focus on a range rather than choosing a single cutoff. If the exact boundary behavior matters for your analysis, check the results against your intended criteria.
Be precise about what the query matches
A useful detail is that p.nat matches paths—that is, conformation nodes—not individual atoms. It is therefore a way to find conformations based on their atom count, rather than a direct query for atoms. Keeping that distinction in mind helps avoid a common source of confusion when interpreting a search.
The attribute space also includes inherited node attributes. For example, p.n refers to a path’s name and accepts quoted strings; the documentation shows examples such as p.n "A" and p.n "L*". You can also query whether a path is selected with p.selected, or use its selection flag with p.sf. These attributes describe different properties from atom count: a name identifies a path, while selection attributes concern its selection state.
A simple way to use the filter
-
Start with the question you want to answer: for example, “Which conformations have more than 100 atoms?”
-
Translate that question into the corresponding attribute and comparison:
p.nat > 100. -
If a range is more useful, try
p.nat 100:200instead. -
Review the matched conformation nodes in the context of your project. Atom count is a helpful screening criterion, but by itself it does not explain why a conformation is large or whether it is scientifically important.
This keeps the query focused and makes its intent easy to revisit later. It also separates a measurable property—number of atoms—from other considerations such as a path’s name or selection state.
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.
