Skip to content

Commit 1acd2de

Browse files
authored
feat: add the param for (un)trimmed parameter
1 parent 2b7532d commit 1acd2de

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

main.nf

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
#!/usr/bin/env nextflow
22

33

4+
5+
/*
6+
################
7+
params
8+
################
9+
*/
10+
//NOTE: default parameter
11+
params.trimmed=true
12+
13+
414
/*
515
################
616
NEXTFLOW Global Config
717
################
818
*/
919

1020

11-
inputRawFilePattern = "./*_{R1,R2}.p.fastq.gz"
21+
inputUntrimmedRawFilePattern = "./*_{R1,R2}.fastq.gz"
22+
23+
//NOTE: This pipeline is starts with `trimmed` because of the `p` in the file pattern.
24+
inputTrimmedRawFilePattern = "./*_{R1,R2}.p.fastq.gz"
25+
26+
inputRawFilePattern = params.trimmed ? inputTrimmedRawFilePattern : inputUntrimmedRawFilePattern
1227

1328
Channel.fromFilePairs(inputRawFilePattern, flat: true)
1429
.into { ch_in_gzip }

0 commit comments

Comments
 (0)