File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
subworkflows/local/utils_nfcore_rnaseq_pipeline Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -267,13 +267,16 @@ def validateInputParameters() {
267267 // (i.e., no pre-built salmon/kallisto index provided). If the user provides a pre-built
268268 // index that already contains the spike-ins, the combination is valid.
269269 if (params. additional_fasta) {
270- def building_pseudo_index = (
271- ! params. skip_pseudo_alignment &&
272- params. pseudo_aligner &&
273- ! params. salmon_index &&
274- ! params. kallisto_index
275- )
276- if (building_pseudo_index) {
270+ def needs_to_build_index = false
271+ if (! params. skip_pseudo_alignment && params. pseudo_aligner) {
272+ // Check if the relevant index for the selected pseudo-aligner is missing
273+ if (params. pseudo_aligner == ' salmon' && ! params. salmon_index) {
274+ needs_to_build_index = true
275+ } else if (params. pseudo_aligner == ' kallisto' && ! params. kallisto_index) {
276+ needs_to_build_index = true
277+ }
278+ }
279+ if (needs_to_build_index) {
277280 transcriptFastaAdditionalFastaError()
278281 }
279282 }
You can’t perform that action at this time.
0 commit comments