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

Run qc on samples #102

Merged
merged 3 commits into from
Dec 6, 2016
Merged

Run qc on samples #102

merged 3 commits into from
Dec 6, 2016

Conversation

ihodes
Copy link
Member

@ihodes ihodes commented Dec 6, 2016

fixes #101

Copy link
Member

@smondet smondet left a comment

Choose a reason for hiding this comment

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

LGTM modulo 1 question and 1 stylistic remark :)

let fastqc_pipeline ~normal_samples ~tumor_samples ?rna_samples () =
let normal_fastqcs =
List.mapi
~f:(fun i fq -> qc fq |> Bfx.save (sprintf "QC:normal-%d" i))
Copy link
Member

Choose a reason for hiding this comment

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

Just a question, the FASTQ samples, don't they have different names that we could use there?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed this would be superior, also filing in Epidisco #104

?rna_results ~parameters ~normal_bam_flagstat ~tumor_bam_flagstat ~fastqcs
=
let rna_bam_flagstat =
rna_results >>= fun {rna_bam_flagstat; _} -> return rna_bam_flagstat in
Copy link
Member

Choose a reason for hiding this comment

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

The open Option is too far up, Optionis not meant to be opened globally (Esp. since this case is actually anOption.maprather thanbind`).

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems reasonable.

Why is this an Option.map instead of/just as much a bind?

Copy link
Member

Choose a reason for hiding this comment

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

Option.map shows that None stays None, and Some _ stays Some _ → less mental burden for the reader (?).
bind is more powerful in a way, so overkill here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point 👍

@ihodes
Copy link
Member Author

ihodes commented Dec 6, 2016

@smondet back to you for a final look (I'm also reading over again to make sure this is sane)

@smondet
Copy link
Member

smondet commented Dec 6, 2016

@ihodes LGTM!

@ihodes ihodes merged commit d20134e into master Dec 6, 2016
@ihodes ihodes deleted the run-qc-on-samples branch January 25, 2017 22:10
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.

Run FASTQC on samples separately
2 participants