Maxime Garcia
10/06/2025, 3:02 PMFamke Bäuerle
10/06/2025, 4:56 PMFamke Bäuerle
10/06/2025, 4:57 PMFamke Bäuerle
10/06/2025, 4:57 PMThomas Danhorn
10/06/2025, 5:00 PMFamke Bäuerle
10/06/2025, 5:01 PMMaxime Garcia
10/06/2025, 5:02 PMThomas Danhorn
10/06/2025, 5:02 PMMaxime Garcia
10/06/2025, 6:18 PMThomas Danhorn
10/06/2025, 7:27 PMRike Hanssen
10/10/2025, 6:32 PMThomas Danhorn
10/10/2025, 7:14 PM--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.