@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
• 0 views
•
link