## summarizeSGP is Step 4 of 5 of abcSGP
Demonstration_SGP <- sgpData_LONG
Demonstration_SGP <- prepareSGP(Demonstration_SGP)
Demonstration_SGP <- analyzeSGP(Demonstration_SGP)
Demonstration_SGP <- combineSGP(Demonstration_SGP)
Demonstration_SGP <- summarizeSGP(Demonstration_SGP)
### Example uses of the parallel.config argument
## Windows users must use snow:
Demonstration_SGP <- summarizeSGP(Demonstration_SGP,
parallel.config=list(
BACKEND="SNOW", TYPE="SOCK",
WORKERS=list(SUMMARY=2))
## Windows users with R version >= 2.13 may prefer the parallel package:
# Note the number of workers is 8, and SOCK type cluster is used.
# This example is would be good for a single workstation with 8 cores.
. . .
parallel.config=list(
BACKEND="PARALLEL", TYPE="SOCK",
WORKERS=list(SUMMARY=2))
. . .
## FOREACH uses:
# doMC - only available on Linux or Mac OSX
. . .
parallel.config=list(
BACKEND="FOREACH", TYPE="doMC",
WORKERS=2)
. . .
# New doParallel package - only available with R 2.13 or newer
# Note the SOCK cluster is the only option made available at this time
# for use with SNOW.
. . .
parallel.config=list(
BACKEND="FOREACH", TYPE="doParallel",
WORKERS=list(SUMMARY=6))
. . .
## New parallel package - only available with R 2.13 or newer
# Note the number of workers is 50, and MPI is used,
# suggesting this example is for a HPC cluster usage.
. . .
parallel.config=list(
BACKEND="PARALLEL", TYPE="MPI"),
WORKERS=list(SUMMARY=50))
. . .
## Linux/Mac may use the multicore package:
# TYPE is not used with MULTICORE.
. . .
parallel.config=list(
BACKEND="MULTICORE",
WORKERS=4)
. . .
# NOTE: This list of parallel.config specifications is NOT exhaustive.
# See examples in analyzeSGP documentation for some others.
Run the code above in your browser using DataLab