common_reports_api package

Subpackages

Submodules

common_reports_api.common_reports_helper module

class common_reports_api.common_reports_helper.BaseCommonReportsHelper[source]

Bases: GPFTool

Base class for common reports helper

abstract get_common_report() dict[str, Any] | None[source]

Load and return common report for a study.

abstract get_family_counter_list(group_name: str, counter_id: int) Any[source]

Return family counters as list.

abstract get_family_counter_tsv(group_name: str, counter_id: int) list[str][source]

Return family counters as tsv file.

abstract get_family_data_tsv() list[str][source]

Return family counters as tsv file.

abstract get_filtered_family_data_tsv(data: dict) list[str][source]

Return family counters as tsv file.

abstract get_full_common_report() dict[str, Any] | None[source]

Load and return full common report for a study.

class common_reports_api.common_reports_helper.CommonReportsHelper(study: WDAEStudy)[source]

Bases: BaseCommonReportsHelper

Build enrichment tool test.

get_common_report() dict[str, Any] | None[source]

Load and return common report for a study.

get_family_counter_list(group_name: str, counter_id: int) Any[source]

Return family counters as list.

get_family_counter_tsv(group_name: str, counter_id: int) list[str][source]

Return family counters as tsv file.

get_family_data_tsv() list[str][source]

Return family counters as tsv file.

get_filtered_family_data_tsv(data: dict) list[str][source]

Return family counters as tsv file.

get_full_common_report() dict[str, Any] | None[source]

Load and return full common report for a study.

static make_tool(study: WDAEAbstractStudy) GPFTool | None[source]

common_reports_api.urls module

common_reports_api.views module

class common_reports_api.views.FamiliesDataDownloadView[source]

Bases: QueryBaseView, DatasetAccessRightsView

Families data download view class.

get(_request: Request, dataset_id: str) Response | StreamingHttpResponse[source]

Return full family data for a specified study.

post(request: Request, dataset_id: str) Response | StreamingHttpResponse[source]

Return full family data for a specified study and tags.

class common_reports_api.views.FamilyCounterDownloadView[source]

Bases: QueryBaseView, DatasetAccessRightsView

Family counters download view class.

post(request: Request) Response | StreamingHttpResponse[source]

Return family couters for a specified study and group name.

class common_reports_api.views.FamilyCounterListView[source]

Bases: QueryBaseView, DatasetAccessRightsView

Family couters list view class.

post(request: Request) Response[source]

Return family counters for specified study and group name.

class common_reports_api.views.VariantReportsFullView[source]

Bases: QueryBaseView, DatasetAccessRightsView

Variants report full view class.

get(_request: Request, common_report_id: str) Response[source]

Return full variant report when requested.

class common_reports_api.views.VariantReportsView[source]

Bases: QueryBaseView

Variant reports view class.

get(_request: Request, common_report_id: str) Response[source]

Return a variant report when requested.

common_reports_api.views.create_common_reports_helper(gpf_instance: WGPFInstance, study: WDAEAbstractStudy) BaseCommonReportsHelper[source]

Create an pheno browser helper for the given dataset.

Module contents