forked from DLWheeler/Pipeliner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit_slurm.template
executable file
·37 lines (25 loc) · 1.07 KB
/
submit_slurm.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#
cd $SLURM_SUBMIT_DIR
PrjName=$1
if [[ -z "${param// }" ]];
then
Slrm_J="-J $PrjName"
echo "Setting an slurm job submission name option: $Slrm_J"
else
Slrm_J=""
echo "No slurm job submission name set! PrjName=$PrjName"
fi
#. /usr/local/Modules/default/init/bash
module load python/3.5
D=/home/fake
R=/home/fake
modtime1=`stat -c %y $R/Reports/snakemake.log|awk -F "." '{print $1}'|sed 's/ /_/g' -|sed 's/:/_/g'|sed 's/-/_/g' -`
modtime2=`stat -c %y $R/Reports/makeasnake.log|awk -F "." '{print $1}'|sed 's/ /_/g' -|sed 's/:/_/g'|sed 's/-/_/g' -`
mv $R/Reports/snakemake.log $R/Reports/snakemake.log.$modtime1
mv $R/Reports/makeasnake.log $R/Reports/makeasnake.log.$modtime2
touch $R/Reports/makeasnake.log
touch $R/Reports/snakemake.log
#sbatch $Slrm_J --partition=centos7 --gres=lscratch:200 --time=24:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
sbatch $Slrm_J --partition=ccr,norm --gres=lscratch:200 --time=120:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
# sbatch --partition=ccr,norm --gres=lscratch:200 --time=120:00:00 $R/pipeline_ctrl.sh