Skip to content
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

Quality Control -- Report Making Function #16

Merged
merged 31 commits into from
Mar 22, 2024
Merged

Quality Control -- Report Making Function #16

merged 31 commits into from
Mar 22, 2024

Conversation

kweav
Copy link
Collaborator

@kweav kweav commented Feb 26, 2024

Description

This pull request is for issue #3, functionalizing the steps of QC.

Type of change

  • Bug fix (non-breaking change which fixes an issue) -- there were a few bugs that have been fixed in setting up data
  • New feature (non-breaking change which adds functionality) -- the QC steps are functionalized, producing all of the plots and tables of the original code. These still need to be output in a produced report.
  • This change requires a documentation update -- each step of the QC is its own function and those headers as well as descriptions in the getting_started.Rmd vignette of loading data and running qc need fleshed out further.

How Has This Been Tested?

The run_qc() function was added to the getting_started.Rmd vignette and ran without error. The filter was saved in and accessible from the gimap_dataset variable.

Checklist:

While I have performed a self-review of my code, and commented it, more comments and additions to the documentation are necessary. Tests are also necessary

Copy link
Collaborator

@cansavvy cansavvy 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 a good amount of code for one PR. How about we work on getting this merged and don't worry about the report Rmd until a next PR? You have it well set up for that!

Looks very cool! Let me know when you are ready for me to help/review!

@kweav kweav marked this pull request as ready for review February 27, 2024 16:47
Copy link
Collaborator

@cansavvy cansavvy left a comment

Choose a reason for hiding this comment

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

@kweav Thanks for doing all this excellent work! I have some ideas and thoughts here. Happy to talk through this in a meeting if you'd like, or if you want me to commit some changes myself I can do that too. Whatever you prefer!

But excellent job infusing the science in the code and being super thoughtful about this! Really appreciate how much you've been digging in here!

Now that you have a basis of what's going on here my comments are just about polishing things a bit to the next stages! Really excited about this!

R/00-setup_data.R Outdated Show resolved Hide resolved
R/00-setup_data.R Show resolved Hide resolved
R/01-qc.R Outdated Show resolved Hide resolved
R/01-qc.R Outdated Show resolved Hide resolved
R/qc_cdf.R Outdated Show resolved Hide resolved
inst/rmd/gimapQCTemplate.Rmd Outdated Show resolved Hide resolved
vignettes/getting-started.Rmd Outdated Show resolved Hide resolved
vignettes/getting-started.Rmd Outdated Show resolved Hide resolved
vignettes/getting-started.Rmd Show resolved Hide resolved
vignettes/getting-started.Rmd Outdated Show resolved Hide resolved
@kweav
Copy link
Collaborator Author

kweav commented Mar 4, 2024

Thanks for the feedback -- I think I added responses to everything.

R/qc_generateReport.R Outdated Show resolved Hide resolved
@kweav
Copy link
Collaborator Author

kweav commented Mar 6, 2024

I've made several additions and edits to the code in order to incorporate most of this feedback. I've also verified that the code runs without error. Could we review these changes, merge this pull request, and open another for next steps?

R/utils.R Outdated

save_plot <- function(plt, out_dir = NULL){
#' @import ggplot2
save_plot <- function(plt, out_dir = NULL, params = list(cell_line = NULL)){
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought I asked this somewhere but can't find it. Did we get to the bottom of whether this needs to be given as a list like this? I generally like simplifying the structures we are asking users to supply for arguments so it is more easy for them supply the argument.

R/01-qc.R Outdated Show resolved Hide resolved
R/01-qc.R Outdated Show resolved Hide resolved
R/01-qc.R Outdated Show resolved Hide resolved
R/01-qc.R Outdated Show resolved Hide resolved
@cansavvy cansavvy mentioned this pull request Mar 8, 2024
9 tasks
@cansavvy cansavvy changed the title Ki qc Quality Control -- Report Making Function Mar 22, 2024
@cansavvy
Copy link
Collaborator

This is passing checks and although we need to do some more iterative work on it, I think this is good enough for us to merge and put this behind us. I will file issues on what we need to iteratively work on from here.

Copy link
Collaborator

@cansavvy cansavvy left a comment

Choose a reason for hiding this comment

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

Let's merge it!

@cansavvy cansavvy merged commit 9aa337a into main Mar 22, 2024
6 of 7 checks passed
@cansavvy cansavvy deleted the ki_qc branch March 22, 2024 14:57
@kweav kweav restored the ki_qc branch April 15, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants