Matthias De Smet
12/10/2024, 4:46 AM[meta, bam] of which I want to gather and join the elements by meta.samplename . The catch is the channel elements can have a different amount of chuncks per meta.samplename. I’m looking for a non blocking way to count all the elements in channel per meta.samplename so I can make a groupKey
Current code is in https://github.com/nf-cmgg/preprocessing/blob/dev/subworkflows/local/fastq_to_aligned_cram/main.nf#L68-L98.
Here I first try to join on the amount of scattered meta.chunks and then on the amount of replicates in meta.countMatthias De Smet
12/10/2024, 4:48 AMMaxime Garcia
12/10/2024, 8:48 AMMatthias De Smet
12/10/2024, 8:53 AMMatthias De Smet
12/10/2024, 8:54 AMNicolas Vannieuwkerke
12/10/2024, 8:55 AMMaxime Garcia
12/10/2024, 9:17 AMMaxime Garcia
12/10/2024, 9:35 AMMaxime Garcia
12/10/2024, 9:37 AMMaxime Garcia
12/10/2024, 9:37 AMNicolas Vannieuwkerke
12/10/2024, 9:45 AMMaxime Garcia
12/10/2024, 9:45 AMNicolas Vannieuwkerke
12/10/2024, 9:47 AMNicolas Vannieuwkerke
12/10/2024, 9:47 AMMaxime Garcia
12/10/2024, 9:47 AMMatthias De Smet
12/10/2024, 10:22 AMWe’re prepping a PR, but I’ll ping the supreme sorceress of the groupKey magic once we’re doneI’m still curious what you had in store though 😉