Skip to content

Commit 1c471ce

Browse files
authored
Merge pull request #452 from Joon-Klaps/fix-blast-cardinality
Fix `ch_blast_db` to have correct cardinality for blast/blastn
2 parents 551cb49 + 1c8e9f0 commit 1c471ce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements
3131
- [[PR #435](https://github.com/nf-core/viralrecon/pull/435)] - Changed to a patched cutadapt from nf-core modules, added `skip_noninternal_primers` param to allow users to process primers inside the pipeline, and added `threeprime_adapters` to determine whether primers are 3' or 5' adapters.
3232
- [[PR #446](https://github.com/nf-core/viralrecon/pull/446)] - Update nextclade & pangolin modules
3333
- [[PR #450](https://github.com/nf-core/viralrecon/pull/450)] - Patch nf schema - include integer & string as type for sample
34+
- [[PR #452](https://github.com/nf-core/viralrecon/pull/452)] - Fix `ch_blast_db` to have correct cardinality for blast/blastn
3435

3536
### Parameters
3637

subworkflows/local/prepare_genome_illumina.nf

+4-2
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,12 @@ workflow PREPARE_GENOME {
209209
UNTAR_BLAST_DB (
210210
[ [:], params.blast_db ]
211211
)
212-
ch_blast_db = UNTAR_BLAST_DB.out.untar.map { it[1] }
212+
ch_blast_db = UNTAR_BLAST_DB.out.untar
213213
ch_versions = ch_versions.mix(UNTAR_BLAST_DB.out.versions)
214214
} else {
215-
ch_blast_db = Channel.value(file(params.blast_db))
215+
ch_blast_db = Channel.value(
216+
[[id:'custom_blastdb'], file(params.blast_db)]
217+
)
216218
}
217219
} else {
218220
BLAST_MAKEBLASTDB (

0 commit comments

Comments
 (0)