Too Many Conformations? Start by Counting Atoms

When a molecular project contains several conformations, it can be difficult to find the ones that are relevant to a particular task. Names may be inconsistent or uninformative, and scanning a long list one entry at a time is tedious. If the number of atoms is the useful clue, SAMSON’s Node Specification Language (NSL) lets you search conformations by that count.

Use atom count as a practical first filter

The conformation.numberOfAtoms attribute matches conformation nodes according to their number of atoms. Its short form is co.nat, and its values are integers. For example:

  • co.nat > 100 matches conformations containing more than 100 atoms.
  • co.nat 100:200 matches conformations with a number of atoms between 100 and 200.

These searches can help when you already know the approximate size of the structures you want to inspect. For instance, if a collection includes both small and large conformations, a count-based query can narrow attention to the size range you care about before you inspect names or other details. It is a simple way to turn a vague list into a more manageable set of candidates.

Keep co.nat distinct from co.n

The short forms are easy to mix up: co.nat refers to the number of atoms, while co.n refers to the name. The name attribute accepts strings in quotes, such as co.n "A" or co.n "L*". When your intent is to filter by size, include the complete nat short name. This small distinction can save time spent wondering why a query is not expressing the criterion you meant.

Make the query fit the question

Choose a threshold or range that reflects the comparison you need to make. Use a greater-than condition when you want to identify conformations above a known size threshold. Use a range when you want to focus on a bounded interval. The examples above express two different questions: “Which conformations have more than 100 atoms?” and “Which have between 100 and 200 atoms?”

Atom count is a useful sorting clue, but it is not a substitute for judging whether a conformation is scientifically appropriate. Treat the result as a focused set to examine, rather than as proof that a structure meets every requirement of your analysis.

Remember the attribute space

Conformation attributes are defined in the conformation attribute space, shortened to co, and this space matches conformation nodes. It also inherits node attributes such as name, selected, and selectionFlag. The inherited selected attribute can be written as co.selected or not co.selected; in this space, it does not use the node short name s. The inherited selection flag has the short name sf, for example co.sf false.

Keeping these distinctions in mind makes it easier to choose the right attribute: use co.nat for size, co.n for name, and the inherited selection attributes when you need to refer to selection state. For the full attribute reference and additional examples, see the SAMSON conformation attributes documentation.

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

Comments are closed.