-
Notifications
You must be signed in to change notification settings - Fork 4
/
quast.pbs.sh
executable file
·54 lines (36 loc) · 1.15 KB
/
quast.pbs.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
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#PBS -P ox63
#PBS -q normal
#PBS -N quast
#PBS -l walltime=12:00:00
#PBS -l storage=gdata/ox63+scratch/ox63+scratch/if89+gdata/if89
#PBS -l mem=64GB
#PBS -l ncpus=16
#PBS -l wd
###################################################################
###################################################################
# Make sure to change:
# 1. ox63 to your own project
# to run:
# qsub -v ASM=/path/to/asm.fasta,OUT_DIR=/path/to/dir ./quast.pbs.sh
###################################################################
usage() {
echo "Usage: qsub -v ASM=/path/to/asm.fasta,OUT_DIR=/path/to/dir ./quast.pbs.sh" >&2
echo
exit 1
}
[ -z "${ASM}" ] && usage
[ -z "${OUT_DIR}" ] && usage
# terminate script
die() {
echo "$1" >&2
echo
exit 1
}
export MODULEPATH=$MODULEPATH:/g/data/if89/apps/modulefiles/
module load quast/5.1.0rc1
THREADS=${PBS_NCPUS}
#########################################
test -d ${OUT_DIR} && die "Output directory ${OUT_DIR} already exists. Please delete it first or give an alternate location. Exiting."
## run quast to evaluate assemblies
quast.py -t ${THREADS} -o ${OUT_DIR} -l ${ASM} --large ${ASM} || die "quast failed"