read.bed: File input: .bed

Description Usage Arguments Details Value Examples

View source: R/datahandling.R

Description

Reads in genotypes in .bed format with corresponding bim and fam files

Usage

1
read.bed(bed.prefix)

Arguments

bed.prefix

Path leading to the bed, bim, and fam files.

Details

Use plink with –make-bed

Value

Genotype matrix

Examples

1
2
3
4
# assuming you have PLINK format HapMap data from: http://pngu.mgh.harvard.edu/~purcell/plink/res.shtml
# run this in the unpacked folder
x = NULL
## Not run: x = read.bed("hapmap_r23a")

Bioconductor-mirror/lfa documentation built on June 1, 2017, 10:49 a.m.