A crowded molecular project can be hard to navigate. You may have several structures open and need to find the model with fewer than a thousand atoms, a particular number of chains, or a specific total charge. Checking each model one by one turns a simple question into repetitive inspection.
SAMSON’s Node Specification Language (NSL) provides a way to describe structural models by their attributes. For this task, the structuralModel attribute space has the short prefix sm. Its numeric attributes let you search by counts and charge, using comparison operators or ranges.
Start with the question you need to answer
For a first pass, use the attribute that corresponds directly to your criterion:
- Find smaller structures:
sm.nat < 1000matches structural models with fewer than 1,000 atoms. - Look for a model with a particular atom-count interval:
sm.nat 100:200matches models with between 100 and 200 atoms. - Narrow by chain count:
sm.nc < 3matches models with fewer than three chains;sm.nc 2:4searches a range. - Focus on larger structures by residue count:
sm.nr > 100matches models with more than 100 residues. - Check formal charge:
sm.fc 6:8matches models with formal charge between 6 and 8.
These expressions are useful because they turn an inspection task into a clear criterion. Try the threshold that reflects your immediate need, then adjust it if the result set is too broad or too narrow. For example, an atom-count range can help locate models of a manageable size before you inspect their details.
Counts can reveal more than overall size
Total atom count is a useful starting point, but it does not describe composition. Structural-model attributes also include counts for carbon (sm.nC), hydrogen (sm.nH), nitrogen (sm.nN), oxygen (sm.nO), and sulfur (sm.nS). These can help you distinguish models with different elemental makeups. For example, sm.nO 10:20 expresses a search for models with 10 to 20 oxygen atoms.
Other counts help describe organization: sm.nm for molecules, sm.nc for chains, sm.ns for segments, and sm.nsg for structural groups. The page also lists sm.ncga, the number of coarse-grained atoms. Keep the attribute aligned with the question: atom count and coarse-grained atom count are separate measurements.
Keep the two charge measures distinct
NSL provides both sm.fc (formal charge) and sm.pc (partial charge). They are different attributes, so use the one that matches the quantity you intend to screen. For instance, sm.pc 1.5:2.0 describes a partial-charge range, while sm.fc 6:8 describes a formal-charge range. The documentation also shows comparisons such as sm.fc > 1 and sm.pc > 1.5.
A practical approach is to begin with one meaningful filter—size, composition, organization, or charge—and then refine your search using the available NSL workflow. The short names keep expressions compact; the full attribute names are available when you want them to be more self-explanatory. This makes model screening easier to read and easier to revisit later.
For the complete attribute list and additional examples, see the structural model attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
