pheno_tool_api package

Subpackages

Submodules

pheno_tool_api.adapter module

class pheno_tool_api.adapter.PhenoToolAdapter(study: WDAEStudy)[source]

Bases: PhenoToolAdapterBase

Adapter for PhenoTool class.

static align_na_results(results: list[dict[str, Any]]) None[source]

Align NA results.

build_report_description(measure_id: str, normalize_by: Any) str[source]

Build a description for a report.

calc_by_effect(measure_id: str, effect: str, people_variants: Counter, *, person_ids: list[str] | None = None, family_ids: list[str] | None = None, normalize_by: list[dict[str, str]] | None = None) dict[str, Any][source]

Run the base pheno tool calc on given variant counts.

calc_variants(query_data: dict[str, Any]) dict[str, Any][source]

Run pheno tool on given data.

get_result_by_sex(result: dict[str, PhenoResult], sex: str) dict[str, Any][source]
static make_tool(study: WDAEAbstractStudy) GPFTool | None[source]
produce_download(query_data: dict[str, Any], query_transformer: QueryTransformer) Generator[str, None, None][source]

Produce columns for download.

class pheno_tool_api.adapter.PhenoToolAdapterBase[source]

Bases: GPFTool

Base class for pheno tool adapters.

abstractmethod calc_variants(query_data: dict[str, Any]) dict[str, Any][source]

Return pheno tool result for given variants.

abstractmethod produce_download(query_data: dict[str, Any], query_transformer: QueryTransformer) Generator[str, None, None][source]

Produce columns for download.

pheno_tool_api.urls module

pheno_tool_api.views module

Module contents