@@ -38,7 +38,7 @@ workflow PREPARE_GENOME {
3838 //
3939 ch_fasta = Channel . empty()
4040 if (params. fasta. endsWith(' .gz' )) {
41- ch_fasta = GUNZIP_FASTA ( [:], params. fasta ). gunzip. map{ it[1 ] }
41+ ch_fasta = GUNZIP_FASTA ( [ [ :], params. fasta ] ). gunzip. map{ it[1 ] }
4242 ch_versions = ch_versions. mix(GUNZIP_FASTA . out. versions)
4343 } else {
4444 ch_fasta = file(params. fasta)
@@ -55,14 +55,14 @@ workflow PREPARE_GENOME {
5555 //
5656 if (params. gtf) {
5757 if (params. gtf. endsWith(' .gz' )) {
58- ch_gtf = GUNZIP_GTF ( [:], params. gtf ). gunzip. map{ it[1 ] }
58+ ch_gtf = GUNZIP_GTF ( [ [ :], params. gtf ] ). gunzip. map{ it[1 ] }
5959 ch_versions = ch_versions. mix(GUNZIP_GTF . out. versions)
6060 } else {
6161 ch_gtf = file(params. gtf)
6262 }
6363 } else if (params. gff) {
6464 if (params. gff. endsWith(' .gz' )) {
65- ch_gff = GUNZIP_GFF ( [:], params. gff ). gunzip. map{ it[1 ] }
65+ ch_gff = GUNZIP_GFF ( [ [ :], params. gff ] ). gunzip. map{ it[1 ] }
6666 ch_versions = ch_versions. mix(GUNZIP_GFF . out. versions)
6767 } else {
6868 ch_gff = file(params. gff)
@@ -77,7 +77,7 @@ workflow PREPARE_GENOME {
7777 ch_blacklist = Channel . empty()
7878 if (params. blacklist) {
7979 if (params. blacklist. endsWith(' .gz' )) {
80- ch_blacklist = GUNZIP_BLACKLIST ( [:], params. blacklist ). gunzip. map{ it[1 ] }
80+ ch_blacklist = GUNZIP_BLACKLIST ( [ [ :], params. blacklist ] ). gunzip. map{ it[1 ] }
8181 ch_versions = ch_versions. mix(GUNZIP_BLACKLIST . out. versions)
8282 } else {
8383 ch_blacklist = Channel . fromPath(file(params. blacklist))
@@ -104,7 +104,7 @@ workflow PREPARE_GENOME {
104104 ch_versions = ch_versions. mix(GTF2BED . out. versions)
105105 } else {
106106 if (params. gene_bed. endsWith(' .gz' )) {
107- ch_gene_bed = GUNZIP_GENE_BED ( [:], params. gene_bed ). gunzip. map{ it[1 ] }
107+ ch_gene_bed = GUNZIP_GENE_BED ( [ [ :], params. gene_bed ] ). gunzip. map{ it[1 ] }
108108 ch_versions = ch_versions. mix(GUNZIP_GENE_BED . out. versions)
109109 } else {
110110 ch_gene_bed = file(params. gene_bed)
0 commit comments