]> git.donarmstrong.com Git - rsem.git/blobdiff - EBSeq/install
Added support for DE analysis on multiple conditions via running EBSeq
[rsem.git] / EBSeq / install
diff --git a/EBSeq/install b/EBSeq/install
new file mode 100755 (executable)
index 0000000..2438adb
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/env Rscript
+
+result <- suppressWarnings(tryCatch({
+                 library("EBSeq", lib.loc = ".")
+       }, error = function(err) {
+            tryCatch({
+               source("http://www.bioconductor.org/biocLite.R") 
+               biocLite("EBSeq", lib = ".")
+               library("EBSeq", lib.loc = ".")
+               }, error = function(err) {
+                    tryCatch({
+                        cat("Failed to install the latest version of EBSeq from Bioconductor! Try to install EBSeq v1.1.5 locally instead.\n")
+                        install.packages(c("blockmodeling_0.1.8.tar.gz", "EBSeq_1.1.5.tar.gz"), lib = ".", repos = NULL)
+                        library("EBSeq", lib.loc = ".") 
+                        }, error = function(err) { cat("Failed to install EBSeq v1.1.5 locally!\n") })
+                   })
+       }))
+
+