-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add generation of QC report to pipeline #31
Conversation
also trailing space cleanup, apparently.
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.
This looks pretty good to me. I think the only thing missing is the check for a missing sample ID in the sce_qc_report.R
script. I feel like that is worthwhile to have. I'm fine with the other changes to the workflow and good catch on the bugs!
if(!file.exists(opt$filtered_sce)){ | ||
stop("Missing filtered .rds file") | ||
} | ||
|
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 think we also need a check here to make sure that the sample Id isn't null? I don't think we want a default value for that so we probably want to add that in just in case.
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.
For some reason, I thought that optparse would throw an error if no default was specified and no value given, but it turns out I am wrong about that. So I added the check you suggested.
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.
Looks good!
This PR adds a final step to the pipeline to run the QC generation function from
scpcaTools
. The process and pipeline are pretty simple, but there were a few changes I made along the way, some for clarity and some for bug fixes and some just because I was inspired and/or delusionalscpcaTools
itself that were fixed in that repo).edge
release for now, so we will always be using the latest scpcaTools as we update things like the QC report. We will want to freeze this to a release when we start processing.magrittr
, so I did that, just to see if I could. Still works as before, but I could change it back... Or we could change all ofscpcaTools
to use it!Closes #1