Understanding Node Group Attributes in SAMSON.

Molecular modeling involves a plethora of data points and attributes, and managing them effectively is a key challenge for researchers and scientists. Fortunately, platforms like SAMSON provide tools to handle these complexities. One such concept is Node Group Attributes, which help users manage groups of nodes efficiently within the SAMSON platform.

Node Group Attributes belong to the nodeGroup attribute space (short name: ng) and apply exclusively to node group nodes. These attributes enable users to define and manipulate properties specific to node groups, offering both flexibility and precision in molecular modeling tasks.

Breaking Down the Key Node Group Attributes

Let’s look closer at three essential node group attributes you’ll encounter:

1. name

The name attribute helps identify node groups by their names. It is inherited from the general node attribute space but allows flexibility with string-based naming conventions. This can be particularly useful when organizing hierarchies of nodes or groups in your molecular model.

Examples:
ng.n "A" – Refers to a group named “A”.
ng.n "L*" – Matches groups with names starting with “L”.

2. selected

This attribute indicates whether a node group is selected or not. It takes boolean values (true or false) to explicitly check for selection status. Use this when filtering or highlighting specific node groups within your molecular model.

Examples:
ng.selected – Checks if the node group is selected.
not ng.selected – Checks for node groups that are not selected.

Note that unlike the general node.selected attribute, the selected attribute here does not have a short name (e.g., ‘s’).

3. selectionFlag

The selectionFlag, or short name sf, is another boolean attribute. It allows fine-grained control when managing selection states and offers additional utility for programmatically managing node groups. Like selected, the selectionFlag attribute is inherited from its counterpart in the general node attributes.

Examples:
ng.sf false – Checks if the selectionFlag is set to false.
ng.sf – Checks if the selectionFlag is set to true.

Getting Started

The three attributes – name, selected, and selectionFlag – provide powerful ways to work with node groups. Together, they help to streamline processes like filtering, organizing, and retrieving specific node groups from your molecular design projects. Making use of these attributes effectively can simplify workflows and enhance model clarity.

For more information and practical examples, explore the full documentation for Node Group Attributes.

Please note: SAMSON and all SAMSON Extensions are free for non-commercial use. Download SAMSON at https://www.samson-connect.net.

Comments are closed.