Skip to content

Commit f6ebb31

Browse files
committed
formatting done for gunzip process
1 parent ee62a17 commit f6ebb31

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

main.nf

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env nextflow
22

33
/*
4-
#######################
5-
Code documentation
6-
#######################
4+
#==============================================
5+
code documentation
6+
#==============================================
7+
78
1. Define a default parameter `params.trimmed=true`
89
2. Check if the `inputRawFilePattern` is trimmed or untrimmed
910
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
1213
*/
1314

1415
/*
15-
################
16+
#==============================================
1617
params
17-
################
18+
#==============================================
1819
*/
1920

20-
params.trimmed=true
21+
params.trimmed = true
2122
params.saveBy = 'copy'
2223

2324
/*
@@ -36,13 +37,13 @@ Channel.fromFilePairs(inputRawFilePattern)
3637
.into { ch_in_gzip }
3738

3839

40+
3941
/*
40-
################
41-
gzip these files
42-
################
42+
#==============================================
43+
gunzip
44+
#==============================================
4345
*/
4446

45-
4647
process gzip {
4748
container 'abhi18av/biodragao_base'
4849
publishDir 'results/gzip', mode: params.saveBy
@@ -55,7 +56,7 @@ process gzip {
5556

5657
script:
5758
outputExtension = params.trimmed ? '.p.fastq' : '.fastq'
58-
59+
5960
// rename the output files
6061
genome_1_fq = genomeReads[0].name.split("\\.")[0] + outputExtension
6162
genome_2_fq = genomeReads[1].name.split("\\.")[0] + outputExtension
@@ -66,3 +67,10 @@ process gzip {
6667
"""
6768

6869
}
70+
71+
72+
/*
73+
#==============================================
74+
# extra
75+
#==============================================
76+
*/

0 commit comments

Comments
 (0)