Skip to content

Commit

Permalink
Fixed FASTQ regex to account for sequencers without discrete lanes
Browse files Browse the repository at this point in the history
  • Loading branch information
wflynny committed Oct 26, 2021
1 parent 0d39ecb commit 76a8110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/functions.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def collect_fastqs(record) {
fastq -> if(fastq =~ /$lib/) {
if (!(fastq in fastqs)) { fastqs.add(fastq.toString()) }
// everything before S\d+_L\d+_[IR]\d+_001.fastq.gz
prefix = (file(fastq).getName() =~ /(.*)_S\d+_L\d+_[IR]\d+_001.fastq.gz/)[0][1]
prefix = (file(fastq).getName() =~ /(.*)_S\d+_(L\d+_)?[IR]\d+_001.fastq.gz/)[0][1]
if (!(prefix in prefixes)) { prefixes.add(prefix) }
}
}
Expand Down

0 comments on commit 76a8110

Please sign in to comment.