-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07.run_sqanti3_qc.sh
35 lines (34 loc) · 962 Bytes
/
07.run_sqanti3_qc.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
#!/bin/bash
if [ ! -n "$4" ]
then
echo " **SQANTI3 QC** "
echo " Usage: bash `basename $0` [unannotated gff/gtf] [ref gtf] [ref genome] [outprefix]"
echo " Example: bash `basename $0` JJ27_Tes.collapsed.filtered.gff ref.gtf ref.fa SQANTI3_JJ27_Tes"
echo " The result will be put in SQANTI3_JJ27_Tes directory."
else
gff=$1
rgtf=$2
rgenome=$3
outprefix=$4
mkdir -p $outprefix
outputdir=`readlink -f $outprefix`
echo ">> Starting SQANTI3 QC"
echo " Input uannotated gtf/gff: "$gff
echo " Input reference gtf/gff: "$rgtf
echo " Input reference genome: "$rgenome
echo " Output dir: "$outputdir
st=`date`
sqanti3_qc.py $gff \
$rgtf \
$rgenome \
-o $outprefix \
-d $outputdir \
--cpus 1 \
--report html \
1>${outputdir}/std.log \
2>${outputdir}/err.log && \
echo " Finished to compare with annotation gtf"
ed=`date`
echo "Started time: "$st
echo "Ended time: "$ed
fi