Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Use ploidy for copy.num when running GISTIC #1400

Merged

Conversation

jaclyn-taroni
Copy link
Member

Purpose/implementation Section

Closes #1180 using the same solution as d3b-center#119

⚠️ Please note that all files in the module are not up to date as of filing. I was not prepared to tie up my computer any longer.

Reproducibility Checklist

  • The dependencies required to run the code in this pull request have been added to the project Dockerfile.
  • This analysis has been added to continuous integration.

Documentation Checklist

  • This analysis module has a README and it is up to date.
  • This analysis is recorded in the table in analyses/README.md and the entry is up to date.
  • The analytical code is documented and contains comments.

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)) %>%
Copy link
Member

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)) %>%

Copy link
Member Author

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 sjspielman self-requested a review May 20, 2022 16:30
Copy link
Member

@sjspielman sjspielman left a 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.

@jaclyn-taroni jaclyn-taroni merged commit fc3ad7e into AlexsLemonade:master May 21, 2022
@jaclyn-taroni jaclyn-taroni deleted the jaclyn-taroni/1180-fix branch May 21, 2022 20:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updated analysis: GISTIC with ploidy instead of NA
2 participants