Warning in bcftools when subsetting a VCF by variant ID
1
0
Entering edit mode
4 months ago
Mwangana • 0

I have successfully subset a VCF by variant ID after phasing and imputing using Beagle 5.5, however, I am getting the warning "[W::vcf_parse_info] INFO 'END' is not defined in the header, assuming Type=String" in the VCF.

How can I resolve this warning?

I ran the command below:

bcftools view -i'ID=@chr6_variantlist.txt' reheader_6_chrfixed_filtered_imputed.vcf.gz
bcftools VCF Beagle5.5 • 1.1k views
ADD COMMENT
3
Entering edit mode
4 months ago
bcftools view  reheader_6_chrfixed_filtered_imputed.vcf.gz |\
awk '/^#CHROM/ {printf("##INFO=<ID=END,Number=1,Type=Integer,Description=\"Stop position of the interval\">\n");} {print;}' |\
bcftools  view -i'ID=@chr6_variantlist.txt'
ADD COMMENT
0
Entering edit mode

@Pierre Lindenbaum, this works perfectly well as it prints to the screen correctly but the error returns when I redirect it to a file:

  bcftools view  reheader_6_chrfixed_filtered_imputed.vcf.gz |awk '/^#CHROM/ {printf("##INFO= \<ID=END,Number=1,Type=Integer,Description=\"Stop position of the interval\">\n");} {print;}' | \ bcftools  view -i'ID=@chr6_variantlist.txt' > reheader_6_chrfixed_filtered_imputed_var_hr.vcf \
[W::vcf_parse_info] INFO 'END' is not defined in the header, assuming Type=String
ADD REPLY
0
Entering edit mode

the message comes from the first bcftools.

verify by running gunzip -c instead of bcftools

gunzip -c  reheader_6_chrfixed_filtered_imputed.vcf.gz  | awk ...
ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 3813 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6