diff --git a/sge_scripts/increase_size.sh b/sge_scripts/increase_size.sh new file mode 100644 index 0000000..3ab291a --- /dev/null +++ b/sge_scripts/increase_size.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +#$ -V +#$ -cwd +#$ -N increasing_size +#$ -m besa +#$ -q short.q +#$ -t 1-25 +#$ -pe thread 64 +#$ -M louis.lacoste+migale@agroparistech.fr +#$ -o logs/$JOB_NAME +#$ -e logs/$JOB_NAME + +# Creating log directory if it doesn't exists +BASE_DIR="/home/$USER/work/human-microbiome-compendium" +LOG_DIR=$(echo "$BASE_DIR/logs") + +if [ ! -d "$LOG_DIR" ]; then + mkdir -p $LOG_DIR +fi + +# Finding directory +APPLICATIONS_DIR=$(echo "$BASE_DIR") + +echo $APPLICATIONS_DIR + +$MAX_NUMBER=$(($SGE_TASK_ID * 1000)) +$MIN_NUMBER=$(($((SGE_TASK_ID-1)) * 1000)) + + +echo "Simulation with range $MIN_NUMBER-$MAX_NUMBER" + +Rscript "${APPLICATIONS_DIR}/increasing_size_test.R" $MIN_NUMBER $MAX_NUMBER \ No newline at end of file