Entering edit mode
3.8 years ago
User000
▴
710
Hello,
I would like to extract only some columns from my vcf files like this:
bcftools query --format '%CHROM\t%POS\t%ID\t%REF\t%ALT\t%HF\n' {my_files}.vcf > {out}.txt
My problem is for some vcf outputs (different variant calling tools) I have column named HF
for others AF
, is it possible to use regex or boolean to extract that columns using only one command line?
Example input and expected output would help others to understand the issue.
no
so I have to launch the same command line twice changing the HF to AF, right?
you can print both tags with
bcftools query --allow-undef-tags --format ...
this prints me only
.
and notAF
orHF
values