Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDEV-4409 - use @deprecated decorator for get_cancer_predisposition_i… #35

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pori_python/graphkb/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

from typing import Any, Dict, List, Sequence, Set, Tuple, cast
from typing_extensions import deprecated

from pori_python.types import IprGene, Ontology, Record, Statement, Variant

Expand Down Expand Up @@ -256,6 +257,7 @@ def get_preferred_gene_name(
return gene_names[0]


@deprecated("Use get_gene_linked_cancer_predisposition_info instead")
def get_cancer_predisposition_info(
conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE_NAME
) -> Tuple[List[str], Dict[str, str]]:
Expand Down Expand Up @@ -360,6 +362,7 @@ def get_gene_linked_cancer_predisposition_info(
return sorted(genes), variants


@deprecated("Use get_gene_linked_pharmacogenomic_info instead")
def get_pharmacogenomic_info(
conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE_NAME
) -> Tuple[List[str], Dict[str, str]]:
Expand Down
Loading