Can I get a second opinion?
# sarek_dev
m
Can I get a second opinion?
j
This PR, and mostly this one, undid some changes I made previously in this PR. My PR was done to fix issues when running the workflow on a cluster using the scratch directory. Globbing *.bam or *.cram leads to duplication of files when using scratch which is a big issue for one of my pipelines. You can see my PR and this issue for more details on why the change was needed. This reversion will cause space issues for Sarek users who use scratch directories.
I think @Simon Pearce’s suggestion of using task.ext.suffix would solve the issue here.
m
oh yeah, sorry about that
I forgot about this issue
Thanks for the reminder John
I'll make sure to fix this upstream ASAP
j
Thanks Maxime!
m
Anytime
f
suffix is not allowed yet, right?
I'd say it's OK
f
Yeah I agree, I just thought it might be nice to decide and document this somewhere then 🙂
m
@Simon Pearce I made this one for you
yeah so the main issue with the bai file emission is that, somehow gatk4/applybqsr and gatk4spark/applybqsr don't have the exact same logic. So I'd rather keep the module syntax and logic as similar as possible to keep it easy to update
👍 1
and by same logic I mean one emit prefix.suffix.bai, even when suffix is bam
but I never managed to emit a crai file in either
and when suffix is bam, one emit prefix.bai, while the other emit prefix.bam.bai
🥲 1
address the rest of the comments
ok, so where are we with this one https://github.com/nf-core/modules/pull/8947?
📝 1
Thanks @Simon Pearce
🙌 1
j
Awesome, looks great! Thanks for hitting both applyBQSRs as well! I think these are the egregious examples for storage ballooning IMO because of how easily they can be scatter/gathered for speed. There are a few other modules with the same issue. I have some more time in the upcoming week or two, I plan on hitting some of these modules to fix them.
🙏 1