Find the residues you mean—not just the ones you can see

A molecular structure can contain thousands of residues, and many different questions can sound like “find the right ones.” Are you looking for a particular amino-acid type, residues in a helix, charged side chains, or a specific stretch of sequence numbers? Scrolling through a structure or relying on visual appearance alone can make these searches slow and easy to get wrong.

In SAMSON, the Node Specification Language (NSL) lets you describe residue subsets by their properties. The residue attribute space uses residue, or the short prefixes res and r. The key practical distinction is that some attributes describe an individual residue in the structure, while others describe its residue type. Choosing the attribute that matches your question makes a query easier to understand and reuse.

Start with the question you are asking

If you know the residue identity, use type. For example, r.t HIS matches histidines, and r.t LYS, PRO matches lysines and prolines. The documented type values include standard amino-acid names, some less common residue names, and nucleic-acid codes such as A, DA, and DT.

If your question is about a structural feature, use the corresponding structural attribute instead. To find residues in alpha helices, write r.ss alpha; the shorter alias r.ss h means the same thing. For beta strands, use r.ss beta, or r.ss b. Unstructured regions can be selected with r.ss unstructured or r.ss loop. These aliases are handy when entering a query, while the full names can be clearer when sharing it with a colleague.

Filter by chemistry or sequence position

For amino-acid side-chain charge, r.c negative selects negatively charged residues. The short form is r.c neg. You can also give multiple values: r.c neutral, positive matches residues with either neutral or positive side-chain charge. Polarity offers a related, but distinct, classification: r.p polar selects polar side chains, while r.p acidic, basic selects acidic or basic side chains. Charge and polarity answer different questions, so use the one that fits the property you want to inspect.

To locate residues by their structure sequence number, use r.id. For example, r.id == 42 targets residue number 42. A range query such as r.id 1:10, 20:30 describes two intervals. This is useful when you already know the sequence positions you want to examine, rather than the residue identities.

Remember what the query matches

A residue query selects residue nodes. If your goal is to identify atoms inside qualifying residues, NSL also documents expressions that relate atoms to residues. For example, n.t a in r.aa matches atoms in amino-acid residues, and "CA" in r.t VAL matches alpha carbons in valines. This distinction helps avoid a common mismatch: asking for a residue property when the object you ultimately need is an atom.

Many useful filters are inherited by residues from the broader node and structural-group attribute spaces. These include visibility and selection properties, residue names, atom counts, element counts, formal charge, and partial charge. For example, r.nat < 1000 describes a residue by its number of atoms, while r.pc > 1.5 uses partial charge. The residue reference lists the available attributes and examples, including the inherited ones.

A simple way to build a reliable query is to begin with one clear criterion—type, secondary structure, charge, or sequence number—and check that it expresses the biological question you have in mind. Then use the relevant residue or atom expression depending on what you want to match. For the complete attribute list and syntax examples, see the SAMSON residue attributes documentation.

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

Comments are closed.