Understanding Backbone Attributes in SAMSON’s Node Specification Language

For molecular modelers working on structural analysis and design, managing complex molecular backbones effectively is a common challenge. The Node Specification Language (NSL) in SAMSON provides a structured approach to address this need through backbone attributes. This blog post explores the essential backbone attributes that can help you work smarter with molecular backbones.

What are Backbone Attributes?

Backbone attributes in SAMSON’s NSL define specific characteristics within the backbone attribute space (short name: s). These attributes are instrumental for selecting, querying, and filtering molecular backbones efficiently. Whether it’s visualizing structures, analyzing atom counts, or identifying specific backbone patterns, understanding these attributes can make a substantial difference in your workflow.

Key Backbone Attributes

Here’s an overview of some of the most useful backbone attributes:

  • hasMaterial (hm): Indicates if the backbone has material. Possible values are true or false. Example expressions: bb.hm, not bb.hm
  • hidden (h): Specifies whether the backbone is hidden. Possible values are true or false. Example expressions: bb.h, not bb.h
  • name (n): Defines the name of the backbone as a string in quotes. For example, bb.n "A" or bb.n "L*".
  • numberOfAtoms (nat): Represents the count of atoms in the backbone. Example: bb.nat < 1000, bb.nat 100:200.
  • partialCharge (pc): Allows you to query the partial charge of the backbone. Useful for electrochemical analysis. Example: bb.pc > 1.5 or bb.pc 1.5:2.0.

Why These Attributes Are Useful

Backbone attributes simplify structural queries: Suppose you want to focus only on visible backbones while ignoring hidden ones. Using the hidden or visible attribute allows you to filter data instantly. Similarly, the name attribute is an excellent way to target specific backbones (e.g., bb.n "Protein*"). Simplifying queries increases the efficiency of your molecular modeling tasks.

Control visual representation with ease: Attributes like hasMaterial, hidden, and ownsMaterial allow precise control over the visual and structural representation of models. This way, whether you’re preparing publication-quality visuals or focusing on specific components for simulation, these attributes give you the control you need.

Example Use Cases

1. Selecting Backbones Based on Atom Count: Use bb.nat 100:200 to find backbones with 100 to 200 atoms—a scenario common in molecular subset analysis.

2. Filtering by Partial Charge: Include only the backbones with a partial charge greater than 1.5 using bb.pc > 1.5. This is particularly helpful when working with charged species.

3. Streamlining Visibility: Quickly identify visible backbones in your model using not bb.hidden or bb.v.

Learn More

Backbone attributes in SAMSON’s Node Specification Language provide powerful tools for molecular modelers. They automate tedious structural queries, enhance visualization, and make complex tasks manageable. To explore the full list of backbone attributes and examples, visit the official documentation page.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download it at SAMSON Connect.

Comments are closed.