Molecular modeling involves detailed analysis of structural models and the various properties tied to them. For researchers and modelers, a robust and versatile tool like SAMSON offers solutions to manage and query these properties effectively. One such area of functionality lies in its Structural Model Attributes, a component of the Node Specification Language (NSL). This blog post dives deep into understanding structuralModel attributes to enable seamless molecular analysis.
Why Structural Model Attributes Matter
Molecular modelers regularly work with structural data, be it regarding the number of atoms, molecular composition, charges, or structural visibility. The pain comes when such data’s complexity makes querying and filtering cumbersome, especially on vast datasets.
Fortunately, SAMSON’s structuralModel attribute space lets you capture these properties with precision, offering short and intuitive attribute names alongside detailed options for query conditions. Whether you need to find models with specific formal charges, molecule counts, or selection flags, the structuralModel attributes can serve as your go-to solution.
Key Attributes Simplified
Here is a selection of essential structural model attributes and how they can simplify your workflow in SAMSON:
-
Formal Charge (
sm.fc): This matches structural models with specific total formal charge.
Example:sm.fc 6:8matches models with a formal charge between 6 and 8. -
Number of Atoms (
sm.nat): Use this for filtering models by their atom count.
Example:sm.nat 100:200fetches models with atomic counts ranging from 100 to 200. -
Number of Carbons (
sm.nC): Focus on models with specific numbers of carbon atoms by using this attribute.
Example:sm.nC 10:20targets carbons ranging from 10 to 20. -
Visibility Flag (
sm.vf): This is handy for understanding if the structural model is visible or not.
Example:not sm.vfreturns models that are currently hidden.
How It Works
Each attribute has a specific function, short name, and supported operations. For instance, numerical attributes like numberOfAtoms allow range-based filtering such as 100:200, while boolean attributes such as hasMaterial (short name: sm.hm) provide true/false conditions. For text-based properties like the name attribute (sm.n), pattern searching becomes highly efficient.
Practical Example
Suppose you’re interested in structural models that:
- Have between 100 and 200 atoms,
- Contain at least 10 carbon atoms but no more than 20,
- And are fully visible.
Your NSL query might look like this:
|
1 |
sm.nat 100:200 and sm.nC 10:20 and sm.v |
With just this one expression, you’ve pinpointed the models of interest, saving time and effort while ensuring accuracy.
Benefits in Daily Modeling
Whether it’s about refining datasets or evaluating structural nuances, adopting structuralModel queries aligns your workflow with clarity and precision. Everything from understanding molecule composition to pre-selecting invisible models becomes a breeze!
To get started with these attributes in SAMSON or dig deeper into its documentation, visit the official Structural Model Attributes page.
SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at SAMSON Connect.
