Simplifying Molecular Modeling with Backbone Attributes in SAMSON

Molecular modelers often work with large amounts of structural and atomic data, requiring precise control over properties and features of molecular components. If you’re using SAMSON, understanding backbone attributes can save you significant time and effort by enabling targeted manipulations of backbone nodes. This blog post explores the key attributes for backbones in SAMSON’s Node Specification Language (NSL), which empower users to fine-tune molecular design and analyses effectively.

What Are Backbone Attributes?

Backbone attributes are part of the backbone attribute space in SAMSON, identifiable by their short name: s. These attributes allow modelers to manipulate and analyze properties specific to molecular backbones. They are particularly useful when working on structural biology or computational chemistry projects where backbone-level precision is required.

Key Features of Backbone Attributes

The backbone attribute space supports a variety of attributes inherited either from node or structuralGroup attribute spaces. Below are some examples of the most important backbone attributes:

  • Visibility & Accessibility Attributes:
    • hidden (h): Determines whether a backbone is hidden (true) or visible (false).
    • visible (v): Indicates if the backbone is visible or not.
    • selectionFlag (sf): Represents whether the backbone is currently flagged as part of a selection.
  • Simplifying Molecular Selection:
    • name (n): Allows string-based filtering for backbones based on their assigned names, e.g., bb.n "A", matching backbones with the name “A”.
  • Quantitative Analyses:
    • numberOfAtoms (nat): The integer count of all atoms within a backbone. Example: Filter backbones with bb.nat < 1000.
    • formalCharge (fc): Represents a backbone’s formal charge. Query ranges such as bb.fc 6:8 for backbones with a charge value between 6 and 8.
    • numberOfSulfurs (nS): Counts the sulfur atoms within a backbone. Similar attributes include those for hydrogens, nitrogens, carbons, and oxygens.

Real-World Use Case

Suppose you are analyzing a complex molecule and need to work solely on visible backbones containing at least ten carbons. Using SAMSON’s NSL, you could quickly filter backbones with the following expression:

This single line ensures you focus only on the relevant backbones while ignoring hidden or irrelevant components. Such targeted queries streamline structural analyses and modifications, saving time while boosting accuracy.

How to Leverage Backbone Attributes

SAMSON allows users to combine multiple attributes for highly specific searches and selections. For instance, to find all backbones that are visible, selected, and contain more than 50 hydrogen atoms, you can use:

Once filtered, you can explore or modify these selected backbones directly within the SAMSON interface or via additional scripting, depending on your molecular modeling goals.

For more details and examples of backbone attributes in SAMSON, check out the official documentation page.

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

Comments are closed.