-
Notifications
You must be signed in to change notification settings - Fork 417
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
Dsl2 #263
Dsl2 #263
Conversation
Still working on it, but managed to fix so far:
|
pon = params.pon ? file(params.pon) : file("${params.outdir}/no_file") | ||
snpeff_cache = params.snpeff_cache ? file(params.snpeff_cache) : file("${params.outdir}/no_file") | ||
target_bed = params.target_bed ? file(params.target_bed) : file("${params.outdir}/no_file") | ||
vep_cache = params.vep_cache ? file(params.vep_cache) : file("${params.outdir}/no_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.
Does the no_file folder then remain empty?
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'm actually creating the no_file
file a couple of lines before with:
file("${params.outdir}/no_file").text = "no_file\n"
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.
Ah ok, so actually just an empty file is used then?
known_indels_tbi = params.known_indels ? params.known_indels_index ?: BUILD_INDICES.out.known_indels_tbi.collect() : Channel.empty() | ||
pon_tbi = params.pon ? params.pon_index ?: BUILD_INDICES.out.pon_tbi : Channel.empty() | ||
known_indels_tbi = params.known_indels ? params.known_indels_index ? file(params.known_indels_index) : BUILD_INDICES.out.known_indels_tbi.collect() : Channel.empty() | ||
pon_tbi = params.pon ? params.pon_index ? file(params.pon_index) : BUILD_INDICES.out.pon_tbi : Channel.empty() | ||
|
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.
We should indent this at some point so it looks as nice as the rest :)
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.
Good point
//But if SAMTOOLS_INDEX is not run, markduplicates does not work | ||
bam_mapped = SAMTOOLS_INDEX_MAPPED(bam_mapped) | ||
//But if SAMTOOLS_INDEX is not run, markduplicates does not work | ||
bam_mapped = SAMTOOLS_INDEX_MAPPED(bam_mapped) |
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 comment is obsolet with your fix, right?
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.
Wasn't sure about it, but probably
@@ -464,31 +464,55 @@ workflow { | |||
} | |||
|
|||
GATHERBQSRREPORTS(recaltable) | |||
// if ('baserecalibrator' in skip_qc) baseRecalibratorReport.close() | |||
table = GATHERBQSRREPORTS.out.table |
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.
rename to bqsr_table?
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.
Yes, that's a good idea
|
||
if (!('bamqc' in skip_qc)) { | ||
BAMQC(BWAMEM2_MEM.out.mix(recal), target_bed) | ||
} |
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.
Maybe for consistency we could always set the output to a variable, so above somewhere bwamem2_out = BWAMEM2_MEM.out ..... Maybe a more descriptive variable name.
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.
That's a good idea too.
Maybe something like bwamem2_bam
or mapped_bam
nf-core/sarek pull request
Many thanks for contributing to nf-core/sarek!
Please fill in the appropriate checklist below (delete whatever is not relevant).
These are the most common things requested on pull requests (PRs).
PR checklist
nextflow run . -profile test,docker
).nf-core lint .
).docs
is updatedCHANGELOG.md
is updatedREADME.md
is updatedLearn more about contributing: CONTRIBUTING.md