-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprokka_sub_script.sh
More file actions
42 lines (29 loc) · 878 Bytes
/
prokka_sub_script.sh
File metadata and controls
42 lines (29 loc) · 878 Bytes
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
#!/bin/bash
# loading modules
module load Anaconda3
#####$ -N $finalname
#$ -l h_rt=6:00:00
#$ -l h_vmem=4G -pe smp 10-12
# request 10 GiB of scratch space
# this sets up a per-job dedicated storage space
# access via the $TMPDIR1 variable, see usage below
#$ -wd /work/$USER
#$ -l scratch=10G
# output files
#$ -o path/to/prokka_annotation/logs/$JOB_NAME-$JOB_ID.out
#$ -e path/to/prokka_annotation/logs/$JOB_NAME-$JOB_ID.err
conda activate path/to/.conda/envs/prokka
cp -r "path/to/.conda/envs/prokka/db" "$TMPDIR1/."
cp -r "path/to/prokka_annotation/custom_database/new_custom_db.faa" "$TMPDIR1/."
echo "started prokka"
date
prokka "$1" \
--outdir "$TMPDIR1/$2" \
--proteins "$TMPDIR1/new_custom_db.faa" \
--cpus "${NSLOTS:-1}" \
--dbdir "$TMPDIR1/db" \
--norrna --notrna
# copy final results
cp -r "$TMPDIR1/$2" "/work/$USER/$2"
echo "end annotate"
date