Entering edit mode
3.5 years ago
Gregor Rot
▴
540
Dear all,
I am doing some work on filtering variants, using bcftools for now:
bcftools view -i '%QUAL>=20' calls.bcf
Why the %
at %QUAL
? Trying to figure out looking at manuals for bcftools expressions:
https://samtools.github.io/bcftools/howtos/variant-calling.html
https://samtools.github.io/bcftools/howtos/filtering.html
Thanks & Cheers,
Gregor
Thanks, this is great. Just to be sure: when you write INFO/ID and INFO/QUAL, you mean that in the 8th field (INFO field) where we can have several values separated by
;
we could have a value with name INFO or ID? (distinct from the 6th field QUAL and 3rd ID). Looking at VCF ref here: https://samtools.github.io/hts-specs/VCFv4.2.pdf