readIBDs | R Documentation |
Reads IBD probabilities from a plain text, tab-delimited .txt or .ibd file.
Information about the file format can be found in the vignette (
vignette("IBDFileFormat", package = "statgenIBD")
). A data.frame with
the map must be specified as well.
readIBDs(infile, map)
infile |
A character string specifying the path of the input file. Compressed files with extension ".gz" or ".bz2" are supported as well. |
map |
A data.frame with columns |
An object of class IBDprob
.
## Read map for Steptoe Morex.
SxMmap <- read.delim(system.file("extdata/SxM", "SxM_map.txt",
package = "statgenIBD"), header = FALSE)
rownames(SxMmap) <- SxMmap$V1
SxMmap <- SxMmap[, -1]
colnames(SxMmap) <- c("chr", "pos")
## Read IBD probabilities for Steptoe Morex.
SxMIBD <- readIBDs(system.file("extdata/SxM", "SxM_IBDs.txt",
package = "statgenIBD"),
map = SxMmap)
## Print summary.
summary(SxMIBD)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.