For molecular modelers, managing and organizing molecular data efficiently is critical. In SAMSON, the Label Attribute space within the Node Specification Language (NSL) offers an effective way to define, filter, and control label nodes. Whether you’re refining molecular visualizations or analyzing structural details, mastering these attributes can save time and enhance the accuracy of your work.
What are Label Attributes?
The Label Attribute space (label, short name: la) focuses solely on label nodes in a molecular model. Labels help modelers annotate and keep track of specific atomic structures, molecular groups, or other important features. By using label attributes in queries and operations, you can manage labels dynamically and precisely within SAMSON’s environment.
Overview of Key Label Attributes
The table below summarizes the most commonly used label attributes, their short names, possible values, and example expressions for quick reference:
| Attribute name | Short name | Possible values | Examples |
|---|---|---|---|
| hidden | h |
true, false |
la.hnot la.h |
| name | n |
strings in quotes | la.n "A"la.n "L*" |
| selected | true, false |
la.selectednot la.selected |
|
| selectionFlag | sf |
true, false |
la.sf falsela.sf |
| visibilityFlag | vf |
true, false |
la.vf falsela.vf |
| visible | v |
true, false |
la.vnot la.v |
Applications and Use Cases
Filtering and Queries: Use attributes like hidden or visible to apply nuanced filters to your molecular data. For instance, not la.v retrieves all label nodes currently marked as not visible.
Naming and Identification: The name (n) attribute allows for flexible naming conventions and pattern matching. For example, to identify all labels beginning with the letter “L,” use: la.n "L*".
Enhancing Selection Control: The selectionFlag (sf) attribute enables advanced control of label selection states. Assign la.sf false to deselect targeted labels dynamically.
Conclusion
Label attributes within SAMSON’s Node Specification Language provide a structured way to control label nodes, offering invaluable assistance for labeling, filtering, and querying. Whether used for molecular annotation or data refinement, they allow streamlined workflows and greater precision for modeling tasks. Explore the official documentation for further details on label attributes and their implementation.
SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.
