Visualizer
- Visualizer(*, structure: AnnotatedStructure, name: str | None = 'structure', cartoon_color: str | None = 'residueindex') None
Interactive 3D visualization wrapper for biomolecular structures.
This class provides a lightweight interface to render an
AnnotatedStructureusing nglview. Structures are serialized to a temporary PDB file and displayed in a Jupyter-compatible interactive viewer.- Parameters:
structure (AnnotatedStructure) – Annotated structure to visualize.
name (str, optional) – Base name used for temporary files and viewer identification.
cartoon_color (str, optional) – Coloring scheme applied to the cartoon representation. This may be any valid NGL color scheme (e.g.
"residueindex","chainid","element").