@@ -361,10 +361,7 @@ workflow PREPARE_GENOME {
361361 // ------------------------------------------------------
362362 // 14) Salmon index -> can skip genome if transcript_fasta is enough
363363 // ------------------------------------------------------
364- ch_salmon_index = Channel . empty()
365- //
366- // Uncompress Salmon index or generate from scratch if required
367- //
364+
368365 ch_salmon_index = Channel . empty()
369366 if (salmon_index) {
370367 if (salmon_index. endsWith(' .tar.gz' )) {
@@ -386,28 +383,6 @@ workflow PREPARE_GENOME {
386383 }
387384 }
388385
389- if (' salmon' in prepare_tool_indices) {
390- if (salmon_index) {
391- // use user-provided salmon index
392- if (salmon_index. endsWith(' .tar.gz' )) {
393- ch_salmon_index = UNTAR_SALMON_INDEX ([ [:], file(salmon_index, checkIfExists : true ) ]). untar. map { it[1 ] }
394- ch_versions = ch_versions. mix(UNTAR_SALMON_INDEX . out. versions)
395- } else {
396- ch_salmon_index = Channel . value(file(salmon_index, checkIfExists : true ))
397- }
398- }
399- else if (ch_transcript_fasta && fasta_provided) {
400- // build from transcript FASTA + genome FASTA
401- ch_salmon_index = SALMON_INDEX (ch_fasta, ch_transcript_fasta). index
402- ch_versions = ch_versions. mix(SALMON_INDEX . out. versions)
403- }
404- else if (ch_transcript_fasta) {
405- // some Salmon module can run with just a transcript FASTA
406- ch_salmon_index = SALMON_INDEX ([], ch_transcript_fasta). index
407- ch_versions = ch_versions. mix(SALMON_INDEX . out. versions)
408- }
409- }
410-
411386 // --------------------------------------------------
412387 // 15) Kallisto index -> only needs transcript FASTA
413388 // --------------------------------------------------
0 commit comments