Module ferritin_molviewspec::molviewspec::nodes
source · Expand description
This module has functionality to build up MolViewSpec.
MolViewSpec (MVS) is a lightweight, JSON-based specification for describing molecular structures and their visual representation. It is designed to be human-readable, easily shareable, and compatible with various molecular visualization tools.
- MolViewSpec GitHub repository: https://github.com/molstar/mol-view-spec
- MolViewSpec documentation: https://molstar.org/viewer/molviewspec/
- MolStar Viewer (which supports MVS): https://molstar.org/viewer/
We try to adhere very closely to the python library API. Almost all the action happens
on the Nodes
. Because we are building a nested tree of data, we need most of the parts to
be mutable and you can see almost all the function calls:
- check the type and the params and act only on correct parent nodes
- because of 1, we return
Option<>
- If a node is returned is it
&mut Node
Structs§
- Component Expresssion
- Metadata
- Node
- This is the base MolViewSpec object containing the root node and the metadata
- Structure Params
Enums§
- Color Names
- Color Type: Named or Hex
- Component Selector Type
- Types of coumpounds: for pse I am only using PDB
- Representation Type
- StructureType. Useful for specifying more complicated sets of structures