Public API#
This section documents the supported, user-facing Python API.
Core entrypoints#
Mol* viewer widget with a Python-facing API. |
|
Create and return a MolSysView, optionally loading a molecular system. |
|
Dictionary-like access to built-in demo views. |
MolSysView: query and live operations#
Select indices from the current molecular system (MolSysMT selection language). |
|
Retrieve attribute values from the current molecular system (MolSysMT get). |
|
Append structures (frames) to the loaded system and refresh the viewer (live). |
|
Set attribute values on the loaded system and refresh the viewer (live). |
|
Add atoms/structures from another system into this view and refresh the viewer (live). |
|
Remove atoms and/or structures from this view and refresh the viewer (live). |
Version#
The installed package version is available as molsysviewer.__version__.
Configuration#
User-facing configuration for MolSysViewer. |
|
bool(x) -> bool |
|
bool(x) -> bool |
|
Built-in mutable sequence. |
|
Built-in mutable sequence. |
|
Load user presets from a JSON or YAML file into |
User presets registry#
- molsysviewer.config.user_presets = {}#
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
Scene management#
Wrapper for operations on the whole structure (non-deletable, non-retaggable). |
|
Wrapper for a molecular region (Mol* component) addressed by tag. |
|
Wrapper for a non-structural visual layer (shapes, overlays) addressed by tag. |
Loaders#
Internal backend for MolSysView.load(...). |
Shapes and overlays#
Shape manager bound to a MolSysView. |
|
Sphere helpers for the scene. |
|
Helpers for pocket/void surfaces based on selected atoms. |
|
API for volumetric blobs (Gaussian fields) built from alpha-spheres. |
|
API to build channel tubes along ordered centers/radii (e.g., TopoMT routes). |
|
Visualize oriented ellipsoids/disks from eigenvalues/eigenvectors or tensors. |
|
API for pharmacophore glyphs (spheres/disks/arrows). |
|
Documentation helpers#
Return an IFrame pointing to a pre-generated MolSysViewer HTML asset. |