The logic in the postvariatncalling subworkflow ki...
# sarek_dev
r
The logic in the postvariatncalling subworkflow kills me. can we talk this through next week? At the moment the subworkflow is pretty convoluted and I find it becomes quite unclear what vcfs are processed with what, there must be a more streamlined way to do this
🙏 1
👍 1
on this note @Famke Bäuerle: for valorciraptor is it important that the vcfs are filtered by PASS/QUAL etc or rather not?
m
do we want a meeting today?
r
I can't make it
Famke is traveling afaik
m
that's what I was expecting then
Perfect
Anything to talk about async on top of what you already mentionned?
r
Iwill start tackeling the filtering/union/optitype stuff now.
🙏 1
f
I think varlociraptor would rather have completely raw VCF files rather than filtered ones
I will be away next week (quick spain vacation) but I am happy to help with restructuring and second what you are saying Rike
r
let's see if we can grab 10-15 min today/tmrw to talk this through
I'd like to get started on this sooner rather than later
👍 1
THE PLAN
👍 1
I want to chat with DNGC if they need the aggregation if they can do UNION as well.
@Maxime Garcia what do you think
@Anders Sune Pedersen the concatenation was implemented for you originally. Is a union also acceptable?
m
Good for me
a
@Rike Hanssen: Oh, it been so long since I looked at that. I’d like to get back to working with you guys, but it is just not possible right now. I completely trust your sound decision on all things NF.
r
Alright I am going to tackle this today
m
You want a dev meeting, or you're all good?
r
generally good. but happy to have a quick chat on strategy in person.
are you free nowish?
m
Give me 5
m
r
m
check this out for the subworkflow tests:
r
please elaborate
m
Just to simplify your tests for the subworkflows
r
I could use some opinions here: https://github.com/nf-core/sarek/blob/5c2f7f0f1245efb172a176a7324e60831fa05c3d/subworkflows/local/post_variantcalling/main.nf the way I changed the logic it is going from annotate all raw files + postprocessed ones, to only annotate the final stage vcf (EITHER varloc OR normalzid/concatenate OR raw) reason being to reduce the number of output files + amount of data being processed. Does anyone have strong opinions on this?
m
Sounds like a smart idea to me
reducing the number of output files is always good
for me if people wants to re-annotate any other vcf files, they could do it easily enough with sarek
r
Pinging @Famke Bäuerle as well since this effects her outputs as well
anyways this is the reason the checksums don't match in the PR (for the most part. One other thing is of course sentieon, and some vcftools plot isns't generated for varlociraptor which I am investigating now)
m
@Kübra Narcı will this affect #variantbenchmarking?
k
I dont think it will, pipeline can run on both raw and annotated files. As long as variant call results per tool are there, it should be the same..
m
Perfect
We wouldn't want to break chaining of pipelines anywhere
❤️ 1
r
not enabled for the full size tests anyways
👍 1
ok something off with mutliqc https://github.com/nf-core/sarek/actions/runs/18942911211/job/54086220701?pr=2043 the renaming is due to new logic, but we are loosing some images: vcftools_tstv_by_qual.png I'll try to update multiqc as I have a bunch of warnings in the mulqitc logs on timing out. Also something is off with resuming when running:
Copy code
nextflow run . -profile test,docker --tools strelka,varlociraptor --input tests/csv/3.0/recalibrated_germline.csv  --outdir ./results --intervals https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/chr21/sequence/multi_intervals.bed --fasta https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/chr21/sequence/genome.fasta --fasta_fai https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai --step variant_calling -resume --varlociraptor_chunk_size 2
the ESTIMATEALIGNMENTPROPERTIES process doesn't cahce for reasons I have not yet understood:
Copy code
[db/9c76f2] NFCORE_SAREK:SAREK:POST_VARIANTCALLING:VCF_VARLOCIRAPTOR_GERMLINE:FILL_SCENARIO_FILE (sample1)                        [100%] 1 of 1, cached: 1 ✔
[e6/21a23b] NFCORE_SAREK:SAREK:POST_VARIANTCALLING:VCF_VARLOCIRAPTOR_GERMLINE:VARLOCIRAPTOR_ESTIMATEALIGNMENTPROPERTIES (sample1) [  0%] 0 of 1
[af/b975e8] NFCORE_SAREK:SAREK:POST_VARIANTCALLING:VCF_VARLOCIRAPTOR_GERMLINE:RBT_VCFSPLIT (sample1)                              [100%] 1 of 1, cached: 1 ✔
Alright I sorted out the lost images, this seems to be due to varlociraptor changing some fields. I refactored this to follow the metromap: variantcalling -> QC -> postprocessing. the resuming is still broken on varlocripator though and the tests run an hour or so on my machine 😞
i can't figure out why the resume is broken and I don't have any more time to investigate. It was broken before as well
ok I can't let it go. What's the deal with this process:
Copy code
meta_map = ch_cram.map { meta, _cram, _crai -> meta + [sex_string: (meta.sex == "XX" ? "female" : "male")] }

    FILL_SCENARIO_FILE(
        meta_map.combine(ch_scenario),
        [],
        meta_map,
    )
the metamap is specified twice as input, I don't see how we are ensuring these two stay in sync. It looks perfectly feasible for two different inputs to be combined here
https://github.com/nf-core/sarek/pull/2043 ready for review. I am still struggeling regenerating the snapshots for varlociraptor locally (due to the gatk container) and the resume for varlociraptor is still not working reliably, but I can't figure out why and am out of ideas. It's a pre-existing condition so maybe someone can pick this up in a separate PR
This is ready for review pending tests passing: https://github.com/nf-core/sarek/pull/2043 Note that snetieon will all fail cause it's from my branch
m
looking really good
r
thanks adressed your comments and will merge once the tests are through
m
good for me
Thanks