Question: how to capture vcf's INFO field with bcftools
18 months ago by
genya35 • 10
genya35 • 10 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 •