read_reference_bed: Read a PLINK bed file for reference data

Description Usage Arguments Value Examples

View source: R/read_reference_bed.R

Description

Create a bed.matrix object from a .bed file. The function expects .fam and .bim files under the same directory. See gaston::read.bed.matrix for more details.

Usage

1

Arguments

path

A path to the .bed file

...

Further arguments used in gaston::read.bed.matrix

Value

A gaston::bed.matrix object with a Z-standardized genotype matrix

Examples

1
2
3
4
5
## Get a path to the example .bed file
bfile <- system.file("extdata", "example.bed", package = "snpsettest")

## Read a .bed file
x <- read_reference_bed(path = bfile)

snpsettest documentation built on March 16, 2021, 9:07 a.m.