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.

  1. setup input file of arguments, e.g. args.txt:

    uvm acc 
  2. run qsub in while loop submit script each argument:

    while read arg      echo "rscript script.r ${arg}" | qsub <options> done <args.txt 

    above uses echo pass code run qsub.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -