From a crowded structure to a useful contact set

A molecular structure can contain thousands of atoms, but a modeling question is often much narrower: which receptor residues sit near a ligand, which atoms form a likely clash, or which waters might be worth inspecting? Building each selection manually is slow, and a selection that is too broad can bury the contacts that matter.

SAMSON’s Node Specification Language (NSL) lets you describe these selections by combining what to select with where it is relative to another part of the structure. The examples below show a practical way to turn a broad contact question into a focused one.

Start with the question, not the syntax

Suppose you want receptor residues near a ligand, but you are investigating a mutagenesis focus and want to leave glycine and alanine out of the result. The expression is:

((n.t r and not r.t GLY,ALA) in n.c rec) w 6A of n.c lig

Read it from the inside out: identify residues (n.t r), exclude the specified residue types, restrict the selection to the receptor, then keep the result within 6 Å of the ligand. This order is useful because it makes the selection’s intent easier to check: first define the eligible objects, then apply the spatial criterion.

Choose the level that matches the decision

Contact analysis can be done at different structural levels. If the question is about which residues line a pocket, select residues. If you need to inspect exact contacts or prepare an atom-level analysis, select atoms instead.

  • Residues near a ligand: (n.t r in n.c rec) w 5A of n.c lig
  • Atoms in those nearby residues: n.t a in (n.t r w 5A of n.c lig)
  • Ligand heavy atoms near the receptor: (n.t a in n.c lig) and not a.s H

These are not interchangeable selections. A residue-level result helps identify candidate positions; an atom-level result is more specific about which parts of the structure are close. Keeping that distinction clear helps prevent a common source of confusion: interpreting a list of nearby residues as though every atom in each residue directly contacts the ligand.

Use distance cutoffs to focus the inspection

A distance cutoff is a practical filter, not a verdict about binding or chemistry. Choose it to fit the question, and treat the result as a set to inspect. For example, a 2 Å selection can help find very tight contacts, while a 5 Å selection gives a broader view of the binding-site neighborhood.

For a clash-oriented check, the examples distinguish heavy atoms on both sides:

((n.t a in n.c lig) and not a.s H) w 2.2A of ((n.t a in n.c rec) and not a.s H)

This avoids including hydrogens in the selected atom sets. It identifies ligand heavy atoms close to receptor heavy atoms using the stated cutoff; it does not, by itself, determine whether a contact is physically unfavorable. Use it as a way to find locations that deserve closer examination.

Ask for the absence of a contact, too

Sometimes the useful result is what lies outside a neighborhood. The examples use b with a distance to describe selections beyond that cutoff. For instance, ligand atoms more than 6 Å from receptor atoms can be selected with:

(n.t a in n.c lig) b 6A of n.c rec

This can help separate ligand regions that are close to the receptor from regions that are not. You can also combine near and far criteria to define a spatial band—for example, residues within 12 Å of a ligand but beyond 7 Å:

(n.t r w 12A of n.c lig) and (n.t r b 7A of n.c lig)

That kind of selection is useful when you want to inspect the pocket rim rather than the immediate contact shell.

Add chemical or structural context

Once the basic neighborhood is clear, add a filter for the feature you care about. To find polar oxygen or nitrogen atoms in the receptor within 3 Å of a ligand:

(a.s O,N in n.c rec) w 3A of n.c lig

To find aromatic residues near the ligand within 5 Å:

(r.t PHE,TYR,TRP,HIS) and (n.t r w 5A of n.c lig)

For water oxygens bridging receptor and ligand, the example requires proximity to both:

(a.s O in n.c wat) and (n.t a w 3A of n.c rec) and (n.t a w 3A of n.c lig)

The general workflow is simple: define the entity type, constrain its structural context, apply a distance, then add chemical filters only when they answer a specific question. This keeps selections readable and makes it easier to adjust one part—such as the cutoff or atom type—without rebuilding the whole expression.

For more NSL selection examples, see the original documentation page.

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

Comments are closed.