Molecular modelers frequently face challenges when analyzing and managing large and complex structural models. Whether you’re working with biomolecules, nanostructures, or other molecular systems, effective selection and filtering of structural components is essential for accurate results. SAMSON’s Node Specification Language (NSL) provides a powerful solution, and in this post, we’ll focus on the Structural Model Attributes within the structuralModel attribute space.
Why Structural Model Attributes Matter
The structuralModel attribute space in SAMSON’s NSL is tailored to streamline the interaction with structural model nodes. By leveraging these attributes, you can quickly extract meaningful insights, define targeted selections, and apply unique constraints to your analysis workflows. These attributes simplify tasks like filtering molecules with specific properties, segmenting by structural groups, or tuning visibility options—all without manual overhead.
Overview of Attributes
The structuralModel attribute space (short name: sm) includes both inherited attributes and attributes specific to structural models. Here’s a quick breakdown:
Key Inherited Attributes
- hasMaterial (
sm.hm): Matches structural models with associated materials (e.g.,sm.hm true). - visible (
sm.v): Matches objects currently visible (sm.v) or not visible (not sm.v). - name (
sm.n): Targets structural models with specific names, useful for targeting labeled nodes, likesm.n "A"or via wildcards such assm.n "L*".
Structural Model-Specific Attributes
- formalCharge (
sm.fc): Matches structural models by formal charge. For instance,sm.fc > 1targets models where the formal charge exceeds 1. - numberOfAtoms (
sm.nat): Filters structural models by atom count—for example,sm.nat 100:200for models between 100 to 200 atoms. - numberOfChains (
sm.nc): Helps isolate models based on chain count, such assm.nc < 3. - numberOfSegments (
sm.ns): Useful for segment analysis, likesm.ns 1:3, to find structures with one to three segments.
Additionally, attributes such as numberOfCarbons, numberOfHydrogens, numberOfMolecules, partialCharge, and others round out the set for addressing diverse tasks in molecular modeling.
Working with Examples
Here’s how you can apply these attributes in real-world scenarios:
- Identifying specific molecular models: Use
sm.n "Protein A"to target a model by name. - Filtering by visibility: Run
sm.vto isolate all visible models ornot sm.vfor hidden ones. - Focusing on atom counts: Query
sm.nat > 500to find structures with more than 500 atoms. - Segmenting by properties: Look for models with charges in a specific range using
sm.fc 2:6.
How This Helps You
By mastering these attributes, you can save substantial time while navigating and analyzing molecular databases. Whether you’re visualizing complex systems or running computational studies, these targeted commands give you precision and control, reducing the trial and error often associated with such tasks.
For a more comprehensive description of all attributes and their applications, visit the official documentation page: Structural Model Attributes in SAMSON.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at https://www.samson-connect.net.
