Louis Le Nézet
10/19/2024, 10:43 AMtuple val(meta), path("*.{csi,tbi}") , emit: index, optional: true
I would also use as a tuple the fasta with its index in input:
tuple val(meta2), path(fasta), path(fai)
I would also add the missing input files in some of the modules: rename_chr in bcftools annotate, bai in samtools depth, ...
Should I create a PR for all modules together or separately ?Louis Le Nézet
10/22/2024, 9:57 AMRike Hanssen
10/22/2024, 10:15 AMLouis Le Nézet
10/22/2024, 10:17 AMMatthias De Smet
10/22/2024, 10:20 AMRike Hanssen
10/22/2024, 10:21 AMMatthias De Smet
10/22/2024, 10:21 AMLouis Le Nézet
10/22/2024, 10:24 AMMatthias De Smet
10/22/2024, 10:25 AM{tbi,csi} output 😉Matthias De Smet
10/22/2024, 10:25 AMfasta,faiRike Hanssen
10/22/2024, 10:26 AMmultiMap solve this issue?Louis Le Nézet
10/22/2024, 10:28 AM{tbi,csi} was that when joining afterwards the file with its index it would be easier and also if the user change from csi to tbi it would still give the good file with its index.Matthias De Smet
10/22/2024, 10:30 AMmultiMap solve this issue?
Contrary to popular beliefs, it doesn’t. You can still get mixed up channelsLouis Le Nézet
10/22/2024, 10:31 AMmultiMap how would you use it to join independently if a csi or tbi is produced with separate channels ?
BCFTOOLS_VIEW(my_input)
BCFTOOLS_VIEW.out.vcf
.join(BCFTOOLS_VIEW.out.tbi
.mix(BCFTOOLS_VIEW.out.csi)
)Matthias De Smet
10/22/2024, 10:32 AMLouis Le Nézet
10/22/2024, 10:33 AMRike Hanssen
10/22/2024, 10:34 AMMatthias De Smet
10/22/2024, 10:35 AMok, I have not trusted it so far 😄 sure in that case fasta and fai together make senseThe only way to truly avoid mixing up channels is by having everything in one tuple, which means modifying all the nf-core modules that use reference data
Matthias De Smet
10/22/2024, 10:36 AMLouis Le Nézet
10/22/2024, 10:37 AMJames Fellows Yates
10/22/2024, 10:38 AMContrary to popular beliefs, it doesn’t. You can still get mixed up channels (edited)WHAT?!
James Fellows Yates
10/22/2024, 10:38 AMNicolas Vannieuwkerke
10/22/2024, 10:38 AMhttps://github.com/nf-core/modules/blob/master/subworkflows/nf-core/bam_sort_stats_samtools/main.nf#L24-L35Doesn't this create bottlenecks? I personally prefer to have
csi and tbi in the same channel for the ease of use (but not a #hill-to-die-on )Matthias De Smet
10/22/2024, 10:40 AMMatthias De Smet
10/22/2024, 10:42 AMJames Fellows Yates
10/22/2024, 10:42 AMNicolas Vannieuwkerke
10/22/2024, 10:45 AMremainder means that there is a posibility of bottlenecks. In this case, if only bai is created for example, the process will not find any csi files thus preventing SAMTOOLS_INDEX to have those as output. This will make the pipeline wait until all `SAMTOOLS_INDEX`processes have been run before resolving the last .joinNicolas Vannieuwkerke
10/22/2024, 10:46 AM.mix the index channels before the .join and join without remainderJames Fellows Yates
10/22/2024, 10:46 AMMatthias De Smet
10/22/2024, 10:53 AMAdam Talbot
10/22/2024, 10:56 AMMatthias De Smet
10/22/2024, 10:57 AMNicolas Vannieuwkerke
10/22/2024, 10:57 AMindex output channels if they are separated anyways 😛Louis Le Nézet
10/22/2024, 10:57 AMMatthias De Smet
10/22/2024, 10:58 AMIgor Trujnara
10/22/2024, 11:05 AMAdam Talbot
10/22/2024, 11:15 AMJames Fellows Yates
10/22/2024, 11:15 AMJames Fellows Yates
10/22/2024, 11:15 AMNicolas Vannieuwkerke
10/22/2024, 11:17 AMMatthias De Smet
10/22/2024, 11:18 AMMatthias De Smet
10/22/2024, 11:18 AMJames Fellows Yates
10/22/2024, 11:18 AMJames Fellows Yates
10/22/2024, 11:19 AMMatthias De Smet
10/22/2024, 11:19 AMJames Fellows Yates
10/22/2024, 11:19 AMJames Fellows Yates
10/22/2024, 11:20 AMJames Fellows Yates
10/22/2024, 11:20 AMMatthias De Smet
10/22/2024, 11:20 AMGeraldine Van der Auwera
10/22/2024, 12:27 PMMaxime Garcia
10/22/2024, 12:28 PMSimon Pearce
10/22/2024, 12:40 PMBen Sherman
10/22/2024, 1:46 PM