View source: R/read_reference_bed.R
read_reference_bed | R Documentation |
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.
read_reference_bed(path, ...)
path |
A path to the .bed file |
... |
Further arguments used in gaston::read.bed.matrix |
A gaston::bed.matrix object with a Z-standardized genotype matrix
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.