-
Notifications
You must be signed in to change notification settings - Fork 67
Consensus seg update for oncoplot #1088
Consensus seg update for oncoplot #1088
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kgaonkar6 for these changes. It looks like you just did a basic swap of the consensus seg in place of the focal CN file, but we also need to code the amps appropriately (I think we had used CN*2(?) throughout this repository). Can you make that adjustment with this PR? Thanks!
@@ -283,11 +295,10 @@ cnv_df <- cnv_df %>% | |||
inner_join(select(histologies_df, | |||
Kids_First_Biospecimen_ID, | |||
sample_id), | |||
by = "Kids_First_Biospecimen_ID") %>% | |||
filter(status != "uncallable") %>% | |||
by = c("biospecimen_id"="Kids_First_Biospecimen_ID")) %>% | |||
mutate(Tumor_Sample_Barcode = sample_id) %>% | |||
rename(Variant_Classification = status, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
per this comment, we need to separate out gains and amplifications here and only carry through amps to the oncopolot - can you update this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To give a little more context (and to interject with my opinion about how to do this)...
Currently we recode this in 02-plot-oncoprint.R
:
dplyr::mutate(Variant_Classification = dplyr::case_when(Variant_Classification == "loss" ~ "Del", |
I would remove that from 02-plot-oncoprint.R
and move it into this script (01-map-to-sample_id.R
), where you mutate Variant_Classification
:
dplyr::case_when(
Variant_Classification == "loss" ~ "Del",
Variant_Classification == "amplification" ~ "Amp",
TRUE ~ as.character(Variant_Classification)
)
And then filter with Variant_Classification %in% c("Del", "Amp")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated now
Thanks, I took a brief look yesterday, but think we also need a "deep deletion filter", as hemizygous deletions aren't usually shown in the oncoprints, but I need to think and read about this a little more before proposing a threshold. |
Is that filter necessary for this PR or can it be done later, in a separate pull request, once you have had a chance to read and digest some material? |
We can do later, thanks! |
Purpose/implementation Section
What scientific question is your analysis addressing?
We are adding CNV calls from consensus seg files for autosomes , X and Y chromosomes as inputs for oncoplots.
What was your approach?
Update the input files to :
What GitHub issue does your pull request address?
#1087
Directions for reviewers. Tell potential reviewers what kind of feedback you are soliciting.
Which areas should receive a particularly close look?
The figures need careful review , the only update in consensus seg files and we are currently coding loss as "Del" and amplification and gain as "Amp" to match the maftools requirements as in #1009
Is there anything that you want to discuss further?
Na
Is the analysis in a mature enough form that the resulting figure(s) and/or table(s) are ready for review?
Yes
Results
What types of results are included (e.g., table, figure)?
figures
What is your summary of the results?
ATRX calls are now added with use of X and Y chromosome calls and all CNV overlapping gene locations are being plotted.
Reproducibility Checklist
Documentation Checklist
README
and it is up to date.analyses/README.md
and the entry is up to date.