Skip to content

Commit

Permalink
SDEV-4409 - use @deprecated decorator for get_cancer_predisposition_i…
Browse files Browse the repository at this point in the history
…nfo and get_pharmacogenomic_info.
  • Loading branch information
dustinbleile committed Aug 30, 2024
1 parent 8ce930c commit a4031f5
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit a4031f5

Please sign in to comment.