Skip to content

Commit

Permalink
Merge pull request #68 from UPHL-BioNGS/erin-dev
Browse files Browse the repository at this point in the history
fixed how paired end fastq files are read in
  • Loading branch information
erinyoung authored Nov 17, 2021
2 parents 8ecc5d1 + 4418491 commit 20ea703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cecret.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
println("Currently using the Cecret workflow for use with amplicon-based Illumina hybrid library prep on MiSeq\n")
println("Author: Erin Young")
println("email: [email protected]")
println("Version: v.2.0.2021115")
println("Version: v.2.1.2021117")
println("")

params.reads = workflow.launchDir + '/reads'
Expand All @@ -18,7 +18,7 @@ if ( params.reads == params.single_reads ) {
params.outdir = workflow.launchDir + '/cecret'

Channel
.fromFilePairs("${params.reads}/*{1,2}*.{fastq,fastq.gz,fq,fq.gz}", size: 2 )
.fromFilePairs( "${params.reads}/*{R1,R2,_1,_2}*.{fastq,fastq.gz,fq,fq.gz}", size: 2 )
.map { reads -> tuple(reads[0].replaceAll(~/_S[0-9]+_L[0-9]+/,""), reads[1], "paired" ) }
.view { "Fastq file found : ${it[0]}" }
.into { paried_reads_check ; paired_reads }
Expand Down

0 comments on commit 20ea703

Please sign in to comment.