If youโre working with large biomolecular systems in SAMSON, it can become overwhelming to manage and analyze specific chains. Whether you’re editing, visualizing, or preparing systems for simulations, refining your selection to just the relevant molecular chains can save significant time and reduce errors.
This post explains how to make your workflow more efficient by using the Node Specification Language (NSL) in SAMSON, focusing on attributes specific to molecular chains. In particular, weโll explore how to filter chains based on chainID, numberOfResidues, numberOfSegments, and numberOfStructuralGroups.
Why Filter Chains?
Imagine you’re analyzing a multi-chain protein complex, or a protein-ligand-lipid system. You might need to hide, highlight, or isolate chains with specific structural properties. Instead of manually selecting chains (which becomes time-consuming as system size increases), NSL lets you select chains by logical conditions.
Letโs look into the attributes specific to chains and how you can use them efficiently in your queries:
๐น chainID (c.id)
c.id 1โ selects chains with ID exactly 1c.id 2:4,6โ selects chains with IDs 2, 3, 4, and 6
This is particularly handy when you’re interested in a known set of chain IDs after importing a structure from a PDB file.
๐น numberOfResidues (c.nr)
c.nr > 130โ selects chains with more than 130 residuesc.nr 100:130โ selects chains with 100 to 130 residues
Use this when analyzing domain size or preparing systems only above or below certain thresholds in size.
๐น numberOfSegments (c.ns)
c.ns <= 3โ selects simpler chains with low segmentationc.ns 1:3โ good for filtering less fragmented models, such as single-segment proteins or peptides
This is particularly helpful when troubleshooting imported files with molecular discontinuities.
๐น numberOfStructuralGroups (c.nsg)
c.nsg > 10โ selects chains rich in structural groupsc.nsg 10:13โ use it to narrow down chains based on internal complexity
Using this filter is useful when you’re performing structural analysis of specific chain topologies.
Combining Filters
Filters can be combined using Boolean operators in NSL to build more sophisticated queries like:
|
1 |
c.nr > 120 and c.nsg < 15 |
This selects chains that are longer (many residues) but less structurally diverse.
Practical Tip
Once a filter is applied, you can hide or show selected chains, assign materials, or analyze them independently. This streamlines workflows for tasks like binding pocket identification, structure simplification, coarse-graining, or molecular dynamics setup.
Explore more chain attributes and advanced queries in the full documentation:
https://documentation.samson-connect.net/users/latest/nsl/chain/
SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.
