Commit 3c7178ad authored by Jefferson F. Paril's avatar Jefferson F. Paril 😁

making the R analysis scripts more generic

parent 290062f2
......@@ -25,8 +25,12 @@ library(glmnet)
library(lme4)
library(ROCR)
SRC_DIR = dirname(sub("--file=", "", args[grep("--file=", args)]))
print(SRC_DIR)
source(paste0(SRC_DIR, "/quantitative_resistance.r"))
if (SRC_DIR == ""){
source("quantitative_resistance.r")
} else {
paste0(SRC_DIR, "/quantitative_resistance.r")
}
########################################################################
###################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment