Skip to content

Making a series of similar, but modified .r files for simulation experiment - suggested method(s)?

3 messages · Laura S, Glen A Sargeant, Lars Westerberg

1 day later
#
Laura,
Since you are submitting to a Linux cluster you probably use the SGE 
queuing system. If so, there is a trick you can use if submitting 
several tasks in one job (i.e. array job, see info on flag "-t": qsub 
... -t 1-20:1). A colleague of mine have written a rudimentary how-to 
for our project group: http://tinyurl.com/35u2fxf

In the shell script that you submit to the cluster, you can use 
$SGE_TASK_ID as argument when calling your main R-function. This 
parameter will be one of values that is defined by the "-t"-flag. You 
can use the task-id directly to modify your for-loop, or you use it to 
specify a row in a look-up table holding the values you are after.

HTH
/Lars
Laura S wrote: