A quicker way to narrow down side chains by composition and charge

When inspecting a large molecular structure, finding the side chains relevant to a question can take longer than answering it. You may be looking for groups with a particular elemental composition, a charge range, or simply a manageable size to inspect. In SAMSON, the Node Specification Language (NSL) lets you describe such criteria using side-chain attributes, so you can focus your search instead of scanning the structure manually.

This guide shows how to use those attributes for practical side-chain triage. The examples come from the sideChain attribute space, whose short name is sc. That space matches side-chain nodes, and its attributes include several inherited from the broader structuralGroup and node spaces.

Start with the question you want to answer

Before writing a query, translate the inspection task into an attribute:

  • How many atoms are in the side chain? Use numberOfAtoms, abbreviated nat.
  • How many atoms of a particular element are present? Use the element-count attributes: nC for carbon, nH for hydrogen, nN for nitrogen, nO for oxygen, and nS for sulfur.
  • What is its formal or partial charge? Use fc for formal charge or pc for partial charge.
  • Is it visible or selected? Use node attributes such as v (visible) or selected.

Choosing the attribute that matches the question helps avoid a common source of confusion: atom counts, formal charge, and partial charge describe different properties. The reference lists formal charge as an integer and partial charge as a floating-point value.

Use ranges to make a search more useful

A single cutoff can be a good first pass. For example, sc.nC < 10 describes side chains with fewer than 10 carbons, while sc.nat < 1000 sets a broad upper limit on atom count. If you already have a range in mind, the documented range form is more direct: sc.nC 10:20 or sc.nat 100:200.

The same pattern applies to other element counts. For instance, sc.nO < 10 expresses an oxygen-count cutoff, and sc.nN 10:20 describes a nitrogen-count range. These are useful ways to turn a broad visual search into a specific attribute-based question.

Keep charge types separate

Charge is often the most tempting attribute to use—and the easiest to misinterpret. For integer formal-charge criteria, the reference gives examples such as sc.fc > 1 and sc.fc 6:8. For partial charge, it gives floating-point examples such as sc.pc > 1.5 and sc.pc 1.5:2.0.

These examples are not interchangeable. If your analysis concerns partial charges, a formal-charge query is not a substitute, and vice versa. Check which quantity your modeling workflow provides before using charge to narrow the set of side chains.

Use names and state attributes for follow-up checks

Side chains also inherit a name attribute. The documented examples include sc.n "A" and sc.n "L*", showing quoted string values and a wildcard-style example. For visibility and selection checks, the page lists expressions such as sc.v, not sc.v, sc.h, and sc.selected.

One detail worth remembering: selected has no short name in the side-chain attribute space. Use sc.selected rather than assuming that the short name s applies to this attribute; s is the short name for the side-chain attribute space itself.

A practical narrowing sequence

For a reproducible search, begin with the property that best captures the scientific question—perhaps an element count or charge type. Then consider whether a range is more appropriate than a single threshold. Finally, use name, visibility, or selection attributes when those are relevant to the inspection. Keep each criterion explicit, and verify that the attribute refers to the quantity you intend to examine.

The side-chain reference provides the complete attribute list, short names, possible value types, and additional examples. Learn more in the SAMSON side-chain attributes documentation.

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

Comments are closed.