Skip to content

Change context matrix to subtype matrix #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data-prep-pipeline/data_prep_pipeline/publish.conseq
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ rule publish_context_matrix:
update_taiga_script=fileref('upload_to_taiga.py')
outputs:{"type": "release_context_matrix_published"}

run "python3 {{inputs.update_taiga_script.filename}} {{inputs.release_taiga_id.dataset_id}} 'Created ContextMatrix for release' 'ContextMatrix' {{inputs.context_matrix.filename}} 'csv_matrix'"
run "python3 {{inputs.update_taiga_script.filename}} {{inputs.release_taiga_id.dataset_id}} 'Created ContextMatrix for release' 'SubtypeMatrix' {{inputs.context_matrix.filename}} 'csv_matrix'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we call it "Subtype Matrix" in context manager as well?

(Currently it's being called "Context Matrix")

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that's the plan. I'm making that part of the renaming changes

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, thanks

Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ def add_non_cancerous_lineages(non_cancerous_types, oncotable):
## DECISION: Add cancerous nodes at level 1, right underneath lineage
parent_code = lin_node.DepmapModelType

## Hard-coded PedDep request for 25Q2: Add BALL and TALL under Lymphoid Neoplasm
if new_type.DepmapModelType in ['BALL', 'TALL']:
parent_code = 'LNM'

elif new_type.OncotreePrimaryDisease == "Non-Cancerous":
if lin_node.NodeSource == "Oncotree":
## DECISION: Add underneath the Non-Cancerous Level 1 node
Expand Down