Skip to content

Commit

Permalink
Add get_cancer_genes
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Oct 24, 2023
1 parent 30b30f2 commit 5b132cb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions graphkb/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from . import GraphKBConnection
from .constants import (
BASE_THERAPEUTIC_TERMS,
CANCER_GENE,
CHROMOSOMES,
FAILED_REVIEW_STATUS,
GENE_RETURN_PROPERTIES,
Expand All @@ -12,6 +13,7 @@
PHARMACOGENOMIC_SOURCE_EXCLUDE_LIST,
PREFERRED_GENE_SOURCE,
RELEVANCE_BASE_TERMS,
TSO500_SOURCE_NAME,
TUMOUR_SUPPRESSIVE,
)
from .match import get_equivalent_features
Expand Down Expand Up @@ -78,6 +80,18 @@ def get_oncokb_tumour_supressors(conn: GraphKBConnection) -> List[Ontology]:
return _get_tumourigenesis_genes_list(conn, TUMOUR_SUPPRESSIVE, [ONCOKB_SOURCE_NAME])


def get_cancer_genes(conn: GraphKBConnection) -> List[Ontology]:
"""Get the list of cancer genes stored in GraphKB derived from OncoKB & TSO500.
Args:
conn: the graphkb connection object
Returns:
gene (Feature) records
"""
return _get_tumourigenesis_genes_list(conn, CANCER_GENE, [ONCOKB_SOURCE_NAME, TSO500_SOURCE_NAME])


def get_therapeutic_associated_genes(graphkb_conn: GraphKBConnection) -> List[Ontology]:
"""Genes related to a cancer-associated statement in Graphkb."""
therapeutic_relevance = get_terms_set(graphkb_conn, BASE_THERAPEUTIC_TERMS)
Expand Down

0 comments on commit 5b132cb

Please sign in to comment.