Molecular modelers often handle complex projects with numerous files and attributes. The Node Specification Language (NSL) in SAMSON offers a systematic way to define and interact with attributes specific to file nodes through its file attribute space. This blog post will guide you through these attributes, giving you useful tips for efficient molecular modeling workflows.
What Are File Attributes?
File attributes in NSL belong to the file attribute space (short name: fi). These attributes are tailored for file nodes and are crucial for querying or specifying properties for files in your modeling projects.
Diving Into Key File Attributes
The following attributes are managed within the file attribute space:
1. name Attribute
The name attribute allows you to specify or query the name of a file. It is inherited from the node’s name but contextualized for file nodes. The short name for this attribute is n.
Example usage:
fi.n "A": Targets files with the name “A.”fi.n "L*": Targets files whose names start with “L.”
2. selected Attribute
The selected attribute indicates whether a file node is currently selected. While this attribute is inherited from the node space, it does not have a short name in the file attribute space.
Example usage:
fi.selected: Refers to files that are selected.not fi.selected: Refers to files that are not selected.
3. selectionFlag Attribute
The selectionFlag attribute determines whether the selection flag for a file is active. The short name for this attribute is sf.
Example usage:
fi.sf false: Targets files where the selection flag is not set.fi.sf: Targets files where the selection flag is set.
Streamline Your Molecular Modeling
Efficiently managing file attributes in SAMSON can significantly boost your workflow. Whether you’re working on large projects or specifying fine details, these attributes provide precise control over file nodes. For example, you can quickly query files by their names, determine selected files, or use the selection flag for custom processes.
Learn More
To explore these attributes further and enhance your NSL expertise, visit the original documentation page: https://documentation.samson-connect.net/users/latest/nsl/file/.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at https://www.samson-connect.net.
