This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to deal with snps with different name but same bp pos in plink map file?

dear everyone,

I'm handling a plink file and preparing to use SHAPEIT to do phasing.

But the software come out with an ERROR: duplicate site pos=1263163, and after grepping the pos in map file, I found out that:

2     exm169593 0 1263163
2     rs140313765 0 1263163

after checking, I also found that there are many snps with the same condition. so I want to remove the exm one from the map file, but I have no idea how to deal with it.

Please give me some suggestions and thanks for your kindly help.

henry :D

snp shapeit

3 answers

Use the --exclude-snp option to remove the duplicated snps from the analysis.

What program generated this error? I'd expect PLINK and SHAPEIT to have no problem with this; it's common in e.g. 1000 Genomes data.

I believe he used SHAPEIT, I get the same error from an gen-file I'm trying to phase.

One work-around I think may work is converting it to a ped/map file using gtools and then converting this to a bed-file using plink and finally phase that bed-file using SHAPEIT.

I have not tried this personally, but will in a moment.

EDIT: I tried it, and my thought that it would clean/merge did not work out. I get the same error. If the number of sites are negligible - delete one of them?

Log in to answer this question.