rtg vcffilter -i $file.vcf.gz -o out.vcf.gz --keep-expr "INFO.AF.split(',').some(function(af) {return af >= 0.1})"
Do I understand this command correctly, that it will split the AF in the INFO field and keep only the allele with >0.1? What about if both alleles in the multi-allelic record are >0.1
The output vcf still has multi-allelic records and rtg vcfeval still fails. I think this might be because the multi-allelic record AF is recorded for each sample.
Is there a way in rtg to split multi-allelic records?
I was expecting that since vcfeval decomposes the variants wouldn't have this issue, but it does. Could you please help me understand why decomposition does not take this into account?
Thank you.
Best,
Alexandra
I am trying to run vcfeval on a germline sample that has multi-allelic records.
I have attempted the following based on documentation:rtg vcffilter -i $file.vcf.gz -o out.vcf.gz --keep-expr "INFO.AF.split(',').some(function(af) {return af >= 0.1})"
Do I understand this command correctly, that it will split the AF in the INFO field and keep only the allele with >0.1? What about if both alleles in the multi-allelic record are >0.1
Evaluation too complex (38 unresolved paths, 10000001 iterations) at reference region chr1:XXX-XXX. Variants in this region will not be included in results.
Error: Invalid numeric value "0.667,0.333" in "AF" for VCF record XXX
rtg vcfeval -c $vcf -b $vcf --no-gzip --decompose -t $ref -o $out --sample $s1,$s1 --vcf-score-field AF