-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbtseq_run2
More file actions
executable file
·19 lines (19 loc) · 858 Bytes
/
Copy pathbtseq_run2
File metadata and controls
executable file
·19 lines (19 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
if [ "$1" = "" ]; then
echo "Run name is missing. Exiting"
exit 1
fi
export PATH=${PATH}:/cs/icore/joshua.moss/scripts/btseq
Rscript /cs/icore/joshua.moss/scripts/btseq/btseq_setup.R
#source /cs/icore/joshua.moss/scripts/btseq/btseq_setup
jid1=$(sbatch --job-name=gr get_reads $1)
jid1=${jid1:(-7)}
jid2=$(sbatch --job-name=pt --dependency=afterok:$jid1 --output=prep_trim.out btseq_prepare_trim)
jid2=${jid2:(-7)}
jid3=$(sbatch --job-name=rt --dependency=afterok:$jid2 --output=run_trim.out btseq_run_trim)
jid3=${jid3:(-7)}
jid4=$(sbatch --job-name=pa --dependency=afterok:$jid3 --output=prep_aln.out btseq_prepare_align)
jid4=${jid4:(-7)}
jid5=$(sbatch --job-name=ra --dependency=afterok:$jid4 --output=run_aln.out btseq_run_align)
jid5=${jid5:(-7)}
jid6=$(sbatch --dependency=afterok:$jid5 --job-name=sum --output=sum.out btseq_summary)