From a7488bb41268ab65930f2883bd9023fbda957684 Mon Sep 17 00:00:00 2001 From: panagiotisc <47575601+panagiotisc@users.noreply.github.com> Date: Wed, 17 Feb 2021 18:10:05 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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! From d3339efce82d677cb5b1a76da06e9c51acc8fa09 Mon Sep 17 00:00:00 2001 From: panagiotisc <47575601+panagiotisc@users.noreply.github.com> Date: Wed, 17 Feb 2021 18:40:54 -0500 Subject: [PATCH 2/2] Update deltanetsPlus.R --- deltanetsPlus/R/deltanetsPlus.R | 2 ++ 1 file changed, 2 insertions(+) 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)