From 6aed2e2dfe4b7a44cba2530ef3f6387a3f9b7e75 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 22 Dec 2025 15:19:18 +0100 Subject: [PATCH] Add sge script --- sge_scripts/increase_size.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sge_scripts/increase_size.sh 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