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

Functionalize CDF TMB Plot #612

Merged
merged 17 commits into from
Mar 10, 2020

Conversation

cansavvy
Copy link
Collaborator

@cansavvy cansavvy commented Mar 6, 2020

Purpose/implementation Section

What scientific question is your analysis addressing?

No new scientific question, just moving the CDF TMB plot to its own file so it is more accessible.

Note that GitHub can't track that the same exact code moved from the notebook to the R script but it is the same exact code.

What was your approach?

Put the CDF plot it its own file so it can be sourced anywhere, Also added more documentation.

What GitHub issue does your pull request address?

Related to this comment and this issue.

Directions for reviewers. Tell potential reviewers what kind of feedback you are soliciting.

Results

No new results.

Reproducibility Checklist

No changes to this.

@cansavvy cansavvy requested a review from jashapiro March 6, 2020 15:23
@jaclyn-taroni jaclyn-taroni requested review from jaclyn-taroni and removed request for jashapiro March 9, 2020 12:06
Copy link
Member

@jaclyn-taroni jaclyn-taroni left a comment

Choose a reason for hiding this comment

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

@jashapiro has had a heavy review load lately, so figured I would go ahead and review this pull request. The code included in this function has been reviewed before and overall it looks good. There is one thing that is hardcoded and not documented (the minimum number of samples required for display) that should be remedied before merging. Another question I had – how difficult would be it take an argument for how things should be grouped (e.g., not just using short_histology)?

# Only plot histologies groups with more than `min_samples` number of samples
dplyr::group_by(short_histology, add = TRUE) %>%
# Only keep groups with this amount of samples
dplyr::filter(dplyr::n() > 5) %>%
Copy link
Member

Choose a reason for hiding this comment

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

This should be an argument for this function rather than hardcoded and not included in the documentation.

@cansavvy
Copy link
Collaborator Author

cansavvy commented Mar 9, 2020

I'll add a thing to make this versatile for other fields besides short_histology. It will require a smidge of tidy eval.

@cansavvy
Copy link
Collaborator Author

cansavvy commented Mar 9, 2020

Let me know how you feel about these changes, and if we are good with them, I'll file another PR that rearranges the chromosomal-instability plot to use this function and then also merge and update these changes with #613

Copy link
Member

@jaclyn-taroni jaclyn-taroni left a comment

Choose a reason for hiding this comment

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

This is looking good! I think the tidy eval changes will be very helpful. I had a couple of documentation comments that should be address prior to merging, but they are minor so I am approving.

Copy link
Member

@jaclyn-taroni jaclyn-taroni left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@jaclyn-taroni jaclyn-taroni merged commit 7963db0 into AlexsLemonade:master Mar 10, 2020
@cansavvy cansavvy deleted the cdf-functionalize branch March 25, 2020 20:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants