Remove prefix chrom:position before rsIDs
1
2
Entering edit mode
7.7 years ago
ISB ▴ 30

Hi,

I have plink files with SNPs annotated like "exm" or with chromosomal position followed by the rsID,

6:33960611:rs2495990    0       33960611        A       G    
6:33962404:rs2130410    0       33962404        A       C       

Does anyone know how I can change the bim file so that it only contains the rsID?

Any help is appreciated!

plink regex bim snp • 2.4k views
ADD COMMENT
0
Entering edit mode

Just wondering how did you solve this problem?

ADD REPLY
1
Entering edit mode
3.5 years ago

Presumably cut -f 3 -d ":" would work. It's just splitting each line by : and keeping the resulting 3rd column.

ADD COMMENT
0
Entering edit mode

just leaving the result of that command here for illustration:

rs2495990    0       33960611        A       G
rs2130410    0       33962404        A       C
ADD REPLY

Login before adding your answer.

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