A selection that looks right at first glance can quietly include more than you intended. In a molecular model, filtering for a residue name such as LYS may also match its backbone and side-chain nodes, because their names contain “LYS.” That can turn a five-residue selection into fifteen selected nodes—and make later inspection, visualization, or editing harder to interpret.
A dependable approach is to distinguish finding by name from selecting by molecular property. SAMSON’s Document view lets you use either method, and the Node Specification Language (NSL) makes it possible to express a more specific target.
Start in the Document view
Open the Document view if it is not already visible by choosing Interface > Document view. Its tree shows the hierarchy of the active document, so you can unfold levels with + and select a node directly. This is useful when you want to inspect what a selection contains before acting on it.
The Filter nodes… field narrows the displayed nodes, but typing in it does not immediately select them. Press Enter to select the nodes that match. This small distinction matters: filtering is a way to locate candidates; pressing Enter applies the selection.

Use NSL for a precise match
If you type LYS into the filter, SAMSON matches node names containing that text. A residue, its backbone, and its side chain may all match. In the documented example, five lysine residues lead to fifteen selected nodes for this reason.
To target lysine residues by residue type instead, enter residue.type LYS and press Enter. The shorter equivalent is r.t LYS. This expresses what you mean more directly: select nodes whose residue type is LYS, rather than every node whose name happens to include those letters.

A practical habit is to check the selection summary after applying a filter. If the count seems unexpectedly high, pause before running an operation. The summary, and the Inspector when open, can help you spot whether the selection contains the intended node level. A precise expression plus a quick count check is often faster than discovering an overly broad selection after an edit.
Make a useful filter reusable
If you repeatedly need the same selection, save its NSL expression as a custom selection filter. Open the Find window using Select > Find or Ctrl/Cmd + F, enter the expression, click Save, and give the filter a descriptive name. For example, r.t LYS or r.t HIS selects lysine or histidine residues; a name such as “LYS and HIS residues” makes the intent easy to recognize later.
Saved filters appear in the selection-filter list. You can remove a custom filter by making it active and right-clicking the list. Choose Reset selection filters only if you want to remove all custom filters.

Keep several regions within reach
For selections you switch between during a session, Quick Groups offer a different kind of shortcut. Select the nodes, then assign them to a group with Shift plus a number, such as Shift + 2. Press the corresponding number to switch to that selection; double-press it to zoom to the group’s selection. Up to ten Quick Groups are available, indexed 1–10.
For instance, you could assign a ligand, receptor, and water molecules to separate groups, then switch among them while comparing or visualizing different parts of the system. Quick Groups are temporary, so they suit selections you want to revisit during the current workflow. For named groups saved in the document, use the selection’s context menu and choose Select > Group.
The key is to match the selection method to the task: use the Document view to explore hierarchy, NSL to define exact criteria, saved filters to reuse criteria, and Quick Groups to move quickly between working selections. To learn more about selection commands, editors, filters, groups, and NSL, see the SAMSON selection documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
