Changing from "rs" to "chr_pos_ref_alt"
2
0
Entering edit mode
6 days ago
Karan • 0

I'm attempting to change my SNP ids (in my bim file) from "rs_________" to "chr_pos_ref_alt" but am having some trouble.

Can someone provide some guidance? What awk scripts could I use?

EDIT: basically trying to switch from "rs11260745" to "1_24088128_G_A"

plink • 235 views
ADD COMMENT
1
Entering edit mode
5 days ago
Ram 36k

Use bcftools annotate -I. Your requirement is the exact example given in the manual.

ADD COMMENT
0
Entering edit mode

perfect, thanks for linking the manual!

ADD REPLY
1
Entering edit mode
5 days ago

plink 2.0's --set-all-var-ids flag provides one way to do this.

ADD COMMENT
0
Entering edit mode

awesome, thank you!

ADD REPLY

Login before adding your answer.

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