Update get_cancer_genes() to fit consensus defenition of cancer gene#113
Update get_cancer_genes() to fit consensus defenition of cancer gene#113mathieulemieux wants to merge 20 commits into
Conversation
|
@dustinbleile , do you mind we discard PR #111 ? |
|
@mathieulemieux is it possible to include this filter in the query itself, in _get_tumourigenesis_genes_list? Might reduce the number of records retrieved. Speculating: I'm wondering if there's a way we can avoid querying gkb three times during report prep to get this same info (this step is done in get_gene_information). I think _get_tumourigenesis could probably be updated to include the matched relevance in the result, if the input relevance is a list... but I don't think the info can be processed in a way that leaves get_cancer_genes usable as-is by iprobe since it would need to change the return type to include the separate flags. Maybe something we can address in a later pr. |
|
Re subject biotype in query - Just tested, it wouldn't actually reduce the number of statements retrieved at all. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #113 +/- ##
===========================================
+ Coverage 83.56% 83.73% +0.17%
===========================================
Files 18 18
Lines 2568 2595 +27
===========================================
+ Hits 2146 2173 +27
Misses 422 422
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
yeah, all these relevance terms are used in statement with a gene as the subject. |
ok, let me add a new function for that, so we keep old behavior for iprobe. I'll have to refactor things a bit. |
…et_oncokb_tumour_supressors() and get_cancer_genes()
|
@elewis2, I added the following changes based on your comments and offline discussion:
|
| } | ||
|
|
||
|
|
||
| @deprecated('fuctionality replaced by get_cancer_gene_flags') |
See https://www.bcgsc.ca/jira/browse/KBDEV-1532
get_cancer_genes() will now work with both 'tumourigenesis' (for backward compatibility) and 'cancer gene' as umbrella terms for all cancer-related genes (i.e. oncogenes, tumour suppressive genes and other cancer genes)
A new get_cancer_gene_flags(), more polyvalent, is introduced to make sure we have one source of truth for both iprobe and ipr.