-
Notifications
You must be signed in to change notification settings - Fork 1
/
slurm_flexbar_paired_150.sh
executable file
·43 lines (35 loc) · 1.38 KB
/
slurm_flexbar_paired_150.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
#!/bin/bash
# @Author: Tobias Jakobi <tjakobi>
# @Email: tobias.jakobi@med.uni-heidelberg.de
# @Project: University Hospital Heidelberg, Section of Bioinformatics and Systems Cardiology
# @License: CC BY-NC-SA
#SBATCH -n 1
#SBATCH -N 1
#SBATCH -c 40
#SBATCH --mem=20G
#SBATCH -J "flexbar paired"
#SBATCH --mail-type=END,FAIL,TIME_LIMIT_80
#SBATCH --mail-user=tobias.jakobi@med.uni-heidelberg.de
# check if we have 3 arguments
if [ ! $# == 4 ]; then
echo "Usage: $0 [Read 1 file] [Read 2 file] [target dir e.g. /tmp/] [R1 marker, e.g. _R1]"
exit
fi
# $1 -> Read 1
# $2 -> Read 2
# $3 -> Target directory
# remove the file extension and potential "R1" markings
# (works for double extension, e.g. .fastq.gz)
target=`expr ${1/$4/} : '\(.*\)\..*\.'`
# load the flexbar module
module load flexbar
# run on 10 CPUs
# compress with bz2
# only 30nt or longer
# no uncalled bases
# quality min phred 28
# use sanger quality values (i.e. Illumina 1.9+ encoding)
#flexbar -r $1 -p $2 -t $3/$target -n 20 -z GZ -m 30 -u 0 -qt 28 -a /biosw/flexbar/Adapter.fa -qf sanger
#flexbar -r $1 -p $2 -t $3/$target -n 20 -z GZ -m 30 -u 0 -q 28 -a /biosw/flexbar/Adapter.fa -f sanger -j
flexbar -y 100 -r $1 -p $2 -t $3/$target -n 40 -z GZ -m 30 -u 0 -q TAIL -qt 28 -as "AGATCGGAAGAG" -qf sanger -j
#flexbar -r $1 -p $2 -t $3/$target -n 20 -z GZ -m 30 -u 0 -q TAIL -qt 28 -a /biosw/flexbar/Adapter.fa -qf sanger -j