-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgtf.sh
37 lines (29 loc) · 1.05 KB
/
gtf.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
#!/bin/sh
############ Notice #################
#Step1: Assembly of novel transcripts by Reference Annotation Based Transcript (RABT) method using Cufflinks in each sample based on RNA-seq reads and reference annotation
echo -e "
====================================================
[$(date +%R:%S)] Assembly of novel transcripts by Reference Annotation Based Transcript (RABT) method\n";
############ Parameters #################
#Reading defined parameters
TSSfolder=$0;TSSfolder=${TSSfolder:0:${#TSSfolder}-6};
original_data=$1;outpath=$2;
public_gtf=$3
MultiProcessor=$4
func=gtf
codepath=${2}/code/
outpath=${2}/tmp/${func}/
mkdir $codepath
mkdir $outpath
############ De novo assembly step #################
#Loading all replicates in Group A and B
list=($(echo ${original_data} | tr "," "\n"))
#For each replicate using RABT method to assemble
j=1
for i in ${list[*]}
do
mkdir ${outpath}${j}/
cufflinks -N -p ${MultiProcessor} -g ${public_gtf} -o ${outpath}${j} ${i}
j=$[ $j + 1 ]
done
#Output: GTF format; Exons of transcripts annotation in each row