ovo.app.utils.cached_db¶
Module Contents¶
Functions¶
Return dict of project id -> name |
|
Returns list of jobs where the processed design ids match the provided design ids and the workflow name is in the provided workflow names. |
|
Return all descriptor keys found in DB for the given design ids. |
|
Return all descriptor keys found in DB for the given design ids and descriptor job id. |
|
Get design ids matching the given filters, sorted in order of provided pool_ids. |
|
Get common chain IDs that exist across the given design IDs. |
|
Get all unique labeling explanations with the given label name, from most recent. |
|
Get unique labels available for the given design IDs. |
|
Get unique labels available for the given pool IDs, applying optional filters on the designs in those pools. |
API¶
- ovo.app.utils.cached_db.get_cached_project_ids_and_names(username: str, extra_project_ids: Collection[str] = None) dict[str, str]¶
Return dict of project id -> name
- ovo.app.utils.cached_db.get_cached_project(**kwargs) ovo.core.database.models.Project¶
- ovo.app.utils.cached_db.get_cached_projects(project_ids: Collection[str], order_by='-created_date_utc', **kwargs) list[ovo.core.database.models.Project]¶
- ovo.app.utils.cached_db.get_cached_descriptor_jobs_for_design_ids(design_ids: Collection[str], workflow_names: List[str], project_id, only_exact_design_ids: bool = True) list[ovo.core.database.models.DescriptorJob]¶
Returns list of jobs where the processed design ids match the provided design ids and the workflow name is in the provided workflow names.
- ovo.app.utils.cached_db.get_cached_available_descriptors(design_ids: Collection[str]) dict[str, ovo.core.database.models.Descriptor]¶
Return all descriptor keys found in DB for the given design ids.
- ovo.app.utils.cached_db.get_cached_available_descriptors_per_job(design_ids: Collection[str], descriptor_job_id: str) dict[str, ovo.core.database.models.Descriptor]¶
Return all descriptor keys found in DB for the given design ids and descriptor job id.
- ovo.app.utils.cached_db.get_cached_descriptor_values(descriptor_key: str, design_ids: list[str], descriptor_job_id: str | None = None)¶
- ovo.app.utils.cached_db.get_cached_design(design_id: str) ovo.core.database.models.Design¶
- ovo.app.utils.cached_db.get_cached_designs(design_ids: Collection[str]) list[ovo.core.database.models.Design]¶
- ovo.app.utils.cached_db.get_cached_design_ids(pool_ids: list[str], **filters) list[str]¶
Get design ids matching the given filters, sorted in order of provided pool_ids.
- ovo.app.utils.cached_db.get_cached_common_chain_ids(design_ids: list[str]) tuple[list[str], list[str]]¶
Get common chain IDs that exist across the given design IDs.
- ovo.app.utils.cached_db.get_cached_round(round_id: str) ovo.core.database.models.Round¶
- ovo.app.utils.cached_db.get_cached_rounds(project_id: str = None, project_ids: Collection[str] = None, order_by='-created_date_utc', **kwargs) list[ovo.core.database.models.Round]¶
- ovo.app.utils.cached_db.get_cached_pool(pool_id: str) ovo.core.database.models.Pool¶
- ovo.app.utils.cached_db.get_cached_pools(pool_ids: Collection[str] = None, **kwargs) list[ovo.core.database.models.Pool]¶
- ovo.app.utils.cached_db.get_cached_design_jobs(design_job_ids: Collection[str]) list[ovo.core.database.models.DesignJob]¶
- ovo.app.utils.cached_db.get_cached_design_job(design_job_id: str) ovo.core.database.models.DesignJob¶
- ovo.app.utils.cached_db.get_cached_design_jobs_table(round_ids: list[str], **filters) pandas.DataFrame¶
- ovo.app.utils.cached_db._get_cached_design_jobs_table(project_id: str = None, round_ids: list[str] = None, update=True, **pool_filters) pandas.DataFrame¶
- ovo.app.utils.cached_db.get_cached_pools_table(project_id: str = None, round_ids: list[str] = None) pandas.DataFrame¶
- ovo.app.utils.cached_db.get_cached_design_descriptors(design_id: str, descriptor_keys: list[str])¶
- ovo.app.utils.cached_db.get_cached_designs_accept_field(design_ids: list[str]) List[bool]¶
- ovo.app.utils.cached_db.get_cached_workflow_pools_and_jobs(project_id: str, workflow_names: Collection[str])¶
- ovo.app.utils.cached_db.get_cached_labelings_for_design(design_id: str) list[ovo.core.database.models.Labeling]¶
- ovo.app.utils.cached_db.get_cached_all_available_labels_unique() list[str]¶
- ovo.app.utils.cached_db.get_cached_design_ids_with_labels(label_names: list[str], design_ids: list[str], any=False) list[str]¶
- ovo.app.utils.cached_db.get_cached_labeling_explanations_by_label_name(label_name: str) list[str]¶
Get all unique labeling explanations with the given label name, from most recent.
- ovo.app.utils.cached_db.get_cached_available_labels_for_design_ids(design_ids: list[str]) list[str]¶
Get unique labels available for the given design IDs.
- ovo.app.utils.cached_db.get_cached_available_labels_for_pool_ids(pool_ids: list[str], **design_filters) list[str]¶
Get unique labels available for the given pool IDs, applying optional filters on the designs in those pools.