Skip to content

Commit

Permalink
Merge pull request #109 from bcgsc/release/v1.14.0
Browse files Browse the repository at this point in the history
Release/v1.14.0
  • Loading branch information
mathieulemieux authored Nov 21, 2023
2 parents 6114071 + 798fc98 commit 37f6528
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 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,6 +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 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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include_trailing_comma = true
[metadata]
name = graphkb
url = https://github.com/bcgsc/pori_graphkb_python
version = 1.13.0
version = 1.14.0
author_email = [email protected]
description = python adapter for interacting with the GraphKB API
long_description = file: README.md
Expand Down
8 changes: 7 additions & 1 deletion tests/test_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

CANONICAL_ONCOGENES = ["kras", "nras", "alk"]
CANONICAL_TS = ["cdkn2a", "tp53"]
CANONICAL_CG = ["ercc1", "fanci", "h2bc4", "h2bc17", "acvr1b"]
CANONICAL_CG = ["alb"]
CANONICAL_FUSION_GENES = ["alk", "ewsr1", "fli1"]
CANONICAL_STRUCTURAL_VARIANT_GENES = ["brca1", "dpyd", "pten"]
CANNONICAL_THERAPY_GENES = ["erbb2", "brca2", "egfr"]
Expand Down Expand Up @@ -203,6 +203,7 @@ def test_get_gene_information(conn):
conn,
CANONICAL_ONCOGENES
+ CANONICAL_TS
+ CANONICAL_CG
+ CANONICAL_FUSION_GENES
+ CANONICAL_STRUCTURAL_VARIANT_GENES
+ CANNONICAL_THERAPY_GENES
Expand Down Expand Up @@ -247,3 +248,8 @@ def test_get_gene_information(conn):
assert gene in [
g["name"] for g in gene_info if g.get("cancerRelated")
], f"Missed cancerRelated {gene}"

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

0 comments on commit 37f6528

Please sign in to comment.