A Guide to Chain Attributes in SAMSON: Simplify Molecular Modeling

Molecular modelers often need powerful tools to navigate and manipulate complex molecular structures efficiently. Chain attributes in the Node Specification Language (NSL) of SAMSON provide a structured and compact way to manage chain nodes in molecular models. If you’re dealing with intricate molecular systems and want to classify or query chain nodes with precision, this guide is for you.

What are Chain Attributes?

Chain attributes belong to the chain attribute space (short name: c) in NSL. These attributes allow you to filter, classify, and manipulate chain nodes easily, using both inherited and unique properties. By leveraging these attributes, you can speed up your modeling process and perform highly specific searches or manipulations on your molecular structures.

Essential Inherited Chain Attributes

Chain nodes inherit several attributes from the node and structuralGroup attribute spaces. These attributes are invaluable for handling visibility, selection, and structural characteristics of chains. Let’s delve into a few examples:

  • name (n): Specify chains by their names. For example, c.n "A" matches the chain named “A”.
  • formalCharge (fc): Query chains based on atomic formal charges. For instance, c.fc > 1 returns all chains with a formal charge greater than 1.
  • numberOfAtoms (nat): Match chains by their total number of atoms. Use patterns like c.nat < 1000 or c.nat 100:200.
  • visible (v): Filter based on visibility. For example, c.v only includes visible chains, while not c.v selects hidden ones.

Chain-Specific Attributes

In addition to inherited attributes, chains have their own distinct set of attributes that further enhance specificity. Here are some important ones:

  • chainID (id): Filter chains by their IDs. Examples include c.id 2:4 for selecting chains with IDs between 2 and 4 or c.id 6 for an exact match. This is perfect for distinguishing specific chains in large data sets.
  • numberOfResidues (nr): Select chains based on residue counts. For example, c.nr > 130 finds chains containing more than 130 residues.
  • numberOfSegments (ns): Specify chains by the number of segments they contain. Use an expression like c.ns 1:3 to match chains with 1 to 3 segments.
  • numberOfStructuralGroups (nsg): Query chains based on their structural group counts. For instance, c.nsg > 12 lets you quickly find chains with a high number of structural groups.

Why Use Chain Attributes in SAMSON?

Managing molecular systems can be overwhelming without an efficient selection mechanism. Chain attributes in NSL allow you to filter, query, and manipulate molecular chains quickly, no matter the complexity of the molecular system. By combining these attributes, you can create highly targeted searches, saving time and effort.

Ready to Learn More?

For a comprehensive understanding of chain attributes and how to use them, visit the official Chain Attributes Documentation.

SAMSON and all SAMSON Extensions are free for non-commercial use. Download your copy today at SAMSON Connect.

Comments are closed.