powered by
bed.matrix
.bed
.rds
.bim
.fam
read.bed.matrix(basename, bed = paste(basename, ".bed", sep=""), fam = paste(basename, ".fam", sep=""), bim = paste(basename, ".bim", sep=""), rds = paste(basename, ".rds", sep=""), verbose = getOption("gaston.verbose",TRUE))
NULL
TRUE
rds = NULL
The .bed, .fam and .bim files follow the PLINK specifications (http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml#bed).
If the .bed file does not exist, and basename ends by ".bed", the function will try to generate a new basename by trimming the extension out. This allows to write read.bed.matrix("file.bed") instead of read.bed.matrix("file").
basename
".bed"
read.bed.matrix("file.bed")
read.bed.matrix("file")
write.bed.matrix
# Read RDS and bed files x <- read.bed.matrix( system.file("extdata", "LCT.bed", package="gaston") ) x
Run the code above in your browser using DataLab