Skip to content

Commit 9204c7d

Browse files
committed
Fix channels for UNTAR processes
1 parent c1b8bc8 commit 9204c7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subworkflows/local/prepare_genome.nf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ workflow PREPARE_GENOME {
137137
if (prepare_tool_index == 'bwa') {
138138
if (params.bwa_index) {
139139
if (params.bwa_index.endsWith('.tar.gz')) {
140-
ch_bwa_index = UNTAR_BWA_INDEX ( [:], params.bwa_index ).untar.map{ it[1] }
140+
ch_bwa_index = UNTAR_BWA_INDEX ( [ [:], params.bwa_index ] ).untar.map{ it[1] }
141141
ch_versions = ch_versions.mix(UNTAR_BWA_INDEX.out.versions)
142142
} else {
143143
ch_bwa_index = file(params.bwa_index)
@@ -155,7 +155,7 @@ workflow PREPARE_GENOME {
155155
if (prepare_tool_index == 'bowtie2') {
156156
if (params.bowtie2_index) {
157157
if (params.bowtie2_index.endsWith('.tar.gz')) {
158-
ch_bowtie2_index = UNTAR_BOWTIE2_INDEX ( [:], params.bowtie2_index ).untar.map{ it[1] }
158+
ch_bowtie2_index = UNTAR_BOWTIE2_INDEX ( [ [:], params.bowtie2_index ] ).untar.map{ it[1] }
159159
ch_versions = ch_versions.mix(UNTAR_BOWTIE2_INDEX.out.versions)
160160
} else {
161161
ch_bowtie2_index = file(params.bowtie2_index)
@@ -173,7 +173,7 @@ workflow PREPARE_GENOME {
173173
if (prepare_tool_index == 'chromap') {
174174
if (params.chromap_index) {
175175
if (params.chromap_index.endsWith('.tar.gz')) {
176-
ch_chromap_index = UNTAR_CHROMAP_INDEX ( [:], params.chromap_index ).untar.map{ it[1] }
176+
ch_chromap_index = UNTAR_CHROMAP_INDEX ( [ [:], params.chromap_index ] ).untar.map{ it[1] }
177177
ch_versions = ch_versions.mix(UNTAR.out.versions)
178178
} else {
179179
ch_chromap_index = file(params.chromap_index)
@@ -191,7 +191,7 @@ workflow PREPARE_GENOME {
191191
if (prepare_tool_index == 'star') {
192192
if (params.star_index) {
193193
if (params.star_index.endsWith('.tar.gz')) {
194-
ch_star_index = UNTAR_STAR_INDEX ( [:], params.star_index ).untar.map{ it[1] }
194+
ch_star_index = UNTAR_STAR_INDEX ( [ [:], params.star_index ] ).untar.map{ it[1] }
195195
ch_versions = ch_versions.mix(UNTAR_STAR_INDEX.out.versions)
196196
} else {
197197
ch_star_index = file(params.star_index)

0 commit comments

Comments
 (0)