Understanding Chain Attributes in SAMSON’s Node Specification Language

Molecular modeling can be complex, and when you’re dealing with sophisticated platforms like SAMSON, understanding how to effectively interact with various features is essential. Today, we’ll dive into Chain Attributes in SAMSON’s Node Specification Language (NSL)—a topic that can clarify how to select and filter molecular structures efficiently. 

What Are Chain Attributes?

In SAMSON, chain attributes help modelers focus on specific chain nodes in their molecular structures. This means you can narrow down your molecular design workflow to chains that meet your criteria, such as specific chain IDs, number of residues, or their visibility status, among others.

The chain attribute space (short name: c) interacts solely with chain nodes, allowing for precise operations. For example, attributes like chainID, numberOfResidues, and numberOfAtoms can greatly enhance how you query your molecular models.

Common Attributes and How to Use Them

The table below summarizes a few of the most commonly used chain attributes:

Attribute Short Name Description Examples
chainID id Matches chains with specific IDs c.id 1
numberOfResidues nr Matches chains based on residue count c.nr > 100
visible v Matches chains based on their visibility c.v

Getting Started in Practice

Let’s unpack an example to highlight how chain attributes can be applied:

  • Using chainID: If you want to select the chain ID 1, use: c.id 1. To match chains with IDs between 2 and 4, or equal to 6, use: c.id 2:4, 6.
  • Filtering by Number of Residues: To find chains with more than 100 residues, use: c.nr > 100. If you’re searching for chains with a residue count between 100 and 130, use: c.nr 100:130.
  • Visibility: Need to filter visible chains? Use c.v for visible chains and not c.v for hidden ones.

Advanced Uses of NSL

One of the most powerful aspects of NSL in SAMSON is its ability to combine multiple conditions. For instance, you could filter for chains that meet several criteria simultaneously, like having a specific chain ID and a number of residues within a certain range. This capability reduces time and enhances precision in molecular modeling workflows.

For more technical details and examples of how to use chain attributes in SAMSON’s NSL, visit the official documentation page.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at samson-connect.net.

Comments are closed.