Molecular modeling can be complex, and efficiently handling data can be a significant challenge. In SAMSON, the integrative molecular design platform, the Node Specification Language (NSL) provides an elegant way to interact with data nodes. A key feature of this language is its use of file attributes. These attributes can help molecular modelers unlock powerful filtering, sorting, and querying capabilities for managing file nodes in their workflows. Let’s explore how file attributes are structured and how you can use them effectively.
What Are File Attributes?
File attributes in NSL belong to a specific file attribute space, which is identifiable by the shorthand fi. This attribute space exclusively targets file nodes in molecular projects. By using these attributes, you can query and manipulate file nodes fluidly without impacting other types of nodes in your project.
The file attribute space is integrated with the general attributes of nodes but has some tailored functionalities. Here’s a detailed view of the key file attributes:
The Core Attributes
| Attribute Name | Short Name | Possible Values | Examples |
|---|---|---|---|
| name | n |
Strings in quotes | fi.n "A"fi.n "L*" |
| selected | (none) | true, false |
fi.selectednot fi.selected |
| selectionFlag | sf |
true, false |
fi.sf falsefi.sf |
How Do These Attributes Help?
The name attribute allows users to interact with file nodes based on their names. For instance, you might use a query like fi.n "L*" to select all file nodes whose names start with the letter “L.” Whether you are organizing large molecular datasets or working with specific project files, this attribute can save both time and effort.
The selected attribute helps you quickly identify which file nodes are currently selected. For example, executing the query not fi.selected highlights all file nodes that are not selected, useful when you need to modify or review unselected files in your project.
Lastly, the selectionFlag attribute provides an alternate yet concise way to work with node selection logic. By checking or toggling this flag (for instance, fi.sf false), you can implement dynamic workflows around file node selection states.
Conclusion
Efficiently managing file nodes during complex molecular modeling tasks can streamline your workflow and minimize manual operations. With file attributes in SAMSON’s Node Specification Language, you have the tools to precisely query, select, and organize file nodes based on their characteristics.
To learn about file attributes and how to use them in detail, visit the official documentation at https://documentation.samson-connect.net/users/latest/nsl/file/.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at https://www.samson-connect.net.
