-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_assembly_stringtie.sh
More file actions
executable file
·33 lines (26 loc) · 960 Bytes
/
04_assembly_stringtie.sh
File metadata and controls
executable file
·33 lines (26 loc) · 960 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
#!/usr/bin/env bash
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=8G
#SBATCH --time=04:00:00
#SBATCH --partition=pall
#SBATCH --job-name=assembly_stringtie
#SBATCH --mail-user=lea.frei@students.unibe.ch
#SBATCH --mail-type=begin,end,fail
#SBATCH --output=/data/users/lfrei/rna_seq/output/output_stringtie_%j.o
#SBATCH --error=/data/users/lfrei/rna_seq/errors/error_stringtie_%j.e
#SBATCH --array=0-5
#load module
module load UHTS/Aligner/stringtie/1.3.3b
REF_ANNOTATION=/data/courses/rnaseq_course/lncRNAs/Project1/references/gencode.v44.annotation.gtf
OUTPUT_DIR=/data/users/lfrei/rna_seq/assembly_results
INPUT_DIR=/data/users/lfrei/rna_seq/alignment_results
mkdir -p $OUTPUT_DIR
#create file array
cd $INPUT_DIR
FILES=( $(ls | grep '.bam$') )
sample_name="${FILES[$SLURM_ARRAY_TASK_ID]%%.bam}"
#run stringtie on the 6 samples
stringtie -o $OUTPUT_DIR/${sample_name}.gtf \
-p 4 --rf \
-G $REF_ANNOTATION \
${FILES[$SLURM_ARRAY_TASK_ID]}