How to open the genotype information in a bed file in R or Ubuntu
1
0
Entering edit mode
2.2 years ago
Phylicia ▴ 10

My question is that how could I open a bed file and see the individual genotype?

I searched the two posts previously, but they did not work.

The error report in R is here.

enter image description here

I also tried using Plink. But it says the column of map file is not right. So I rename the columns in map file, but it does not work, either.

enter image description here

Could you give me some suggestions? Thanks a lot!

ubuntu bed genotype R • 1.5k views
ADD COMMENT
2
Entering edit mode
2.2 years ago
Sam ★ 4.7k

PLINK bed files are binary, and it cannot be read directly into R using read.table. You can use specific packages like bigsnpr. As for why your PLINK code does not work, you should use --bfile instead of --file as your files are already in the bed bim fam format, instead of the ped map format.

ADD COMMENT
0
Entering edit mode

Thanks a lot for your kind help, Sam.

ADD REPLY

Login before adding your answer.

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