Skip to content

Commit

Permalink
Renaming cancerGene flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Nov 16, 2023
1 parent 0f0f1cd commit 31b886b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions graphkb/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def get_gene_information(
Function is originally from pori_ipr_python::annotate.py
Gene flags (categories) are: ['cancerRelated', 'knownFusionPartner', 'knownSmallMutation',
Gene flags (categories) are: ['cancerGene', 'cancerRelated', 'knownFusionPartner', 'knownSmallMutation',
'oncogene', 'therapeuticAssociated', 'tumourSuppressor']
Args:
Expand Down Expand Up @@ -444,8 +444,8 @@ def get_gene_information(
gene_flags["oncogene"] = convert_to_rid_set(get_oncokb_oncogenes(graphkb_conn))
logger.info("fetching tumour supressors list")
gene_flags["tumourSuppressor"] = convert_to_rid_set(get_oncokb_tumour_supressors(graphkb_conn))
logger.info("fetching cancer_gene list")
gene_flags["cancer_gene"] = convert_to_rid_set(get_cancer_genes(graphkb_conn))
logger.info("fetching cancerGene list")
gene_flags["cancerGene"] = convert_to_rid_set(get_cancer_genes(graphkb_conn))

logger.info("fetching therapeutic associated genes lists")
gene_flags["therapeuticAssociated"] = convert_to_rid_set(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,5 @@ def test_get_gene_information(conn):

for gene in CANONICAL_CG:
assert gene in [
g["name"] for g in gene_info if g.get("cancer_gene")
], f"Missed cancer_gene {gene}"
g["name"] for g in gene_info if g.get("cancerGene")
], f"Missed cancerGene {gene}"

0 comments on commit 31b886b

Please sign in to comment.