ovo.app.utils.cached_db

Module Contents

Functions

get_cached_project_ids_and_names

Return dict of project id -> name

get_cached_project

get_cached_projects

get_cached_descriptor_jobs_for_design_ids

Returns list of jobs where the processed design ids match the provided design ids and the workflow name is in the provided workflow names.

get_cached_available_descriptors

Return all descriptor keys found in DB for the given design ids.

get_cached_available_descriptors_per_job

Return all descriptor keys found in DB for the given design ids and descriptor job id.

get_cached_descriptor_values

get_cached_design

get_cached_designs

get_cached_design_ids

Get design ids matching the given filters, sorted in order of provided pool_ids.

get_cached_common_chain_ids

Get common chain IDs that exist across the given design IDs.

get_cached_round

get_cached_rounds

get_cached_pool

get_cached_pools

get_cached_design_jobs

get_cached_design_job

get_cached_design_jobs_table

_get_cached_design_jobs_table

get_cached_pools_table

get_cached_design_descriptors

get_cached_designs_accept_field

get_cached_workflow_pools_and_jobs

get_cached_labelings_for_design

get_cached_all_available_labels_unique

get_cached_design_ids_with_labels

get_cached_labeling_explanations_by_label_name

Get all unique labeling explanations with the given label name, from most recent.

get_cached_available_labels_for_design_ids

Get unique labels available for the given design IDs.

get_cached_available_labels_for_pool_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.