-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUnlock.sh
37 lines (27 loc) · 921 Bytes
/
Unlock.sh
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
35
36
37
#!/bin/bash
################################ Slurm options #################################
### Job name
#SBATCH --job-name=Unlock
### Limit run time "days-hours:minutes:seconds"
#SBATCH --time=24:00:00
### Output
#SBATCH --output=Unlock-%j.out
################################################################################
echo '########################################'
echo 'Date:' $(date --iso-8601=seconds)
echo 'User:' $USER
echo 'Host:' $HOSTNAME
echo 'Job Name:' $SLURM_JOB_NAME
echo 'Job Id:' $SLURM_JOB_ID
echo 'Directory:' $(pwd)
echo '########################################'
# modules loading
module load snakemake/5.19.2
# unlock
rm -fr config_ongoing_run.yaml
cp configs/config_main.yaml config_ongoing_run.yaml
snakemake --unlock --drmaa --cores 1 -s workflow/quality_control.rules
rm config_ongoing_run.yaml
mkdir -p slurm_output
mv Unlock-* slurm_output
echo "Working directory unlocked"