For molecular modelers working with complex systems in SAMSON, filtering and organizing data efficiently is often a critical challenge. This is where the note attribute space in the Node Specification Language (NSL) can make a significant difference to your workflows. By leveraging these attributes, you can greatly improve your ability to control and filter note nodes in your models.
What Are Note Attributes?
Note attributes belong to a specific space named note (short name: nt), designed particularly for note nodes. These attributes allow users to query, filter, and manipulate note nodes based on their properties. Understanding these attributes—and how they’re inherited—can streamline your modeling process.
Commonly Used Note Attributes
The table below outlines the most commonly used attributes in the note space, along with their short names, possible values, and examples:
| Attribute name | Short name | Possible values | Examples |
|---|---|---|---|
| hidden | h |
true, false |
nt.hnot nt.h |
| name | n |
strings in quotes | nt.n "A"nt.n "L*" |
| selected | true, false |
nt.selectednot nt.selected |
|
| selectionFlag | sf |
true, false |
nt.sf falsent.sf |
| visibilityFlag | vf |
true, false |
nt.vf falsent.vf |
| visible | v |
true, false |
nt.vnot nt.v |
How These Attributes Can Save Time
Let’s consider a common scenario: filtering out invisible or hidden nodes when analyzing molecular models. With the hidden (h) and visible (v) attributes, you can quickly identify and manipulate nodes that match your visibility criteria. Examples include:
nt.h: Selects all hidden note nodes.not nt.h: Selects all note nodes that are not hidden.
Similarly, the name attribute (n) allows searches for specific note nodes with targeted naming conventions. This can be particularly useful when dealing with large datasets:
nt.n "A": Selects note nodes with the name “A”.nt.n "L*": Selects note nodes with names starting with “L”.
Understanding Attribute Inheritance
Note attributes inherit basic functionality from the general node attribute space. This means that even though attributes like hidden and visible are part of the general node attributes, they’ve been customized specifically for note nodes in the note space. An exception to note is the selected attribute, which inherits from node.selected but does not include its short name (s).
Why It Matters
By mastering note attributes in NSL, molecular modelers can execute complex queries far more efficiently, gain greater control over node visibility, and organize data with precision. Using tailored expressions like nt.sf false, you can quickly find notes without selection flags, speeding up selection analyses or debugging sessions.
To explore more about these attributes within the Node Specification Language, visit the complete documentation page here.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON from here.
