Skip to content

Commit e290da6

Browse files
committed
provide string default in pharm info func
1 parent 01cdde6 commit e290da6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pori_python/graphkb/genes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def get_pharmacogenomic_info(
370370

371371

372372
def get_gene_linked_pharmacogenomic_info(
373-
conn: GraphKBConnection, source: str
373+
conn: GraphKBConnection, source: str = PREFERRED_GENE_SOURCE_NAME
374374
) -> Tuple[List[str], Dict[str, Tuple[str, List[str]]]]:
375375
"""
376376
Return two lists from GraphKB, one of pharmacogenomic genes and one of associated variants.

tests/test_graphkb/test_genes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
get_pharmacogenomic_info,
1919
get_preferred_gene_name,
2020
get_therapeutic_associated_genes,
21-
PREFERRED_GENE_SOURCE_NAME,
2221
)
2322
from pori_python.graphkb.util import get_rid
2423

@@ -172,7 +171,7 @@ def test_get_pharmacogenomic_info(conn):
172171
EXCLUDE_BCGSC_TESTS, reason="excluding BCGSC-specific tests (requires CGL loader))"
173172
)
174173
def test_get_gene_linked_pharmacogenomic_info(conn):
175-
genes, matches = get_gene_linked_pharmacogenomic_info(conn, PREFERRED_GENE_SOURCE_NAME)
174+
genes, matches = get_gene_linked_pharmacogenomic_info(conn)
176175
for gene in PHARMACOGENOMIC_INITIAL_GENES:
177176
assert gene in genes, f"{gene} not found in get_pharmacogenomic_info"
178177
for rid, variant_info in matches.items():

0 commit comments

Comments
 (0)