File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env nextflow
2
2
3
3
/*
4
- #######################
5
- Code documentation
6
- #######################
4
+ #==============================================
5
+ code documentation
6
+ #==============================================
7
+
7
8
1. Define a default parameter `params.trimmed=true`
8
9
2. Check if the `inputRawFilePattern` is trimmed or untrimmed
9
10
3. The `trimmed` file has `p` in the file pattern whereas untrimmed file does not have `p` in the file pattern
@@ -12,12 +13,12 @@ Code documentation
12
13
*/
13
14
14
15
/*
15
- ################
16
+ #==============================================
16
17
params
17
- ################
18
+ #==============================================
18
19
*/
19
20
20
- params. trimmed= true
21
+ params. trimmed = true
21
22
params. saveBy = ' copy'
22
23
23
24
/*
@@ -36,13 +37,13 @@ Channel.fromFilePairs(inputRawFilePattern)
36
37
.into { ch_in_gzip }
37
38
38
39
40
+
39
41
/*
40
- ################
41
- gzip these files
42
- ################
42
+ #==============================================
43
+ gunzip
44
+ #==============================================
43
45
*/
44
46
45
-
46
47
process gzip {
47
48
container ' abhi18av/biodragao_base'
48
49
publishDir ' results/gzip' , mode: params. saveBy
@@ -55,7 +56,7 @@ process gzip {
55
56
56
57
script:
57
58
outputExtension = params. trimmed ? ' .p.fastq' : ' .fastq'
58
-
59
+
59
60
// rename the output files
60
61
genome_1_fq = genomeReads[0 ]. name. split(" \\ ." )[0 ] + outputExtension
61
62
genome_2_fq = genomeReads[1 ]. name. split(" \\ ." )[0 ] + outputExtension
@@ -66,3 +67,10 @@ process gzip {
66
67
"""
67
68
68
69
}
70
+
71
+
72
+ /*
73
+ #==============================================
74
+ # extra
75
+ #==============================================
76
+ */
You can’t perform that action at this time.
0 commit comments