@@ -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