A molecular structure can look tidy while still containing details worth checking: alternate atom locations, low-occupancy records, unusually high temperature factors, or atoms from a particular chain or residue range. Finding those atoms one by one is tedious—and broad selections can include much more than you intended.
SAMSON’s Node Specification Language (NSL) lets you describe an atom selection by combining attributes. The useful shift is from clicking atoms individually to writing down the criteria you care about, then adjusting those criteria as you inspect the structure.
Start with a precise region
Atom attributes use the atom attribute space, abbreviated as a, and match atom nodes. For example, to focus on residues 40–50 in chain A, combine the chain and residue sequence number attributes:
a.c A and a.resi 40:50
The chain attribute accepts character values, while resi takes integers. A colon expresses a range, so a.resi 40:50 selects atoms in residues with sequence numbers between 40 and 50. You can use the full attribute names too: atom.chain A and atom.residueSequenceNumber 40:50.
Inspect alternate locations
Some structure records contain alternate locations for atoms. To narrow your selection to atoms labeled B or C, use:
a.alt B, C
You can combine that with the region filter:
a.c A and a.resi 40:50 and a.alt B, C
This gives you a targeted way to review alternate-location records without scanning the whole structure. The attribute accepts character values, and a comma-separated list means “one or the other.”
Find records with values to review
Occupancy and temperature factor can help identify records for closer inspection. For example, this expression finds atoms in the region whose occupancy is below 0.5:
a.c A and a.resi 40:50 and a.oc < 0.5
To find atoms in the same region with a temperature factor above 75, use:
a.c A and a.resi 40:50 and a.tf > 75
These are filters, not verdicts: the selected values are a prompt to inspect the relevant atoms in the context of your model and workflow. Thresholds should be chosen for the question you are asking, rather than treated as universal cutoffs. You can also express numeric intervals, such as a.oc 0.6:0.7.
Add atom identity when it helps
You can make a region-specific query more focused by adding other attributes. For instance, a.nonH selects heavy (non-hydrogen) atoms, and a.s O selects oxygen atoms by element symbol. A combined filter can help focus a review on particular atom types rather than every atom in a residue.
NSL also supports attributes for formal charge, hydrogen-bond donors and acceptors, bonded-atom counts, and more. Numeric attributes can use comparison operators or ranges; categorical attributes can use named values; and true/false attributes can be used as filters. For example, a.hba matches hydrogen-bond acceptors, while a.fc > 1 matches atoms with formal charge greater than 1.
Keep the data requirements in mind
Not every attribute is available in every situation. Coarse-grained mass, radius, and type apply to coarse-grained atoms. Geometry must be computed before filtering by geometry, and hybridization must be assigned before using that attribute; it may not be specified by default. Keeping these requirements in mind can help explain why a query returns no matches.
A practical workflow is to begin with a small structural region, add one criterion at a time, and check whether the result matches your intent. That makes it easier to spot an overly broad filter, an unexpected attribute value, or a prerequisite that has not been computed.
For the full attribute reference and additional examples, see the SAMSON atom attributes documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
