Mega2ENVGenABEL | R Documentation |
create a gwaa.data-class object from the data frames in a Mega2 environment. This
function is a front end that eventually calls a C++ Rcpp function that reads
the genotype data in Mega2 compressed format and converts it to the GenABEL
compressed format. The results of Mega2ENVGenABEL
are/should be the same
as Mega2GenABEL
, but the calculation is much faster, typically a factor of 10 to 20.
Mega2ENVGenABEL(
markers = NULL,
force = TRUE,
makemap = FALSE,
sort = TRUE,
envir = ENV
)
markers |
data frame of markers to be processed |
force |
pass value to gwaa conversion function |
makemap |
pass value to gwaa conversion function |
sort |
pass value to gwaa conversion function |
envir |
'environment' containing SQLite database and other globals |
gwaa.data-class object created from Mega2R database
## Not run:
require("GenABEL")
db = system.file("exdata", "seqsimm.db", package="Mega2R")
ENV = read.Mega2DB(db)
gwaa = Mega2ENVGenABEL(markers=ENV$markers[1:10,])
str(gwaa)
head(summary(gwaa))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.