Lea Picard (leapfroggie_)
10/19/2025, 10:00 AMch_blast_in = ch_samplesheet.map { meta, fasta, tree -> tuple(meta, file(fasta)) }
and when I view it, it properly shows me all the samples I have in my samplesheet (subset example):
[[id:DTX3], /path/to/DTX3_aa_seq.fasta]
[[id:DTX3L], /path/to/DTX3L_aa_seq.fasta]
[[id:PARP9], /path/to/PARP9_aa_seq.fasta]
but when I run my pipeline, it only runs on DTX3 and ignores the following lines. Is it because of the way I initialize the channel?
The process I use on this channel is either BLAST_BLASTN or (in this case) BLAST_TBLASTN, and they both take as input:
input:
tuple val(meta) , path(fasta)
tuple val(meta2), path(db)
my ch_blastdb is built beforehand and contains tuple(metadb, path/to/dir/of/db).
I can run the whole downstream processes without trouble on the first sample, it just won't start on the following ones.Alexander Nater
10/19/2025, 10:14 AMch_blast_in. So you need to make sure that all other input channels either have the same number of entries as ch_blast_in or are single entry value channels.Alexander Nater
10/19/2025, 10:16 AMch_blastdb.first()Lea Picard (leapfroggie_)
10/19/2025, 10:27 AMAlexander Nater
10/19/2025, 10:31 AMfirst operator just returns a value channel with the first entry of a queue channel. You are free to assign that to a variable. Or you create the db channel directly as a value channel.Alexander Nater
10/19/2025, 10:34 AMChannel.value([[id: 'blast_db'], file(/path/to/db)])Lea Picard (leapfroggie_)
10/19/2025, 10:37 AM