From a crowded model to a useful shortlist: filter structures by size and composition

A molecular model can contain far more structural models than you want to inspect at once. When the question is “Which models are small enough to review?” or “Which ones have a particular number of residues?”, scrolling through names is a slow substitute for a clear filter.

SAMSON’s Node Specification Language (NSL) lets you describe structural models by measurable attributes. The useful shift is to search by what a model contains—its atom, residue, chain, or molecule counts, for example—instead of relying only on labels. Structural-model queries use the sm attribute space and match structural model nodes.

Start with the scale of the model

For a quick size-based shortlist, use the number of atoms:

This asks for structural models with fewer than 1,000 atoms. To focus on a size band instead, use a range:

The same pattern works for other counts. For example, sm.nr > 130 finds models with more than 130 residues, while sm.nc 2:4 describes models with between 2 and 4 chains. These filters help make a large collection easier to triage before you examine individual structures in more detail.

Use composition when size is not enough

Two models can have similar total atom counts but very different compositions. Structural-model attributes include counts for several elements, including carbon, hydrogen, nitrogen, oxygen, and sulfur. For example:

This expresses a search for structural models with between 10 and 20 oxygen atoms. The corresponding short names are sm.nC for carbon, sm.nH for hydrogen, sm.nN for nitrogen, and sm.nS for sulfur. The general form is consistent: choose the attribute, then specify a value, comparison, or range.

These counts are useful when you need to narrow a set using a simple compositional clue. They do not, by themselves, identify where those atoms occur or describe a particular chemical motif; for that, use an appropriate, more specific search.

Include charge in the shortlist

When total charge is part of your selection criteria, NSL provides both formal and partial charge attributes. For formal charge, sm.fc > 1 selects models with a formal charge greater than 1, and sm.fc 6:8 specifies a range. For partial charge, try sm.pc 1.5:2.0 to describe models whose total partial charge falls between 1.5 and 2.0.

Formal charge accepts integer values; partial charge accepts real values. Keeping that distinction in mind helps you choose the right attribute and enter a meaningful range.

Make the query readable

Short names are convenient once you recognize them: nat means number of atoms, nr number of residues, nc number of chains, and nm number of molecules. The full attribute names are also available—for example, structuralModel.numberOfAtoms—which can make a saved query easier for a colleague to interpret.

A practical approach is to begin with one criterion that captures the biggest difference you care about, such as atom count or residue count. Check whether the resulting set is the right scale, then refine using composition or charge as needed. This keeps the search criteria understandable and makes it easier to explain why a model made the shortlist.

For the complete structural-model 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.

Comments are closed.