When a molecular model contains many backbone nodes, finding the groups that matter can become a small but frustrating task of repeated inspection. You may be looking for a group with a particular atom count, a carbon-rich composition, or a charge outside a chosen range. SAMSON’s Node Specification Language (NSL) lets you express those checks as backbone attributes, so you can describe what to look for instead of relying only on visual browsing.
The key idea is to ask specific, measurable questions. The backbone attribute space includes properties such as numberOfAtoms, numberOfCarbons, and formalCharge. These are inherited from the structuralGroup attribute space, which means they describe structural and compositional properties rather than just display state. In the documented examples, backbone expressions use the bb prefix.
Start with size
If your first concern is whether a backbone group is too large or too small to inspect, use its atom count. For example, bb.nat < 1000 expresses a search for groups with fewer than 1,000 atoms. If you are interested in a bounded size, the documented range form is bb.nat 100:200.
This is useful as a first sorting question: it turns an open-ended visual scan into a criterion you can state explicitly. The threshold should come from your own model and task; the examples show the syntax, not a universal definition of a small or large group.
Use elemental counts to describe composition
Backbone attributes also expose counts for carbon, hydrogen, nitrogen, oxygen, and sulfur. For instance, bb.nC < 10 checks for fewer than 10 carbons, while bb.nO 10:20 specifies an oxygen-count range. The corresponding short names are nC, nH, nN, nO, and nS.
These counts can help you turn a vague observation—“this group seems unusually oxygen-rich”—into a reproducible criterion. They can also help narrow a model review to groups with a composition you want to examine. Treat each count as one piece of evidence: atom totals alone do not describe connectivity or molecular behavior.
Check charge without confusing two different measures
For integer formal charge, the documented short name is fc. Examples include bb.fc > 1 and bb.fc 6:8. For floating-point partial charge, use pc, as in bb.pc > 1.5 or bb.pc 1.5:2.0.
Keeping these attributes distinct matters: formalCharge takes integer values in this reference, while partialCharge takes floating-point values. Choose the one that matches the question you are asking, and use the comparison or range format shown in the examples.
Remember that backbone attributes include inherited properties
The backbone space also includes node properties such as name, visible, hidden, and selected. For example, the reference shows bb.n "A" for a name and not bb.v for a visibility check. This is useful context when a task involves both what a group is made of and how it is represented in the model.
One small naming detail can prevent confusion: the backbone attribute space has the short name s, but the inherited selected attribute does not have the short name s. The reference therefore uses bb.selected rather than a shortened form for that property.
A practical way to begin is to pick one question—size, elemental count, or charge—and write its corresponding expression using the documented examples as a template. That keeps the search criteria readable and makes it easier to revisit why a group caught your attention.
For the complete list of backbone attributes and examples, see the Backbone attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
