Add sge script
This commit is contained in:
parent
5e8644493e
commit
6aed2e2dfe
1 changed files with 32 additions and 0 deletions
32
sge_scripts/increase_size.sh
Normal file
32
sge_scripts/increase_size.sh
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Reference in a new issue