When a molecular model contains many structures, finding the backbone group you need can become a small but persistent bottleneck. Clicking through objects one at a time is slow, and a group’s name alone may not tell you whether its composition or charge is relevant. SAMSON’s Node Specification Language (NSL) lets you describe backbone nodes using attributes such as atom counts, formal charge, name, and visibility.
The useful starting point is scope: the backbone attribute space matches backbone nodes. In the examples on this page, bb is used before an attribute. Many available attributes are inherited from broader node and structural-group attribute spaces, so a backbone query can use both general node properties and composition-related properties.
Start with size and composition
If you are trying to locate a backbone group of a manageable size, the number of atoms is a practical first clue. For example, bb.nat < 1000 describes a search for backbone nodes with fewer than 1,000 atoms, while bb.nat 100:200 expresses a range. The same pattern applies to element counts: bb.nC < 10 checks carbon count, and bb.nO 10:20 checks oxygen count.
This is useful when a structure’s overall appearance is not enough to distinguish the group you want. You can inspect carbon, hydrogen, nitrogen, oxygen, and sulfur counts independently using nC, nH, nN, nO, and nS. For coarse-grained structures, bb.ncga refers to the number of coarse-grained atoms. These counts help turn a vague search, such as “the smaller oxygen-rich group,” into specific criteria you can test.
Use charge when composition is not enough
Two groups can have similar sizes but differ in charge. NSL exposes formal charge as fc and partial charge as pc. The documentation gives examples such as bb.fc > 1, bb.fc 6:8, bb.pc > 1.5, and bb.pc 1.5:2.0. Formal-charge examples use integers; partial-charge examples use floating-point values.
A useful workflow is to narrow the candidates by size or elemental composition, then examine charge as a separate criterion. This keeps the search focused without treating atom count as a substitute for chemical properties. The reference lists the available attributes and example expressions; it does not define a single combined query here, so use the documented syntax for each criterion rather than assuming how multiple conditions should be joined.
Check names and display state separately
When a group has a meaningful label, the name attribute can help identify it. For example, bb.n "A" and bb.n "L*" show name-based expressions. The page also lists boolean attributes for visibility and selection: bb.v and not bb.v represent visible-state checks, while bb.selected and not bb.selected refer to selection state.
There is a small naming detail worth remembering: although the backbone attribute space has the short name s, the inherited selected attribute has no short name in this space. The documented form is bb.selected. The page also lists bb.sf for selectionFlag and bb.vf for visibilityFlag. These are distinct attributes from selected and visible, so choose the property that matches what you intend to check.
In practice, think of backbone NSL attributes as a compact checklist: identify the target group type, use counts to narrow candidates, add charge or name as needed, and check display or selection state only when it matters. To see the full attribute tables and inherited-property references, read the backbone attribute reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
