-
Notifications
You must be signed in to change notification settings - Fork 0
/
1_ra.sh
47 lines (40 loc) · 1.03 KB
/
1_ra.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
#!/bin/bash
#PBS -P xe2
#PBS -q normalbw
#PBS -l walltime=48:00:00
#PBS -l mem=250G
#PBS -l jobfs=400GB
#PBS -l ncpus=28
#PBS -l wd
#PBS -m abe
#PBS -M [email protected]
if [ "$SPECIES" == "" ]
then
SPECIES="$1"
fi
if [ "$SPECIES" == "" ]
then
echo USAGE: $0 SPECIES
fi
module load ra
set -euo pipefail # safe mode
set -x # logging
SELFSUB="${SELFSUB:-no}"
HERE=/g/data/xe2/projects/euc_pan_genome/
DIR=$HERE/workspaces/$SPECIES/ra
mkdir -p $DIR
cd $DIR
if [ "$SELFSUB" == "yes" ]
then
NEXT=$(qsub -v SPECIES="$SPECIES",SELFSUB="$SELFSUB" -N "RA_$SPECIES" -W "depend=afterany:$PBS_JOBID" $HERE/scripts/1_ra.sh)
fi
ra \
-x ont \
-t $PBS_NCPUS \
$HERE/workspaces/$SPECIES/reads/${SPECIES}-qcd_main.fastq.gz \
> $DIR/${SPECIES}-assembly-ra.fa \
2> $DIR/assembly.log
if [ "$SELFSUB" == "yes" ]
then
qdel "$NEXT"
fi