Molecular modelers frequently encounter the challenge of selecting, categorizing, or filtering conformation nodes based on specific parameters. This is where SAMSON’s Node Specification Language (NSL) comes into play, offering robust tools to simplify such tasks. In this post, we will explore conformation attributes—a feature designed to help modelers work more efficiently with conformation nodes.
What Are Conformation Attributes?
The conformation attribute space in SAMSON’s Node Specification Language (NSL) is designed specifically to match conformation nodes. This means that when working with structures that include varying molecular conformations, you can use these attributes to filter or specify conformations based on their properties.
The conformation attribute space has a short name: co. This prefix helps you quickly identify that you are referring to a conformation-specific attribute while writing expressions in NSL.
Inherited vs. Specific Attributes
Attributes in the conformation space are divided into two main categories:
- Inherited Attributes: These are attributes that come from the more general node attribute space. Examples include:
- Name (
name): Filter nodes based on their names using string matches. For example,co.n "A"matches nodes named “A.” - Selection Attributes: Use
selectedorselectionFlag (sf)to identify whether nodes are selected. For example,co.selectedfilters only selected nodes. - Specific Attributes: These attributes are unique to the
conformationspace, directly offering insights into molecular conformations. For instance: - Number of Atoms (
numberOfAtoms): Useco.natto filter conformations based on their atom count. For example,co.nat > 100targets conformations with more than 100 atoms.
Practical Usage: Filtering Conformations
The ability to use these attributes effectively can save time when navigating and analyzing molecular structures. Here’s how:
- Finding specific conformations: If you’re working on a protein model and want to isolate conformations with a specific name, use commands such as
co.n "L*"to match conformations with names starting with “L.” - Analyzing datasets by atom count: For studies focusing on conformations with more than a certain number of atoms, expressions like
co.nat > 100ensure you only handle relevant data. - Selection refinement: Combine attributes—for instance,
co.selected and co.sf—to filter nodes that are both selected and flagged.
Step-by-Step Example
If you want to filter conformations with atom counts between 100 and 200:
co.nat 100:200
Short and efficient, this expression can quickly pinpoint specific conformations without requiring manual inspection.
Conclusion
The conformation attributes in SAMSON’s Node Specification Language provide powerful tools to streamline molecular modeling workflows. By understanding the capabilities of inherited and specific attributes, you can easily filter and specify conformation nodes to suit your particular research needs.
To dive deeper into this topic and explore more examples, visit the official documentation on conformation attributes.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON here.
