When a molecular model contains many residues, finding the side chains relevant to a question can take longer than expected. You might be looking for groups with a particular atom composition, a charge value, or a name pattern—and scrolling through the structure is not a reliable way to narrow the search.
SAMSON’s Node Specification Language (NSL) provides attributes for describing side chains. The practical advantage is that you can express a specific criterion and use it to identify matching side-chain nodes, instead of relying only on visual inspection. The examples below use the documented sc form.
Start with the question, then choose an attribute
For a composition-based search, use the element-count attributes. For example, sc.nC < 10 describes side chains with fewer than 10 carbon atoms, while sc.nO 10:20 uses a range for oxygen count. The available counts include carbon (nC), hydrogen (nH), nitrogen (nN), oxygen (nO), and sulfur (nS). You can also query total atom count with sc.nat, or coarse-grained atom count with sc.ncga.
These attributes are useful when a chemical question is easier to express as a count than as a name. For instance, a search based on oxygen count can help you narrow attention to side chains with a specified number or range of oxygens. It does not, by itself, tell you what role those side chains play; it gives you a criterion for finding candidates to inspect.
Distinguish formal and partial charge
Charge-related searches have two separate attributes in this reference. formalCharge has the short name fc and takes integer values. An example is sc.fc > 1; a range can be written as sc.fc 6:8. partialCharge, abbreviated pc, uses floating-point values. The documented examples include sc.pc > 1.5 and sc.pc 1.5:2.0.
Keeping those attributes distinct matters: formal charge and partial charge are not interchangeable search criteria. Choose the one that matches the property you intend to examine, and treat the result as a way to locate side chains meeting that criterion—not as a complete interpretation of their chemistry.
Use names and state when they are the right clues
If the side chain is identifiable by its name, the inherited name attribute accepts strings in quotes. The reference shows sc.n "A" and sc.n "L*" as examples. For node state, boolean attributes let you describe visibility or selection: for example, sc.v and not sc.v represent visible and not-visible criteria, while sc.selected and not sc.selected represent selection state.
There is a small naming detail worth remembering: the side-chain attribute space has the short name s, but the documented selection attribute has no short name. Use its full form, sc.selected, as shown in the examples.
A practical narrowing routine
- Choose a clue. Decide whether the task is about atom counts, charge, name, or node state.
- Use the matching attribute. For example, start with
sc.nC < 10for a carbon-count criterion, orsc.pc > 1.5for the documented partial-charge comparison. - Adjust the criterion. Try a comparison or range that reflects the question you are investigating.
- Inspect the matches in context. A query narrows the set of side chains; biological interpretation still depends on the structure and the purpose of your analysis.
This approach turns an open-ended hunt into a reproducible search: state what you are looking for, select the corresponding attribute, and refine the criterion as needed. For the complete list of side-chain attributes and examples, see the Side chain attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
