Removing duplicate varaints in PLINK
1
0
Entering edit mode
3.6 years ago
f-rasmussen ▴ 10

I have binary plink containing duplicates which I want to remove without removing all of the variants. I therefore use the flag --rm-dupas recommended by plinks website:

[https://www.cog-genomics.org/plink/2.0/filter#rm_dup ][1]

I paste in the command as such:

plink --bfile with_duplicates --rm-dup force-first --make-bed --out without_duplicates

However I get the error message:

Error: Unrecognized flag ('--rm-dup').
For more information, try 'plink --help [flag name]' or 'plink --help | more'.

I have tried to remove the file and mode from the flag, but with same results. The help page doesn't have an entry for this particular flag either. Does anyone know how to fix this issue?

Also, does the --rm-dup remove duplicates based on position or variant ID or both? It doesn't say from the webpage.

plink • 4.0k views
ADD COMMENT
1
Entering edit mode
3.6 years ago
lax ▴ 30

to my understanding this flag is for plink2. So the following should work after upgrading to plink2.

plink2 --bfile with_duplicates --rm-dup force-first --make-bed --out without_duplicates

ADD COMMENT

Login before adding your answer.

Traffic: 1618 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6