Skip to content

SDEV-5394 - bugfix get_cancer_genes - cancer_genes list should includ…#111

Open
dustinbleile wants to merge 2 commits intodevelopfrom
bugfix/SDEV-5394_cancer_genes_should_include_oncogenes_and_tumour_suppressors
Open

SDEV-5394 - bugfix get_cancer_genes - cancer_genes list should includ…#111
dustinbleile wants to merge 2 commits intodevelopfrom
bugfix/SDEV-5394_cancer_genes_should_include_oncogenes_and_tumour_suppressors

Conversation

@dustinbleile
Copy link
Copy Markdown
Contributor

…e tumour_suppressors and oncogenes.

Update the list returned by the get_cancer_genes function to include all oncogenes and tumour_suppressors.

Based on Erin's comments in:
https://www.bcgsc.ca/jira/browse/SDEV-5394

…t includes tumour_suppressors and oncogenes.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.31%. Comparing base (8777c66) to head (2fcea4b).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #111      +/-   ##
===========================================
- Coverage    83.46%   83.31%   -0.16%     
===========================================
  Files           18       18              
  Lines         2546     2553       +7     
===========================================
+ Hits          2125     2127       +2     
- Misses         421      426       +5     
Flag Coverage Δ
unittests 83.31% <100.00%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.



def get_cancer_genes(conn: GraphKBConnection) -> List[Ontology]:
"""Get the list of cancer genes stored in GraphKB derived from OncoKB & TSO500.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes to get_cancer_genes() make a lot of a difference: 1168 records now, 423 previously; just saying. If we go forward with these changes, we should add something in the comments so it is explicit about what a 'cancer gene' is in that context (i.e. not the same as 'cancer gene' in GraphKB!).

Right now this function is also used in get_gene_information() to flag 'cancer gene'; are we fine with that? As far as I know, get_oncokb_oncogenes(), get_oncokb_tumour_supressors() and get_cancer_genes() were meant to populate flags in get_gene_information(). Maybe we shoud instead have a distinct function for that new 'meaning' in pori_python, or maybe the probe script should do the composition?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we shoud instead have a distinct function for that new 'meaning' in pori_python,
That makes sense if there is a reason to have the two distinct meanings & lists.

Mostly the issue seems to be that the gene lists and names of the gene lists should make sense to the clininfo group that is most interested in them.

maybe the probe script should do the composition?
Done for iprobe v10.11.0
No particular rush here, so we can take time to come up with a proper solution.

Right now this function is also used in get_gene_information() to flag 'cancer gene'; are we fine with that?
I think it's clininfo that is interested in these flags, so I think that is a question for their group.
Do you know if the gene flags used in the report templates/tables to determine what gets displayed somewhere?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll have a look and also ask to @elewis2.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for gene in CANONICAL_ONCOGENES:
assert gene not in names
assert gene in names

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that these tests were explicit about a 'cancer gene' not being the same as an oncogene or a tumour suppressor gene.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was obviously intentional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants