diff --git a/README.md b/README.md index 94529a1..2c6613b 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ Please refer to [DeltaNeTS+ manuscript](https://www.biorxiv.org/content/10.1101/788968v1) for more detailed information. ### DeltaNeTS+ installation -To install `DeltaNeTS+` directly from github repository, `devtools` R package is required. +To install `DeltaNeTS+` directly from github repository, `devtools`, `doSNOW`and `glmnet` R packages are required. -1. Install and load `devtools` package in R. -2. Install the package called `deltanetsPlus`, using `devtools::install_github("CABSEL/DeltaNeTSplus/deltanetsPlus")`. Your package will e inatalled in R library directory. +1. Install and load `devtools`, `doSNOW`and `glmnet` packages in R. +2. Install the package called `deltanetsPlus`, using `devtools::install_github("CABSEL/DeltaNeTSplus/deltanetsPlus")`. Your package will be installed in R library directory. 3. Load the package, using `library(deltanetsPlus)`, and now you're ready to use! diff --git a/deltanetsPlus/R/deltanetsPlus.R b/deltanetsPlus/R/deltanetsPlus.R index 5751c1f..b40b342 100644 --- a/deltanetsPlus/R/deltanetsPlus.R +++ b/deltanetsPlus/R/deltanetsPlus.R @@ -222,6 +222,8 @@ deltanetsPlus <- function(data, slope=NULL, grn=NULL, perturbation=c("group","in cl <- snow::makeCluster(numClusters,outfile='') # registerDoParallel(cl) registerDoSNOW(cl) + #export libraries to all workers + clusterCall(cl, function(x) .libPaths(x), .libPaths()) ## progress bar in parallel computing pb <- txtProgressBar(max=length(dgi), style=3)