Molecular modelers often face the challenge of efficiently organizing and analyzing complex molecular systems. SAMSON’s Node Specification Language (NSL) offers a powerful way to address this through node group attributes. If you’ve ever struggled to filter certain nodes in your models or need a structured way to manage node level details, this post will help you make the most of these attributes.
What Are Node Group Attributes?
Node group attributes are part of the nodeGroup attribute space within SAMSON. This namespace (short name: ng) is designed to work exclusively with node group nodes, simplifying the categorization and control of nodes in molecular systems. These attributes include inherited features from the broader node attribute space, with some specialized customizations for node groups.
Key Attributes Explained
Let’s break down the most commonly used attributes available in the nodeGroup space to deepen your understanding:
Name Attribute
The name attribute allows you to assign or filter node groups based on specific names. Its short name is n. This is incredibly useful for categorizing node groups with meaningful identifiers.
- Possible values: Strings enclosed in quotes.
- Examples:
ng.n "A"orng.n "L*". The latter handles groups starting with “L”.
Selected Attribute
Need to know whether a particular node group is selected? The selected attribute simplifies this by returning true or false. Note that it is inherited from node.selected, but lacks a short name.
- Possible values:
true,false. - Examples:
ng.selectedornot ng.selected.
SelectionFlag Attribute
Looking for a quick toggle to check or modify node group selection flags? The selectionFlag attribute (short name: sf) is what you need. This feature is also inherited from node.selectionFlag.
- Possible values:
true,false. - Examples:
ng.sf false, or to check if the flag is set:ng.sf.
Why Use Node Group Attributes?
By employing these attributes, molecular modelers can organize their workflows more efficiently. For instance, with the name attribute, you can quickly filter or search for specific node groups, such as ligand nodes or specific regions of interest. Meanwhile, selected and selectionFlag attributes help streamline batch processing, enabling you to modify or process selected groups with ease.
Whether you’re managing complex biological systems or running intricate simulations, understanding and utilizing these node group attributes in SAMSON is crucial for simplifying your tasks and focusing on the actual scientific challenges.
For a more detailed explanation, additional examples, and the full documentation, visit the official SAMSON page on Node Group Attributes.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at https://www.samson-connect.net.
