From residue soup to a focused search: practical filters for molecular structures

A large molecular structure can be hard to inspect one residue at a time. You may be looking for a particular amino acid, a charged side chain, a helix, or residues near a structure’s termini. In SAMSON, the residue attributes of the Node Specification Language (NSL) let you describe those properties directly, turning a manual hunt into a repeatable search.

Residue attributes use the residue space, often shortened to r. The key practical distinction is that some attributes describe the residue as it appears in the loaded structure, while others describe its residue type. That distinction helps you choose a useful filter and interpret what it returns.

Start with the question you want to answer

If you know the amino-acid identity, filter by residue type. For example, r.t LYS matches lysines, while r.t LYS, PRO matches lysines and prolines. The documented type values include the standard three-letter amino-acid names, as well as names for nucleic-acid residues and some additional residue types.

If you are exploring chemistry rather than identity, use the residue’s charge or polarity classifications. r.c neg finds amino-acid residues with negatively charged side chains; r.c neu, pos matches neutral or positively charged side chains. For polarity, r.p polar matches polar side chains, and r.p acidic, basic covers acidic or basic side chains.

These classifications are not interchangeable with total formal charge. r.c describes amino-acid side-chain charge, whereas r.fc tests the residue’s total formal charge. For example, r.fc 6:8 matches residues whose formal charge falls between 6 and 8. Keeping those meanings separate can prevent a search from answering a different chemistry question than the one you intended.

Use structure-aware attributes for context

When the local structure matters, try secondary structure, sequence number, or terminal status. r.ss h finds residues in alpha helices; r.ss b refers to beta strands, and r.ss l to unstructured regions or loops. You can also search multiple listed values, as in r.ss a, b, which matches alpha-helix and beta-strand residues.

To inspect a known part of a chain, use the residue sequence number: r.id == 42 matches sequence number 42, while r.id 1:10, 20:30 covers the two listed ranges. The r.ter attribute identifies terminal residues. These are structure-dependent properties, so they can help you orient your search in a specific model rather than classify a residue type in the abstract.

Be precise about what is being matched

A residue query matches residues. If your next task is to identify atoms belonging to a class of residues, the documentation gives this pattern: n.t a in r.aa. It matches atoms in amino-acid residues. Likewise, "CA" in r.t VAL matches alpha carbons, identified by name, in valine residues. This distinction is useful when a workflow needs atom-level results but the biological condition is defined at the residue level.

For a quick exploration, start with one clear criterion, such as r.ss h or r.t HIS. Then refine the search using another attribute if needed. This makes it easier to see which part of a query is responsible for the result, and to adjust the selection when the structure or question changes.

For the complete attribute list, aliases, and examples, see the SAMSON residue attributes reference.

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

Comments are closed.