Hello,
I am trying to update rsids then chromosome # in a PLINK file
.bim file starts out looking like this:
23 23:2700157:G:A 0 2700157 A G
23 23:2700163:G:A 0 2700163 A G
23 23:2703633:A:G 0 2703633 G A
I make a update_rsid.txt file:
23:2700157:G:A X:2700157:G:A
23:2700163:G:A X:2700163:G:A
23:2703633:A:G X:2703633:A:G
run:
plink \
--bfile my_file \
--keep-allele-order \
--update-name update_rsid.txt \
--make-bed \
--out my_file_rsid_updated
updated bim file looks good now:
23 X:2700157:G:A 0 2700157 A G
23 X:2700163:G:A 0 2700163 A G
23 X:2703633:A:G 0 2703633 G A
I make update_chr.txt:
X:2700157:G:A X
X:2700163:G:A X
X:2703633:A:G X
then try to update chrs:
plink \
--bfile my_file_rsid_updated \
--keep-allele-order \
--update-chr update_chr.txt \
--make-bed \
--out my_file_chr_updated
plink spits out this:
--update-chr: 10728 values updated.
but if I open the bim file it looks like nothing happened:
23 X:2700157:G:A 0 2700157 A G
23 X:2700163:G:A 0 2700163 A G
23 X:2703633:A:G 0 2703633 G A
Am I implementing something wrong?
plink