Entering edit mode
3.5 years ago
geno89
▴
10
Hi I am trying to update my SNP ids to rsIDs by using --update-name command but getting the error of " Error: Duplicate ID 'var1'". Why is this happening and How can i remove this error?
plink --bfile b.ff --update-name ref.txt --make-bed --out test_updateIDs
PLINK v1.90b6.21 64-bit (19 Oct 2020) www.cog-genomics.org/plink/1.9/
(C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to test_updateIDs.log.
Options in effect:
--bfile b.ff
--make-bed
--out test_updateIDs
--update-name ref.txt
96310 MB RAM detected; reserving 48155 MB for main workspace.
Allocated 15236 MB successfully, after larger attempt(s) failed.
517563 variants loaded from .bim file.
1926 people (977 males, 949 females) loaded from .fam.
972 phenotype values loaded from .fam.
Error: Duplicate ID 'var1'.
Presumably because the ID 'var1' occurs multiple times in the .bim file.
And how can i remove this var1 from my .bim file
You don't want to remove it - you want to make sure each ID is unique. Personally I would load the
.bim
file into R and then edit the column to make the identifier unique. If you edit your original question (don't post it in the comments) to include the first 10 or so lines from the bim file, I will write an answer and show you how.