File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ gzip these files
3737
3838
3939process gzip {
40- echo true
4140 container ' abhi18av/biodragao_base'
4241 publishDir ' results/gzip'
4342
@@ -48,10 +47,12 @@ process gzip {
4847 tuple path(genome_1_fq), path(genome_2_fq) into ch_out_gzip
4948
5049 script:
50+ outputExtension = params. trimmed ? ' .p.fastq' : ' .fastq'
51+
5152 // rename the output files
5253 // G04880_R1.p.fastq.gz > G04880_R1.p.fastq
53- genome_1_fq = read_1_gz. name. split(" \\ ." )[0 ] + ' .p.fastq '
54- genome_2_fq = read_2_gz. name. split(" \\ ." )[0 ] + ' .p.fastq '
54+ genome_1_fq = read_1_gz. name. split(" \\ ." )[0 ] + outputExtension
55+ genome_2_fq = read_2_gz. name. split(" \\ ." )[0 ] + outputExtension
5556
5657 """
5758 gzip -dc ${ read_1_gz} > ${ genome_1_fq}
You can’t perform that action at this time.
0 commit comments