Fixing order
This commit is contained in:
parent
e71c2f9433
commit
c2f1bd0cce
1 changed files with 11 additions and 3 deletions
|
|
@ -7,8 +7,8 @@
|
|||
#$ -q short.q
|
||||
#$ -pe thread 64
|
||||
#$ -M louis.lacoste+migale@agroparistech.fr
|
||||
#$ -o logs/$JOB_NAME.$TASK_ID.out
|
||||
#$ -e logs/$JOB_NAME.$TASK_ID.err
|
||||
#$ -o logs/$JOB_NAME.$TASK_ID
|
||||
#$ -e logs/$JOB_NAME.$TASK_ID
|
||||
|
||||
# Creating log directory if it doesn't exists
|
||||
|
||||
|
|
@ -16,7 +16,15 @@
|
|||
STRUCTA=("nested" "modular")
|
||||
SAMPLINGA=("uniform" "row" "col" "rowcol")
|
||||
|
||||
STRUCT=${STRUCTA[$(($(($((SGE_TASK_ID - 1)) + $((SGE_TASK_ID - 1)) / 4)) % 2))]}
|
||||
SAMPLING=${SAMPLINGA[$(($((SGE_TASK_ID - 1)) % 4))]}
|
||||
|
||||
BASE_DIR="/home/llacoste/work/mia-stage-2024/"
|
||||
LOG_DIR=$(echo "$BASE_DIR/logs")
|
||||
|
||||
if [ ! -d "$LOG_DIR" ]; then
|
||||
mkdir -p $LOG_DIR
|
||||
fi
|
||||
|
||||
# Finding simulations directory
|
||||
SIMULATIONS_DIR=$(echo "$BASE_DIR/code/simulations")
|
||||
|
|
@ -25,4 +33,4 @@ echo $SIMULATIONS_DIR
|
|||
|
||||
# Parsing sge array id
|
||||
|
||||
Rscript "${SIMULATIONS_DIR}/simulations_NA_robustness.R" --struct ${STRUCTA[$(($((SGE_TASK_ID - 1)) % 2))]} --sampling ${SAMPLINGA[$(($((SGE_TASK_ID - 1)) % 4))]}
|
||||
Rscript "${SIMULATIONS_DIR}/simulations_NA_robustness.R" --struct $STRUCT --sampling $SAMPLING
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue