Question: how to capture vcf's INFO field with bcftools
2.4 years ago by
genya35 • 20
genya35 • 20 wrote:
I'm trying to print the content of a vcf file but having problem with capturing the 'INFO' column.
Here is the code.
my $cmd2 = `bcftools query $vcf_indexed -f '%CHROM\t%POS\t%REF\t%ALT\t%INFO/TAG[\t%SAMPLE=%AD]\n' --samples '$sample'`;print $cmd2;
I get "Error: no such tag defined in the VCF header: INFO/TAG"
ADD COMMENT • link •