readPlinkMendel | R Documentation |
Read output files from the PLINK software used with the --mendel
option.
For potentially large files ("lmendel" and "mendel"), the fread
function from the data.table package is used as it is faster than read.table
.
readPlinkMendel(prefix, suffix = "", verbose = 1)
prefix |
prefix of the file to read (e.g. |
suffix |
suffix of the file to read
|
verbose |
verbosity level (0/1) |
data frame
Timothee Flutre
## Not run: ## assuming properly-formatted data, launch PLINK via a system call
cmd <- "plink --mendel --bed input.bed --bim input.bim --fam input.fam --out output"
system(cmd)
pl.mend <- readPlinkMendel(prefix="output", suffix="mendel")
str(pl.mend)
pl.imend <- readPlinkMendel(prefix="output", suffix="imendel")
head(pl.imend[order(pl.imend$N, decreasing=TRUE),])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.