Skip to content

Commit

Permalink
Remove duplicate section
Browse files Browse the repository at this point in the history
  • Loading branch information
pinin4fjords committed Jan 21, 2025
1 parent f139bbe commit a9684ea
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions subworkflows/local/prepare_genome/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,7 @@ workflow PREPARE_GENOME {
//------------------------------------------------------
// 14) Salmon index -> can skip genome if transcript_fasta is enough
//------------------------------------------------------
ch_salmon_index = Channel.empty()
//
// Uncompress Salmon index or generate from scratch if required
//

ch_salmon_index = Channel.empty()
if (salmon_index) {
if (salmon_index.endsWith('.tar.gz')) {
Expand All @@ -386,28 +383,6 @@ workflow PREPARE_GENOME {
}
}

if ('salmon' in prepare_tool_indices) {
if (salmon_index) {
// use user-provided salmon index
if (salmon_index.endsWith('.tar.gz')) {
ch_salmon_index = UNTAR_SALMON_INDEX ([ [:], file(salmon_index, checkIfExists: true) ]).untar.map { it[1] }
ch_versions = ch_versions.mix(UNTAR_SALMON_INDEX.out.versions)
} else {
ch_salmon_index = Channel.value(file(salmon_index, checkIfExists: true))
}
}
else if (ch_transcript_fasta && fasta_provided) {
// build from transcript FASTA + genome FASTA
ch_salmon_index = SALMON_INDEX(ch_fasta, ch_transcript_fasta).index
ch_versions = ch_versions.mix(SALMON_INDEX.out.versions)
}
else if (ch_transcript_fasta) {
// some Salmon module can run with just a transcript FASTA
ch_salmon_index = SALMON_INDEX([], ch_transcript_fasta).index
ch_versions = ch_versions.mix(SALMON_INDEX.out.versions)
}
}

//--------------------------------------------------
// 15) Kallisto index -> only needs transcript FASTA
//--------------------------------------------------
Expand Down

0 comments on commit a9684ea

Please sign in to comment.