When a molecular project contains several conformations, finding the one you need can become a small but persistent source of friction. Names may be similar, and visual inspection alone may not make it easy to spot which conformations contain more than a certain number of atoms. In SAMSON, the Node Specification Language (NSL) lets you describe the conformation you are looking for with a concise query based on its atom count.
Start with the conformation attribute space
Conformation attributes belong to the conformation attribute space, whose short name is co. An expression beginning with co therefore matches conformation nodes. The attribute that is specific to this space is numberOfAtoms, abbreviated nat. You can use either the full or short form: conformation.numberOfAtoms or co.nat.
This makes the query easier to read once you know the abbreviation. For instance, if you need conformations containing more than 100 atoms, write co.nat > 100. The longer equivalent is conformation.nat > 100. Both express the same criterion: the number of atoms must be greater than 100.
Use a range when size matters
Sometimes the goal is not simply to find a large conformation, but to narrow the results to a useful size band. The documented range form is co.nat 100:200, which matches conformations with a number of atoms between 100 and 200. The full attribute form is conformation.nat 100:200.
A practical way to choose between these two patterns is to ask what you already know about the structure you need. If you have a minimum size in mind, use a comparison such as co.nat > 100. If you are trying to focus on a bounded group, use a range such as co.nat 100:200. These small expressions make the selection criterion explicit, which can be especially helpful when revisiting a project or sharing a search with a colleague.
Keep the attribute and its value straight
One easy mistake is to confuse the attribute abbreviation with another attribute. For atom counts, use nat—not n. The latter is the short name for name, which accepts strings in quotes. For example, co.n "A" searches by conformation name, while co.nat > 100 searches by number of atoms. The two queries answer different questions, even though both begin with the same co prefix.
Conformations also inherit several general node attributes. You can refer to a conformation’s name with co.n, test whether it is selected with co.selected, or use its selection flag with co.sf. For example, not co.selected expresses the opposite of the selected-state test, and co.sf false checks for a false selection flag. These inherited attributes can be useful when your task concerns the state or identity of a conformation rather than its size.
A quick reference
co.nat > 100— conformations with more than 100 atoms.co.nat 100:200— conformations with an atom count between 100 and 200.co.n "A"— a conformation name match.co.selected— a selected-state test.
When a search does not return the expected result, first check that you are querying the intended attribute space (co), using the correct attribute (nat for atom count), and supplying a value in the expected form (an integer or range). For the complete attribute reference and additional context, see the conformation attributes documentation. You can also explore the broader NSL reference and its examples.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
