Web
- class hippo.web.ProjectPage(output_dir: str | Path, *, animal: HIPPO, scaffolds: CompoundSet | None = None, suppliers: list[str] | None = None, starting_recipe: Recipe | None = None, rgen: RandomRecipeGenerator | None = None, scorer: Scorer | None = None, proposals: list[Recipe] | None = None, title: str | None = None, scaffold_tag: str = 'Syndirella scaffold', extra_recipe_dir: str | Path = None, skip_existing: bool = True)[source]
Recipe proposal web page
ProjectPage initialisation
- property all_elabs: CompoundSet
All elaborations
- property all_scaffolds: CompoundSet
All scaffold compounds
- button(text: str, onclick: str = '', style='w3-teal', disable: bool = False)[source]
Generic button component
- compound_grid(compounds, style='w3-center', pose_modal: bool = False)[source]
Compound grid component
- property doc: yattag.Doc
yattag.Doc
- property extra_recipe_dir: Path
Optional extra recipe directory
- funnel(log_y: bool = True, scaffolds: CompoundSet | None = None, num_inspirations: int | None = None, num_inspiration_sets: int | None = None) plotly.graph_objects.Figure[source]
Funnel plot
- property index_path: Path
index.html Path
- property line: yattag.line
- modal_button(text, modal_name, disable: bool = False, style: str = 'w3-teal')[source]
Modal opening button
- property mol_image_dir: Path
Output directory
- property output_dir: Path
Output directory
- property pose_sdf_dir: Path
Output directory
- recipe_subsection(recipe, title, sankey: bool = False, title_style='h3', show_title=True)[source]
recipe subsection
- property resource_dir: Path
Output directory
- property rgen: RandomRecipeGenerator
- property scaffolds: CompoundSet
Scaffold
CompoundSet
- property skip_existing: bool
Skip creation of existing files
- property suppliers: list[str]
Compound suppliers
- table(data, style: str = 'w3-table-all w3-responsive', **kwargs)[source]
Embed some data as a table
- property tag: yattag.tag
- property text: yattag.text
- property title: str
Page title