This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Remove duplicate lines in a vcf file

I have a vcf file that I created from 23andme raw data results.

In this vcf file, there are lines that have the exact same chromosome number and position, however they have a different rsID. Here is a screenshot:

Screenshot of what I have

They are causing errors in a program I am trying to run for PRS calculation. Should I remove them and how can I do that? If I remove them, which one do I keep?

I searched for similar questions online, but couldn't find anything that resembles my exact situation.

variants vcf

Sry I forgot to mark them.

1 answer

bcftools norm --remove-duplicates

If I remove them, which one do I keep?

you just have a different ID, so you don't really care...

Log in to answer this question.