we need to update CNVKIT :melting_face:
# sarek_dev
m
we need to update CNVKIT 🫠
f
issue and then next release!!!
I am not allowing anymore things into this release
you shall not pass
😆 2
👌 1
t
If you want to actually make it use the dup-marked CRAMs, I agree -- this will take time. I looked at the code, and it would involve some fundamental design decisions, since the whole variant calling workflow only knows one sent of BAMs/CRAMs (the recalibrated ones, by default). If it were trivial, I would have submitted a PR long ago.
👍 1
➕ 1
f
(We could at least start adding your suggestion to the docs, I think someone was onto doing that so I'll keep an eye out)
👍 1
🙏 1
m
Join us on a dev meeting @Thomas Danhorn please
t
OK, I can try -- when is the next one?
m
I won't be there 😭
t
Just let me know when is good for you guys.
r
this question has come up before: can we allow a mix and match of dup mark and bqsr processed reads in variantcalling or do they all need to come from the same source. It's fundamentally difficult. I have a few thoughts on this: a) I am hearing from more and more people that BQSR is a waste of time and money -> should we make this step opt-in instead of opt-out ? b) we keep talking about breaking up sarek and moving it into separate pipelines, then creating a meta pipeline. I doubt this will make this easier, but maybe? I am not holding my breath. c) In this lane we should and could emphasize more that preprocessing and variantcalling can be split out if necessary, if you need to mix and match tools with different downstream requirements, grab the bam files you need and start from step variant calling. d) I have chatted with the cnvkit people about this and they recommended some settings: we should check that these are properly applied: https://github.com/etal/cnvkit/issues/836#issuecomment-1679113662 e) whatever we do the implementation overhead is pretty big. There are dirty solution we could start with though that are reasonably simple, if we are sure that noone ever ever ever wants to process anything but duplicate marked files with CNVkit and basically taking away the choice for the user.
t
My 2 cents: a) I honestly don't know. The whole quality recalibration thing has become even weirder with the newer sequencers just having 4-5 quality levels, instead of 35-40. (Does BQSR take that into account? Does it affect how well it is working?) But the most impactful effect of the BQSR step, at least for WES (and that's the issue with CNVkit) is that all reads not falling into the
--intervals
get filtered out. This may focus and speed up the analysis, and you can argue it makes sense, because for non-target regions any reads would be there more or less by random chance, so the typical assumptions may not apply. On the other hand, you are deliberately ignoring things off-target you might have otherwise detected. b) Not sure much will change. The "building blocks" are subworkflows and modules, and you are already using those. Maybe some workflow could be modularized further, but that's about it. Then you build either a small, focused pipeline from the blocks, or a large, comprehensive one (like sarek). I do like that I can run a lot of things (from FASTQs to various callers) with a single command in sarek. If you don't modularize, you have no code reuse and duplicate a lot, so that's obviously bad. But if you do it too much, you'll get huge overhead from coordinating the communication between all the different parts. (See the debate between Linus Torvalds and Andrew Tanenbaum about microkernel vs monolithic architecture.) c) Yes, I've been doing that with CNVkit to use the dupmarked CRAMs. The disadvantage is that it requires a separate run, and there may be some duplication in QC reports, etc. But I really appreciate that I can do that in sarek and am not forced to restart from scratch or do do things "manually". d) Agreed. Eric echoes my concern about using WES with BQSR files. e) The BQSR itself does nothing for CNVkit -- it cares about copy number of regions (based on read coverage), not if some individual base was called correctly (I doubt it looks at base quality at all). So the question becomes, could there be a scenario (amplicons?) where is it is (much) better to have a file with only on-target reads? (This is applicable for WGS, and I'd say the answer is "no" for WES.) If the answer is always "no"/NA, you can hard-code the use of dup-marked CRAMs. Maybe ask Eric if it makes a difference which CRAMs you use for amplicons (if you proved the targets BED, etc.). Even if there were some weird corner case, where another type of CRAM is better, the user has that option via
--step variant_calling
, so hard-coding dupmarked is definitely not worse and likely better than the current hard-coding of BQSR files.