Entering edit mode
3.6 years ago
salman_96
▴
70
Hi
I am trying to convert snp coordinates to rsIDs by using the flag --update-name
, I am not sure if I am using it correctly, my command is:
plink1.9 --bfile files --update-name snps_coordinates_rs_IDs [1] [2] --out Test_update_name
I am using [1] [2] to dedicate columns. The snp_coordinate file looks like this. The first column has coordinates the second has rsIDs
1:48899:G:A rs974664996
1:114531:G:C rs918310516
1:133360:T:C rs974682326
1:541281:GGGCCAACCACAGGACA:G rs752188509
1:564782:T:C rs879089824
1:636747:C:T rs974667799
My .bim file has coordinates which I want to convert to rsIDs. I am getting this output
Error: Invalid --update-name column number.
Am I missing column names Please assist
Hi I have done that but my .bim file has coordinates instead of rsIDs I was expecting rsIDs
The snp_coorinates file look like this
The files.bim file looks like this
The generated .bim file is also similar to previous .bim file, I was expecting rs IDs but looks like this
Please reread the second half of my answer.
Hi when I do not add 1 and 2 in the plink command I get results but the bim in results have same coordinates instead I was expecting rsIDs. I have edited my previous comment too (the rsIDs and coordinate file has columns inverted now)
When I use --update-name 2 1 I get error Failed to open 2 when I use --update-name 1 2 it says Failed to open 1
Why did you remove the filename from your --update-name command?
Hi, I was able to solve this issue Thank you for help.
I have a question. Should snps_coordinates_rs_IDs file only have two columns or we can use a reference file of more than two columns and specify only the column of our interest??
Please ask a separate new question.
https://www.biostars.org/new/post/