-
Notifications
You must be signed in to change notification settings - Fork 0
/
canu-hugemem.pbs
48 lines (38 loc) · 1.66 KB
/
canu-hugemem.pbs
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
#!/bin/bash
#PBS -P xe2
#PBS -q normalbw
#PBS -l ncpus=28
#PBS -l walltime=24:00:00
#PBS -l other=gdata1
#PBS -l mem=250G
#PBS -l jobfs=400G
#PBS -l wd
#PBS -m abe
#PBS -M [email protected]
if [ "$SPECIES" == "" ]
then
echo USAGE: $0 SPECIES
fi
module load gnuplot java/jdk1.8.0_60
set -euo pipefail # safe mode
set -x # logging
HERE=/g/data/xe2/projects/euc_pan_genome/
DIR=$HERE/workspaces/$SPECIES/canu-experimental
mkdir -p $DIR
cd $DIR
NEXT=$(qsub $HERE/scripts/canu-hugemem.pbs -v SPECIES="$SPECIES" -W depend=afterany:$PBS_JOBID )
/g/data/xe2/opt/tmp/canu/Linux-amd64/bin/canu \
-p $SPECIES \
-d $DIR \
-correct \
-nanopore-raw $HERE/workspaces/$SPECIES/reads/${SPECIES}-qcd_main.fastq.gz \
genomeSize=650m \
useGrid=false \
correctedErrorRate=0.2 \
maxThreads=28 \
maxMemory=250 \
stageDirectory="$PBS_JOBFS" \
java=$(which java) \
gnuplot=$(which gnuplot) \
> ${PBS_JOBID}_master.log 2>&1 \
qdel "$NEXT"