Find the side chains that need attention—without scanning them one by one

When a molecular model contains many residues, a small group of side chains can be easy to overlook: perhaps you want to inspect side chains with a particular atom count, compare their charges, or locate those with a specific name. Manually checking each one takes time and makes it harder to repeat the same search later.

SAMSON’s Node Specification Language (NSL) lets you describe side chains using attributes such as atom counts, charge, name, and visibility. The side-chain attribute space is shown in the examples below with the prefix sc. A useful first step is to translate your question into an attribute and a condition.

Start with composition

If your question is about the makeup of a side chain, use one of the element-count attributes. For example, sc.nC < 10 describes side chains with fewer than 10 carbon atoms, while sc.nO 10:20 uses a range for the number of oxygen atoms. Other available counts include hydrogens (sc.nH), nitrogens (sc.nN), sulfurs (sc.nS), and total atoms (sc.nat).

These counts are useful when you need a structural filter rather than a residue-name filter. For instance, a carbon-count condition can help narrow attention to side chains of a certain size. It does not, by itself, identify a particular amino-acid type: treat it as a way to describe composition, not as a substitute for a residue identity.

Use charge as a separate clue

NSL exposes both formalCharge and partialCharge for side chains. The short forms are fc and pc. Examples include sc.fc > 1 for a formal-charge comparison and sc.pc 1.5:2.0 for a partial-charge range.

Keep the distinction between these attributes in mind: they are separate quantities, so choose the one that matches the question you are asking. If you are investigating a charge-related concern, checking an appropriate charge attribute can help you focus your review. The documentation lists formal charge as an integer-valued attribute and partial charge as a floating-point attribute.

Search by name or state

If you already know the name you want to look for, the inherited name attribute accepts strings in quotes. The documented examples are sc.n "A" and sc.n "L*". For a quick visibility-oriented search, the examples include sc.v and not sc.v; selection can be queried with sc.selected or not sc.selected.

These boolean attributes are handy when the question is not chemical composition but model state: is a side chain visible, or is it selected? Other available state attributes include hidden, hasMaterial, ownsMaterial, selectionFlag, and visibilityFlag. Their examples use short forms such as sc.h, sc.hm, sc.sf, and sc.vf.

A practical way to build a search

  1. Describe the problem: decide whether you are looking for a name, a composition, a charge value, or a visibility/selection state.
  2. Choose the matching attribute: for example, use nO for oxygen count or pc for partial charge.
  3. Write a simple condition: start with a comparison such as sc.nO < 10 or a range such as sc.nat 100:200.
  4. Check the result in context: a filter helps you find candidates, but interpretation still depends on the structure and the question being investigated.

Thinking in these terms turns a vague task—“find the side chains I should inspect”—into a repeatable query. You can begin with a broad attribute, then adjust the threshold or range to suit your model and workflow. For the full list of side-chain attributes and their documented examples, see the SAMSON side-chain NSL reference.

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

Comments are closed.