How to change variant IDs in plink files?
1
4
Entering edit mode
3.7 years ago
kraincimages ▴ 40

Hi all

Question about changing IDs... I have two plink files that I need to merge but they have different ID formats, one has chr_pos_ref_alt and one has chr_pos.

I would like to change chr_pos_ref_alt into chr_pos but I am struggling to find a way to do this, does anyone know of a way to do this?

Thanks!

plink gnomad ID • 6.4k views
ADD COMMENT
6
Entering edit mode
3.7 years ago

The simplest way to do this is to use plink 2.0's --set-all-var-ids flag:

plink2 --bfile ... --set-all-var-ids @_# --make-bed ...

This is also pretty easy to do with a shell script operating on the .bim file.

ADD COMMENT

Login before adding your answer.

Traffic: 2473 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