Skip to content

Commit

Permalink
Fixed storeDir issue
Browse files Browse the repository at this point in the history
Given a default, single accession run followed by a run
with all the accessions, the use of generic file output glob
in conjunction with storeDir directive caused an issue with read files
being incorrectly classed as present and reads for accession 1
output for every accession, causing pipeline to fail due tu duplicate
file names at multiqc step where the files are collected.
  • Loading branch information
rsuchecki committed Aug 1, 2019
1 parent 1c36afe commit 9318bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ process bgzip_chromosome_subregion {

process extract_reads {
tag { accession }
storeDir { "${params.outdir}/downloaded_reads" } //use with care, caching will not work as normal so changes to input may not take effect
storeDir { "${workDir}/downloaded_reads" } //use with care, caching will not work as normal so changes to input may not take effect

input:
val accession from accessionsChannel
//e.g. ACBarrie

output:
set val(accession), file('*.fastq.gz') into (extractedReadsChannelA, extractedReadsChannelB)
set val(accession), file("${accession}_R?.fastq.gz") into (extractedReadsChannelA, extractedReadsChannelB)
//e.g. ACBarrie, [ACBarrie_R1.fastq.gz, ACBarrie_R2.fastq.gz]

script:
Expand Down

0 comments on commit 9318bd2

Please sign in to comment.