A molecular scene can contain several structural models, and it is not always obvious which one is worth inspecting first. Maybe you need a smaller model, one with a particular number of residues, or a structure whose total charge falls within a range. Checking models one by one is slow—and visual appearance alone may not reveal the properties you care about.
SAMSON’s Node Specification Language (NSL) provides a way to describe structural models using attributes such as atom counts, chain counts, residue counts, and charge. The structural-model attribute space uses the prefix sm. You can use these expressions to search by measurable properties and narrow the set of models you need to review.
Start with the size of the model
If the first goal is to exclude very large structures, filter by the number of atoms:
sm.nat < 1000
To look for models within a particular size interval, use a range:
sm.nat 100:200
The same pattern works for other structural counts. For example, sm.nr > 100 matches models with more than 100 residues, while sm.nc 2:4 matches models with between 2 and 4 chains. These filters help turn a broad inspection task into a more focused one: choose the count that reflects your immediate constraint, then review the matching models in context.
Use composition counts to ask more specific questions
Sometimes total size is not enough. A model’s counts of particular elements can provide a more useful first pass. NSL includes attributes for carbon, hydrogen, nitrogen, oxygen, and sulfur atoms:
sm.nC < 10— fewer than 10 carbon atomssm.nH 10:20— a hydrogen count in the 10–20 rangesm.nN < 10— fewer than 10 nitrogen atomssm.nO 10:20— an oxygen count in the 10–20 rangesm.nS < 10— fewer than 10 sulfur atoms
There are also attributes for coarse-grained atoms, molecules, segments, and structural groups. Their short names include sm.ncga, sm.nm, sm.ns, and sm.nsg. The key practical idea is to match the attribute to the question: use residues when you care about residue count, chains when chain organization matters, and element counts when composition is the relevant clue.
Don’t confuse the two charge measures
Structural models have both formal-charge and partial-charge attributes. They answer different filtering questions, so choose deliberately. Formal charge uses sm.fc and takes integer values; for example, sm.fc 6:8 matches models with formal charge in that range. Partial charge uses sm.pc and accepts real values; for example, sm.pc 1.5:2.0 matches models with partial charge between 1.5 and 2.0.
That distinction is useful when you are comparing models: a query about formal charge should not be substituted for one about partial charge just because both describe charge. The attribute name tells you which quantity you are filtering.
A simple way to make filtering useful
Begin with one clear criterion rather than trying to guess every property at once. If size is the bottleneck, start with sm.nat. If you are organizing structures by biological scale, consider sm.nr, sm.nc, or sm.nm. If charge or elemental makeup is central to the task, use the corresponding charge or element-count attribute. Then inspect the matches and refine the question as needed.
NSL also includes inherited model attributes for properties such as name, visibility, and selection state. For instance, sm.n "A" searches by name, and sm.v refers to visibility. These can complement composition-based filters when you need to locate or manage models as well as compare their contents.
For the complete attribute reference and additional examples, see the SAMSON structural model attributes documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
