# NOT RUN {
db = system.file("exdata", "seqsimm.db", package="Mega2R")
ENV = init_SKAT(db, verbose = FALSE, allMarkers = FALSE)
Mega2SKAT(ENV$phe[, 3] - 1 ~ 1, "D", gs=1:1)
# try this below instead if there is time
# DOSKAT is called internally to Mega2SKAT. init_SKAT and Mega2SKAT need to be
# called to set up the environment for DOSKAT to run. You should ignore DOSKAT
# and use Mega2SKAT instead
#
ENV$verbose = TRUE
applyFnToRanges(DOSKAT, ENV$refRanges[50:60, ], ENV$refIndices)
# }
Run the code above in your browser using DataLab