-
Notifications
You must be signed in to change notification settings - Fork 1
/
slurm_red.sh
executable file
·37 lines (29 loc) · 1.02 KB
/
slurm_red.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
#!/bin/bash
# @Author: Tobias Jakobi <tjakobi>
# @Date: Friday, May 6, 2016 4:10 PM
# @Email: [email protected]
# @Project: University Hospital Heidelberg, Section of Bioinformatics and Systems Cardiology
# @Last modified by: tjakobi
# @Last modified time: Friday, May 6, 2016 4:22 PM
# @License: CC BY-NC-SA
#SBATCH -n 1
#SBATCH -N 1
#SBATCH -c2
#SBATCH --mem=20G
#SBATCH -J "red"
#SBATCH --mail-type=END,FAIL,TIME_LIMIT_80
#SBATCH [email protected]
#module load star
# check if we have 6 arguments
if [ ! $# == 3 ]; then
echo "Usage: $0 [STAR index] [Read 1 file] [Read 2 file] [target dir e.g. /tmp/] [Read 1 marker, e.g. R1] [GTF file]"
exit
fi
# $1 -> Genome index
# $2 -> Read 1
# $3 -> Read 2
# $4 -> Target directory
# remove the file extension and potential "R1" markings
# (works for double extension, e.g. .fastq.gz)
mkdir -pv $3
perl /home/tjakobi/tmp/RED-ML/bin/red_ML.pl --rnabam ${1} --reference ${2} --dbsnp /home/tjakobi/tmp/RED-ML/database/00-All.vcf --outdir $3