From ebd76aa883aee349a0b3f75fa83da29419f287b9 Mon Sep 17 00:00:00 2001 From: Saori Sakaue Date: Tue, 13 Aug 2024 18:02:19 -0400 Subject: [PATCH] convert to numeric arguments in commandArgs --- Parallelized Bash Script/SCENT_parallelization.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parallelized Bash Script/SCENT_parallelization.R b/Parallelized Bash Script/SCENT_parallelization.R index 124d117..c49e57d 100644 --- a/Parallelized Bash Script/SCENT_parallelization.R +++ b/Parallelized Bash Script/SCENT_parallelization.R @@ -3,8 +3,8 @@ library(SCENT) ####### INPUTS #Obtain arguments: (from Cluster) -node = commandArgs(trailingOnly = T)[1] # JOB ARRAY number: node usage -cores = commandArgs(trailingOnly = T)[2] # numeric. Number of Cores +node = as.numeric(commandArgs(trailingOnly = T)[1]) # JOB ARRAY number: node usage +cores = as.numeric(commandArgs(trailingOnly = T)[2]) # numeric. Number of Cores SCENTobj_rds = commandArgs(trailingOnly = T)[3] # RDS object file type celltype = commandArgs(trailingOnly = T)[4] # character. CellType regr = commandArgs(trailingOnly = T)[5] # character. Regression Type