thanks Pierre for your answer, i ran your cammand and get an vcf file as output but when used bcftools stats i got this error.
Failed to open output.vcf: unknown file type
why bcftools can not regognize output as a vcf file? i need to output file for downstream analysis as vcf file
Would you please explain more what do you mean by duplicated variants? Do you observe two lines in your VCF file that are exactly the same?
yes i mean is what you say and i want to keep one of the duplicate variants and remove the rest. in fact i intend to remove variants that are same in scoffold id and pos and keep one of them.
Take 1000 Genome phase 3 data as the example:
Terrible, still have duplicates: bcftools norm