Matthias De Smet
02/11/2026, 12:30 PMchannel.fromPath("directory/*.bed") I get a queue channel with all the bed files.
What’s the best way to get a value channel containing an array of bed files? I thought collect was the way to go, but that doesn’t work.Matthias De Smet
02/11/2026, 12:33 PMArthur
02/11/2026, 12:42 PMMatthias De Smet
02/11/2026, 12:43 PMMatthias De Smet
02/11/2026, 12:43 PMchannel.value([bed1,bed2,...])Arthur
02/11/2026, 12:43 PMArthur
02/11/2026, 12:44 PMtoList or is that operator deprecated now?Matthias De Smet
02/11/2026, 12:44 PMMatthias De Smet
02/11/2026, 12:45 PMcombine with another channel of [bam,bai] so I get [bam,bai,[bed1,bed2,...]]Arthur
02/11/2026, 12:45 PMMatthias De Smet
02/11/2026, 12:45 PM[bam,bai,bed1,bed2,...]Arthur
02/11/2026, 12:47 PMArthur
02/11/2026, 12:48 PM.collect().map{ files -> [ files ] }Matthias De Smet
02/11/2026, 12:49 PMMatthias De Smet
02/11/2026, 12:54 PMmap seems to have done the trick!
Thanks for the duck!