Skip to content

Commit

Permalink
add more reads globs
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung authored Dec 11, 2024
1 parent 9017340 commit 6076c01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subworkflows/local/initialize.nf
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ workflow INITIALIZE {
// looking for paired-end fastq files
if (params.reads) {
Channel
.fromFilePairs(["${params.reads}/*{1,2}*.{fastq,fastq.gz,fq,fq.gz}"], size: 2 )
.fromFilePairs(["${params.reads}/*_R{1,2}*.{fastq,fastq.gz,fq,fq.gz}",
"${params.reads}/*_{1,2}*.{fastq,fastq.gz,fq,fq.gz}"], size: 2 )
.unique()
.map { it ->
meta = [id:it[0].replaceAll(~/_S[0-9]+_L[0-9]+/,""), single_end:false]
Expand Down Expand Up @@ -514,4 +515,4 @@ workflow INITIALIZE {
kraken2_db = ch_kraken2_db // channel: path
scripts = ch_scripts // channel: [scripts]
nextclade_dataset = ch_nextclade_dataset // channel: file
}
}

0 comments on commit 6076c01

Please sign in to comment.