-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun.sh
60 lines (44 loc) · 1.58 KB
/
run.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
DNAFILE1=$1
DNAFILE2=$2
RNAFILE1=$3
RNAFILE2=$4
FASTAFILE=$5
OUTPUTPATH=$6
Weighting_factor=$7
#REQUIRED PROGRAMS
#SeqPrep
#samtools
#unpigz
#gsplit
#pigz
fastaSeq=`tail -1 $FASTAFILE`
echo "split raw data..."
python SplitSeqFile.py $OUTPUTPATH $DNAFILE1 $DNAFILE2 d
ls $OUTPUTPATH | grep "^d1" | cut -c 4-7 >$OUTPUTPATH/idListDNA
python SplitSeqFile.py $OUTPUTPATH $RNAFILE1 $RNAFILE2 r
ls $OUTPUTPATH | grep "^r1" | cut -c 4-7 >$OUTPUTPATH/idListRNA
echo "merge reads..."
python SeqPrepMP.py $OUTPUTPATH
rm $OUTPUTPATH/dis*
rm $OUTPUTPATH/d1*
rm $OUTPUTPATH/d2*
rm $OUTPUTPATH/r1*
rm $OUTPUTPATH/r2*
echo "generate barcode-variant map..."
python GenerateBarcodeMapMP.py --runPath $OUTPUTPATH --refSeq $FASTAFILE
rm $OUTPUTPATH/tmp*
rm $OUTPUTPATH/pseudo*
echo "grep rna reads..."
python ChopRNAReadsMP.py --runPath $OUTPUTPATH --refSeq $FASTAFILE
echo "count variants..."
python CountVariantsMP.py --runPath $OUTPUTPATH --refSeq $FASTAFILE
echo "write multiple sequence alignment..."
python WriteMSA.py --runPath $OUTPUTPATH --refSeq $FASTAFILE --RA 0.5
echo "read relative activity..."
python AnalysisRA.py --runPath $OUTPUTPATH --refSeq $FASTAFILE --count $OUTPUTPATH/var.count >$OUTPUTPATH/var.ra
echo "change activity file format..."
python raInfoToPosRAInfo.py $OUTPUTPATH/var.ra $fastaSeq $OUTPUTPATH/var.pos.ra
echo "calculate ps score..."
python PredictContact.py $OUTPUTPATH/var.ra $OUTPUTPATH/var.pos.ra $fastaSeq $OUTPUTPATH/var.features $OUTPUTPATH/pred.mtx
echo "run monte carlo..."
java -Xmx2000m codaMC/RunPredict $fastaSeq $OUTPUTPATH/pred.mtx $Weighting_factor >$OUTPUTPATH/pred.ss