-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed how paired end fastq files are read in
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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 } | ||
|