This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Remove Duplicate Individuals From Plink Ped File Using Plink

I have a plink ped file. I wanted to remove duplicate individuals in ped file using PLINK.

Is there an option in PLINK to do this? If not, is there any other tool/option to do this?

Thank You

plink genotype gwas ped

Hi zx8754, I am trying to remove ID patients from my data and I am using the original PED file for doing that. I create a .txt file with the number of ID family and ID patients that I want to remove put in two columns, but it still doesn't work. The analysis seems to go until the end of the process (creating temporary files) when appears the message saying: Error: duplicates ID.

My command is: $ ./plink --file name --remove IDlist.txt --out subset2 --make-bed

And my IDlist.txt is:

1 2204
2 1146

So I know I have few duplicates but I don't understand why the presence of duplicates does not allow the removing process.

1 answer

From plink manual:

The IDs are alphanumeric: the combination of family and individual ID should uniquely identify a person

How are you defining your duplicates?

I suggest you run IBS/IBD to identify duplicates, then remove duplicates on missingness (i.e.: keep individuals with most SNPs).

Thank You. Duplicates are when the lab person genotyped a sample, he or she might've pipetted the same sample twice..

So , same sample with same genotypes are repeating twice in .ped file ( The ID's may or may not be the same ).

Hope it makes sense.

Log in to answer this question.