One of the key challenges in molecular modeling is efficiently identifying specific structures or groups within a complex system. Whether you are working with structural markers, charge distributions, or visibility flags, having a precise set of attributes to filter your data can significantly streamline your workflow. In this post, we’ll explore the Structural Group Attributes in SAMSON’s Node Specification Language (NSL), which allow you to query and manipulate molecular models with precision.
What are Structural Group Attributes?
Structural group attributes are designed to help molecular modelers define and work with structuralGroup nodes. They belong to the attribute space sg (short name for structuralGroup). These attributes provide properties that can be inherited from the node attribute space, as well as attributes specific to structural groups. Combined, they enable advanced searches and operations on molecular systems.
Inherited Attributes: Enhancing General Node Functionality
The attributes inherited from the node space include flags such as:
- hasMaterial (
sg.hm): Matches structural groups that have material properties. Example:sg.hm or not sg.hm. - hidden (
sg.h): Matches groups that are hidden or visible. Example:sg.h. - name (
sg.n): Allows you to filter based on structural group names. Example:sg.n "L*"matches names starting with L. - selected: Identifies if the structure is selected (but lacks a short name).
These features allow basic manipulations like finding all visible groups or selecting groups by their names or attributes.
Attributes Unique to Structural Groups
What sets structural group attributes apart are the tools they provide to analyze molecular composition. Attributes such as numberOfAtoms, numberOfCarbons, and formalCharge empower you to conduct deeper investigations into molecular systems. Let’s take a closer look at some of them:
- formalCharge (
sg.fc): Filters structural groups by their total formal charge. Example:sg.fc > 1finds groups with a charge greater than 1. - numberOfAtoms (
sg.nat): Matches groups based on atom count. Example:sg.nat 100:200matches groups with 100 to 200 atoms. - numberOfCarbons (
sg.nC): Filters groups by the count of Carbon atoms. Example:sg.nC 10:20matches groups with 10 to 20 Carbon atoms. - partialCharge (
sg.pc): Matches groups based on their total partial charge. Example:sg.pc 1.5:2.0filters groups with partial charge in the given range.
These attributes are particularly useful for molecular researchers looking to detect specific charges in ions, filter out unwanted components in purification processes, or pinpoint specific molecular structures.
How to Get Started
If you wish to work with examples provided in the SAMSON documentation, such as filtering structural groups with structuralGroup.nat > 100, or visualizing groups based on their visibilityFlag (sg.vf), SAMSON provides a robust interface supporting all these operations. Learning to use these attributes in combination with each other can also simplify your workflows and help refine molecule selection criteria in more complex models.
Conclusion
Structural group attributes provide unparalleled flexibility for querying and filtering molecular data. Whether you are visualizing specific regions, analyzing stability based on charges, or selecting components based on atomic counts, knowing how to leverage these attributes will empower your molecular modeling tasks.
To learn more, visit the detailed documentation here: Structural Group Attributes in SAMSON.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at SAMSON Connect.
