Understanding Node Group Attributes in SAMSON

For molecular modelers, managing and specifying node groups efficiently can save significant time when handling complex molecular structures. Within SAMSON, the integrative molecular design platform, the Node Specification Language (NSL) provides a structured approach for defining and querying node group attributes. In this blog post, we'll explore node group attributes to help you harness their full potential in your molecular modeling tasks.

What Are Node Group Attributes?

Node group attributes in SAMSON are defined in the nodeGroup attribute space, abbreviated as ng. This space exclusively applies to node group nodes, allowing you to specify and query characteristics of these nodes with precision. Importantly, these node group attributes inherit properties from the broader node attribute space, tying node group capabilities seamlessly into the overall NSL framework.

Core Attributes

Here’s an overview of the main attributes available for node groups:

Attribute Name Short Name Possible Values Examples
name n Strings in quotes ng.n "A"
ng.n "L*"
selected true, false ng.selected
not ng.selected
selectionFlag sf true, false ng.sf false
ng.sf

Details of Each Attribute

  • Name: This attribute represents the name of the node group. It supports string values enclosed in quotes. For example, the expression ng.n "A" matches a node group named "A", while ng.n "L*" matches all node groups whose names start with the letter “L”.
  • Selected: This boolean attribute indicates whether a node group is selected. Use ng.selected to query selected node groups or not ng.selected for unselected ones.
  • Selection Flag: Also a boolean, this attribute is similar to selected and specifies whether a selection flag has been applied. For example, ng.sf false identifies node groups without a selection flag.

Why It Matters

Fine-grained control over node groups allows molecular modelers to design, analyze, and manipulate complex models with ease. For instance, identifying specific subsets of a molecular system based on selection criteria can streamline downstream operations, such as simulations or property calculations.

The intuitive structure of NSL and its easy-to-understand attribute system ensures you can quickly adopt these tools to enhance your workflows. Whether you’re naming key subsystems, filtering components based on criteria, or organizing your model hierarchy, these attributes will prove indispensable.

Conclusion

We’ve only scratched the surface of what you can achieve with node group attributes in SAMSON. For more details on this topic and practical examples, visit the official documentation page.

SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at www.samson-connect.net.

Comments are closed.