I'm trying to provide a channel with three element...
# nf-test
m
I'm trying to provide a channel with three elements to a subworkflow test and nextflow is not liking it. Does anyone know how to structure the data properly so that nextflow is happy?
Copy code
Channel.of(
                    [
                        [ id:'E. coli' ],
                        file(params.modules_testdata_base_path + 'genomics/prokaryotes/escherichia_coli/genome/genome.fa', checkIfExists: true),
                    ],
                    [
                        [ id:'B. fragilis' ],
                        file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz', checkIfExists: true),
                    ],
                    [
                        [ id:'H. influenzae' ],
                        file(params.modules_testdata_base_path + 'genomics/prokaryotes/haemophilus_influenzae/genome/genome.fna.gz', checkIfExists: true),
                    ]
                )
✅ 1
j
What happens if just drop
Channel.of
and supply the list as is?
m
The issue turned out to be that one of the files couldn't be found. I didn't see that at first.
j
Oh haha that would make sense 😬