ovo.app.components.molstar_custom_component¶
Submodules¶
Package Contents¶
Functions¶
Create a new instance of “molstar_custom_component”. |
|
Data¶
API¶
- ovo.app.components.molstar_custom_component.parent_dir¶
‘dirname(…)’
- ovo.app.components.molstar_custom_component.build_dir¶
‘join(…)’
- ovo.app.components.molstar_custom_component._component_func¶
None
- ovo.app.components.molstar_custom_component.molstar_custom_component(structures: list[ovo.app.components.molstar_custom_component.dataclasses.StructureVisualization], key: str | None, height: str | int = '500px', width: str | int = '100%', show_controls=False, selection_mode=False, download_filename=None, html_filename=None, force_reload=False)¶
Create a new instance of “molstar_custom_component”.
Parameters
structures: list[StructureVisualization] A list containing definitions for the structure visualizations. height: str Height of the component width: str Width of the component show_controls: bool Show panels with tools and sequence selection_mode: bool Turn on selection mode download_filename : str or None, optional If provided, enables a download button for the structure’s PDB files with this filename. html_filename : str or None, optional If provided, enables a button to download the current visualization as an HTML file with this filename. key: str or None An optional key that uniquely identifies this component. If this is None, and the component’s arguments are changed, the component will be re-mounted in the Streamlit frontend and lose its current state. force_reload: bool, default False although component should reload all settings automatically, sometimes it’s useful to force reload of the component, should be turned on only when something has just changed (such as highlighted selections)
Returns
Data from Mol* in JSON format.
- ovo.app.components.molstar_custom_component._static_files¶
None
- ovo.app.components.molstar_custom_component.read_static_files()¶
- ovo.app.components.molstar_custom_component.molstar_html(structures: list[ovo.app.components.molstar_custom_component.dataclasses.StructureVisualization])¶
- ovo.app.components.molstar_custom_component.molstar_notebook(structures: list[ovo.app.components.molstar_custom_component.dataclasses.StructureVisualization], height='500px', width='800px')¶