Fix RScript input

This commit is contained in:
2024-08-04 23:01:10 -04:00
parent 0715c2b150
commit 4059cc965f
7 changed files with 21 additions and 23 deletions

View File

@@ -9,25 +9,25 @@ library(sos)
args=commandArgs(TRUE)
if (length(args) > 1) {
if (length(args) >= 1) {
finalTable <- args[1]
} else {
finalTable <- "REMcRdy_lm_only.csv-finalTable.csv" # for legacy workflow
}
if (length(args) > 2) {
if (length(args) >= 2) {
shiftFile <- args[2]
} else {
shiftFile <- "Shift_only.csv" # for legacy workflow
}
if (length(args) > 3) {
if (length(args) >= 3) {
studyInfo <- args[3]
} else {
studyInfo <- "../Code/StudyInfo.csv" # for legacy workflow
}
if (length(args) > 4) {
if (length(args) >= 4) {
output <- args[4]
} else {
output<- "REMcHeatmaps/REMcWithShift.csv" # for legacy workflow