Molecular modelers using SAMSON often face the challenge of managing complex molecular structures with precision. The Node Specification Language (NSL) in SAMSON offers an efficient way to work with node attributes, including those specific to chains. This blog post provides a guide to chain attributes in NSL, aimed at easing your molecular modeling workflows and improving your productivity.
What are Chain Attributes?
Chain attributes in SAMSON’s NSL relate specifically to chain nodes and are a part of the c attribute space. They allow users to define selection criteria for chains in a molecular structure, utilizing a combination of inherited attributes and chain-specific attributes. With clear attribute names, short names, possible values, and examples, modelers can streamline their workflows and focus on research questions.
Why Are Chain Attributes Useful?
Managing large molecular systems often involves selecting and manipulating chains based on various criteria such as visibility, number of atoms, or structural group composition. With chain attributes like chainID, numberOfSegments, and numberOfResidues, SAMSON empowers you to perform highly targeted operations.
Key Inherited Attributes for Chains
Chain attributes in NSL inherit properties from both node and structuralGroup attribute spaces, offering flexibility. Here are some highlights:
visible (v): Targets visible chains with values likec.vor negates them withnot c.v.numberOfAtoms (nat): Matches chains with specific atom counts. For instance,c.nat < 1000selects chains with fewer than 1000 atoms.formalCharge (fc): Matches chains with specific formal charges, e.g.,c.fc > 1.
Chain-Specific Attributes
In addition to inherited attributes, the chain attribute space includes attributes specific to chains. Here are some standout tools for targeted operations:
1. chainID (id)
This attribute targets chains based on their unique identifiers. Examples include:
c.id 1: Matches chains with a chain ID of 1.c.id 2:4, 6: Matches chains with chain IDs between 2 and 4, or at 6.
2. numberOfResidues (nr)
Targets chains with a specific number of residues. Example expressions include:
c.nr > 130: Matches chains with more than 130 residues.c.nr 100:130: Matches chains with residue counts between 100 and 130.
3. numberOfSegments (ns)
Enables selection based on a chain’s number of segments. Examples include:
c.ns < 3: Matches chains with fewer than three segments.c.ns 1:3: Matches chains with one to three segments.
Useful Example Workflow
Let’s say you want to work only with chains that meet the following criteria:
- The chain is visible.
- It has exactly two segments.
- Its chain ID is within range 2 to 5.
Using chain attributes in NSL, you can combine criteria as:
|
1 |
c.v and c.ns 2 and c.id 2:5 |
With a small learning curve, complex operations like these become simple, especially when working with large molecular complexes.
Conclusion
Understanding and leveraging chain attributes in SAMSON’s NSL opens up opportunities for intricate molecular modeling. Whether it’s selecting chains based on residues, controlling visibility, or analyzing charge distribution, these attributes provide precision and efficiency.
Ready to dive deeper? Visit the official documentation page on chain attributes to explore more examples and start using this powerful feature.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.
