This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Use ploidy for copy.num when running GISTIC #1400
Merged
jaclyn-taroni
merged 11 commits into
AlexsLemonade:master
from
jaclyn-taroni:jaclyn-taroni/1180-fix
May 21, 2022
Merged
Use ploidy for copy.num when running GISTIC #1400
jaclyn-taroni
merged 11 commits into
AlexsLemonade:master
from
jaclyn-taroni:jaclyn-taroni/1180-fix
May 21, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sjspielman
reviewed
May 20, 2022
dplyr::select(Kids_First_Biospecimen_ID, tumor_ploidy) %>% | ||
dplyr::rename(ID = Kids_First_Biospecimen_ID) %>% | ||
dplyr::inner_join(cnv_consensus, by="ID") %>% | ||
dplyr::mutate(copy.num = dplyr::case_when(is.na(copy.num) ~ tumor_ploidy, TRUE ~ copy.num)) %>% |
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.
Spacing for clarity (though the spacing doesn't come out well in the github suggestion..)
Noting that one could recreationally revise this to be ifelse()
, or one could leave it as is.
Suggested change
dplyr::mutate(copy.num = dplyr::case_when(is.na(copy.num) ~ tumor_ploidy, TRUE ~ copy.num)) %>% | |
dplyr::mutate(copy.num = dplyr::case_when( | |
is.na(copy.num) ~ tumor_ploidy, | |
TRUE ~ copy.num)) %>% |
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.
I recreationally moved this Rscript so it gets checked in CI to boot!
sjspielman
approved these changes
May 20, 2022
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.
The changes I suggested are mostly at your discretion, so I don't need to see this again.
Co-authored-by: Stephanie <stephanie.spielman@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose/implementation Section
Closes #1180 using the same solution as d3b-center#119
Reproducibility Checklist
Documentation Checklist
README
and it is up to date.analyses/README.md
and the entry is up to date.