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")

lfa documentation built on Nov. 8, 2020, 7:30 p.m.