A quicker way to find the right structure in a crowded molecular scene

A molecular project can accumulate structures quickly: a small ligand, a large protein, several chains, solvent, and alternate models may all sit together in the same scene. When the immediate question is “Which model has the size or composition I need?”, inspecting each one manually is slow and easy to get wrong.

SAMSON’s Node Specification Language (NSL) lets you describe structural models by their attributes. The sm attribute space applies to structural model nodes, and its short names make common searches compact. Rather than scanning a scene by eye, you can ask for models with a particular number of atoms, chains, residues, or selected elements.

Start with a size filter

If you need to locate models in a rough size range, use numberOfAtoms, shortened to nat. For example, sm.nat 100:200 matches structural models with between 100 and 200 atoms. To look for models above a threshold, use a comparison such as sm.nat > 100. These filters are useful for separating small components from larger structures before you investigate them further.

Counts of other model components can help narrow the search. For example, sm.nc < 3 searches for models with fewer than three chains, while sm.nr > 130 finds models with more than 130 residues. The corresponding attributes are numberOfChains (nc) and numberOfResidues (nr).

Use composition when size is not enough

Two models can have similar total atom counts but very different compositions. NSL includes counts for carbon, hydrogen, nitrogen, oxygen, and sulfur atoms. For example, sm.nO 10:20 specifies a range of oxygen counts, and sm.nC < 10 looks for models with fewer than ten carbon atoms. These are model-level composition filters: they help identify candidate structural models, rather than describing a particular atom’s identity.

There are also counts for coarse-grained atoms, molecules, segments, and structural groups. Their short forms include ncga, nm, ns, and nsg. For instance, sm.nm < 3 searches by molecule count, and sm.nsg > 10 searches by structural-group count. These can be useful when a model’s organization matters more than its overall size.

Check charge as a separate clue

For charge-based searches, distinguish formalCharge from partialCharge. Formal charge is an integer attribute: sm.fc 1 matches models with a total formal charge of 1, and sm.fc 6:8 specifies a range. Partial charge can be a real number: sm.pc 1.5:2.0 looks for models with a total partial charge between those values. They are different attributes, so choose the one that fits the property you are investigating.

Keep the search readable

A practical workflow is to begin with the attribute that best expresses your question, then try another filter if you still have too many candidates. For example, start with an atom-count range, then inspect whether chain count or elemental composition helps distinguish the remaining models. This keeps each query easy to understand and makes it simpler to adjust a threshold when the result is too broad or too narrow.

NSL also exposes inherited structural-model attributes, including name, visible, hidden, and selected. For example, sm.n "L*" searches by name pattern, and sm.v refers to visibility. These can complement count-based searches when you already know something about how a model is named or displayed.

For the complete attribute list and additional syntax examples, see the SAMSON structural model attributes reference.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.