vcftools is really good at extracting some information from vcf files.
However, I have some missing information in the output file when I try this:
vcftools --vcf my.vcf --get-INFO AF --out my.out.vcf
my.out
should keep "ID" field (rsID) as in the original my.vcf
, but it doesn't.
Is there any vcftools option or other ways to keep ID in the result vcf?
I've consulted many documentations but no one can answer it.
Thanks in advance
Hi Jorge,
I am having the same problem at the moment and have tried your solution but for some reason I was unable to open the output file from the bcftools. It just came up empty. Any ideas as to why this may be so? Thanks in advance.
the output can only be empty if the input file or the command is wrong. check that there aren't any errors in the command line (such as "no such tag defined" or "fail to open file"), and that the input file is a valid vcf file.
Great, thanks Jorge!