Too many structures to inspect? Filter molecules by what they contain

A crowded molecular model can make a simple question surprisingly difficult: which structures are small enough to inspect, which contain many residues, and which are organized into several chains or segments? Scanning names or expanding every item in a structure tree is slow, especially when you first need a rough structural overview.

SAMSON’s Node Specification Language (NSL) provides a way to describe molecule-level criteria. The molecule attribute space, abbreviated mol, matches molecule nodes. Its numeric attributes let you search by counts such as atoms, chains, residues, segments, or structural groups. Instead of relying on a molecule’s name, you can ask a more structural question.

Start with the size of the molecule

If you want to find molecules below a chosen atom count, use mol.nat, the short name for numberOfAtoms. For example:

This matches molecules with fewer than 1,000 atoms. To look within a range, the documented range form is:

That can be useful when you want to narrow a large scene to structures of a manageable scale, or compare molecules within a particular size band. The value is a count of atoms, not a measurement of molecular mass or physical dimensions, so choose the attribute that matches the question you are trying to answer.

Use structural organization as a clue

Atom count alone may not distinguish the structures you care about. Molecules also have attributes for the number of chains, residues, segments, and structural groups:

  • mol.nc — number of chains
  • mol.nr — number of residues
  • mol.ns — number of segments
  • mol.nsg — number of structural groups

For instance, mol.nc < 3 finds molecules with fewer than three chains. To look for molecules with more than 100 residues, use mol.nr > 100. If you are interested in structures with a small number of segments, try mol.ns < 3. These searches help turn a vague inspection task into a specific question about how a molecule is organized.

Make the threshold fit the task

Thresholds are not universal definitions of a small or complex molecule. They are practical cutoffs that should reflect your current task and dataset. For example, a 1,000-atom cutoff may be useful for an initial pass, but another project might call for a much lower or higher value. Start with a broad threshold, inspect the matches, then adjust it to focus the search.

Range expressions are another way to explore a dataset without guessing a single cutoff. For example, mol.nr 100:120 looks for molecules whose residue counts fall between 100 and 120, while mol.nc 2:4 searches by chain count. The documentation also shows comparisons such as mol.nsg > 10 for structural groups and mol.ns > 2 for segments.

Remember what the attribute space matches

These expressions use molecule attributes, so they are intended to match molecule nodes—not individual atoms or residues. Some available attributes are inherited from broader NSL categories. For example, mol.nat comes from the structural-group attribute space, while attributes such as mol.nc are specific to molecules. This distinction is helpful when choosing a query: use molecule-level counts when your goal is to compare whole molecules.

A practical way to begin is to pick the attribute that directly represents your question, test a simple threshold, and then refine the number. Use atom count for overall size, residue count for residue-based scale, and chain or segment counts when organization matters. This keeps the search interpretable: each expression tells you exactly which feature you are screening.

For the complete attribute list and additional examples, see the SAMSON molecule attributes reference.

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

Comments are closed.