From Ligand to Pocket: Build a Focused Molecular Selection

When examining a protein–ligand complex, the first challenge is often deciding what to look at. Selecting every nearby atom by hand is slow, and a selection that is too broad can mix the binding site with waters, distant residues, or unrelated components. A better approach is to build the selection in layers: define the molecular group, set a distance, then add the chemical or structural filter that answers your question.

Start with a clear distance question

In SAMSON’s Node Specification Language (NSL), w expresses a within-distance relationship. For example, this selects receptor residues within 6 Å of the ligand, while excluding glycine and alanine:

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

The expression is easier to read if you break it down: n.t r specifies residues; in n.c rec restricts them to the receptor; not r.t GLY,ALA removes two residue types; and the final distance clause keeps residues within 6 Å of the ligand. This is useful when you want a manageable set of candidate residues for inspection or a focused mutagenesis analysis.

Choose the level you actually need

A common source of confusion is selecting atoms when the question is about residues, or selecting entire residues when only a few atoms matter. NSL lets you express the level directly. To select atoms belonging to residues within 5 Å of a ligand, use:

n.t a in (n.t r w 5A of n.c lig)

This is a two-step idea: first identify nearby residues, then include their atoms. If instead you want only ligand-adjacent backbone nitrogen atoms, the selection can be narrower:

(a.s N in n.t bb) w 3A of n.c lig

That distinction can save time when preparing a contact-focused view: a residue-level shell is useful for understanding the pocket’s shape, while an atom-level selection helps isolate particular interactions.

Add chemistry after geometry

Distance alone does not tell you whether a contact is chemically interesting. Once you have a spatial region, add an atom or residue property. For example, select polar oxygen and nitrogen atoms in the receptor that lie within 3 Å of the ligand:

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

Or focus on aromatic residues within 5 Å, which can help you inspect possible aromatic packing:

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

These are candidate selections, not conclusions about the interaction. The distance and atom or residue type help narrow the inspection; the molecular context still matters when interpreting what you see.

Keep waters and clashes as separate questions

Waters are often worth checking independently rather than letting them blend into a general pocket selection. To select waters within 4 Å of any ligand, use n.c wat w 4A of n.c lig. For a simple steric-clash screen, the documentation gives a selection of ligand and receptor heavy atoms within 2.2 Å:

((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)

That expression identifies close heavy-atom pairs by selection; it is a way to focus a visual check, not a substitute for evaluating the structure and its preparation.

Make selections readable and reusable

For complicated queries, build from the inside out. Check that each part identifies the intended component—such as receptor, ligand, water, chain, residue, or atom—before combining it with a distance or exclusion. Parentheses make the intended grouping explicit, especially when mixing and, or, and not. If a selection surprises you, temporarily simplify it: test the component filter, then the distance clause, then the additional chemistry condition.

This layered habit turns a long query into a compact description of your analysis: what molecular group you mean, where it is, and which properties matter. The documentation page includes many more worked selection patterns for interfaces, metal contacts, alternate locations, and other tasks. Explore the NSL examples.

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

Comments are closed.