r - How To Run Different, Multiple Rscripts on SGE Cluster -
i trying run different rscripts on sge cluster, each rscript changes 1 variable (e.g. cancer <- "uvm" or "acc", etc.).
i have attempted 2 ways: either run single rscript gets command line arguments 30 different cancer names
or
run each rscript (i.e. uvm.r, acc.r, etc.)
either way, having alot of difficulty figuring out how submit these jobs can run either 1 rscript 30 times different argument each time or run multiple rscripts no command line arguments.
you can use while loop in bash this.
setup input file of arguments, e.g.
args.txt
:uvm acc
run
qsub
inwhile
loop submit script each argument:while read arg echo "rscript script.r ${arg}" | qsub <options> done <args.txt
above uses
echo
pass code runqsub
.
Comments
Post a Comment