ovo.app.components.input_components¶
Module Contents¶
Functions¶
Initialize a workflow in the session state based on dropdown with available workflow variants (subclasses). |
|
Fragment to display input structure and allow residue selection via molstar component. |
API¶
- ovo.app.components.input_components.initialize_workflow(page_key: str, workflow_name: str, include_subclasses: bool = False) ovo.core.database.Workflow¶
Initialize a workflow in the session state based on dropdown with available workflow variants (subclasses).
- Parameters:
page_key – Key identifying the workflow page, used as key in session_state.workflows
workflow_name – Base name of the workflow (e.g. “rfdiffusion-end-to-end”)
include_subclasses – Whether to let user choose from subclasses of the base workflow as variants
- ovo.app.components.input_components.pdb_input_component(old_pdb_code: str | None) tuple[str, bytes] | None¶
- ovo.app.components.input_components.sequence_selection_fragment(page_key: str, input_name: str, color='chain-id', representation_type='cartoon+ball-and-stick', write_segments: bool = True, fixed_segments: list[ovo.app.components.molstar_custom_component.dataclasses.ContigSegment] | None = None, **selection_kwargs)¶
Fragment to display input structure and allow residue selection via molstar component.
- Parameters:
page_key – Key identifying the workflow page, typically file
input_name – Name of the input structure, used for download filename
color – Initial color scheme for molstar component
representation_type – Initial representation type for molstar component
write_segments – Whether to write selected segments (True) or individual residues (False)
fixed_segments – If provided, only these segments will be shown in the structure (others hidden)
selection_kwargs – Additional kwargs passed to workflow.get/set_selected_segments methods