-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkraken_large_files.sh
36 lines (31 loc) · 960 Bytes
/
kraken_large_files.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
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --cpus-per-task=8
#SBATCH --partition normal
#SBATCH --time=4:00:00
#SBATCH --mem=80G
#SBATCH --job-name=kraken2_paired_end
#SBATCH --mail-type=ALL
#SBATCH --output log_kraken2_paired_end.txt
#SBATCH --mail-user=christian.thomas@ukmuenster.de
ml palma/2021b GCC/11.2.0 OpenMPI/4.1.1
ml Kraken2/2.1.2
# tell bash to be verbose and to abort on error
set -o pipefail
set -x -e -u
## Parameters ############################################################################
KRAKEN_PATH=/scratch/tmp/thomachr/metagenomics/kraken2/
DATABABASE=${KRAKEN_PATH}/kraken_db/k2_standard_20220607
THREADS=8
NAME=`basename $1 .fastq.gz`
## Run Kraken2 ###########################################################################
kraken2 \
--db $DATABABASE \
--threads $THREADS \
--minimum-hit-groups 3 \
--use-names \
--report-minimizer-data \
--output - \
--report ./report/${NAME}.kraken.report.txt \
--paired $1 $2
exit 0