A molecular structure can contain thousands of residues, and the hard part is often not seeing them—it is narrowing the model to a useful subset. Maybe you need to inspect a particular sequence range, find residues in a helix, or separate charged side chains from hydrophobic ones. In SAMSON, the residue attributes in Node Specification Language (NSL) let you describe those targets with compact, readable queries.
The practical advantage is that you can filter at the level of the question you are asking. Instead of starting with individual atoms, begin with residues: their identity, sequence number, secondary structure, charge, polarity, or other properties. Residue queries use the residue attribute space, commonly shortened to r or res.
Start with identity or sequence position
If you know which amino acid types you want, use r.t. For example, r.t LYS, PRO matches lysine and proline residues. To focus on one type, use r.t HIS. This is useful when inspecting residues with a particular chemical identity without having to select each one manually.
When the target is defined by its position in the structure, use r.id, the residue sequence number (structure ID). For instance, r.id 1:10, 20:30 selects residues whose IDs fall in either of those ranges. This can help isolate regions for inspection, but remember that these are structure IDs; they are not necessarily a simple count from the start of a chain.
Use structural context to narrow the search
Residue identity alone may return more matches than you need. The r.ss attribute filters by secondary structure: r.ss h matches alpha-helical residues, while r.ss a, b matches alpha helices and beta strands. The accepted aliases make the query easier to remember: alpha can also be written as helix, beta as strand, and unstructured regions as loop.
For example, if you are investigating a region that appears to form a helix, first identify the relevant residue IDs, then use the secondary-structure filter to examine the structural context. These attributes answer different questions: r.id describes where a residue is identified in the structure, while r.ss describes its assigned structural category.
Distinguish charge from polarity
Charge and polarity are related, but they are not interchangeable filters. The r.c attribute describes side-chain charge categories: negative, neutral, positive, or undefined. For example, r.c neg finds amino acid residues with negatively charged side chains.
The r.p attribute describes side-chain polarity. Its categories include polar, nonpolar, acidic, and basic. Use r.p polar when polarity is the relevant property; use r.c pos when you specifically want positive side-chain charge. Keeping these concepts separate helps avoid selecting residues based on an assumption that the query does not actually express.
When the question is about atoms, query through residues
Sometimes the goal is to find atoms that belong to a set of residues. The documentation shows this pattern with "CA" in r.t VAL, which matches alpha-carbon atoms in valine residues. Similarly, n.t a in r.aa matches atoms in amino acid residues. This is a useful distinction: the residue filter defines the group, and the expression can then identify atoms within that group.
A quick way to choose an attribute
- Known residue identity? Try
r.t. - Known structure numbering? Try
r.id. - Need helices, strands, or loops? Try
r.ss. - Investigating side-chain charge or polarity? Try
r.corr.p, respectively. - Need atoms belonging to a residue group? Use an atom-in-residue expression such as
"CA" in r.t VAL.
These filters turn a broad structural inspection into a more specific question: which residues, where, and according to which property? For the complete list of residue attributes and additional examples, see the SAMSON residue attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at www.samson-connect.net.
