Debian Codegraph @

rmark/rmark-pp.sh

raw symbols SCIP
1 #/bin/bash
2
3 # get running time
4 ls $2/*.time | perl $4/rmark-time.pl > $2/$2.time
5 # get MER
6 cat $2/*out | perl $4/rmark-multiply-evalues.pl $3 | sort -g | perl $4/rmark-mer.pl $1.pos $2/$2.time > $2/$2.em$3.mer
7 # get ROC
8 cat $2/*out | perl $4/rmark-multiply-evalues.pl $3 | sort -g | $4/rmark-rocplot -N 100000 --seed 181 $1 - > $2/$2.em$3.xy
9 # get mer from rmark-rocplot
10 cat $2/*out | perl $4/rmark-multiply-evalues.pl $3 | sort -g | $4/rmark-rocplot -N 100000 --mer --seed 181 $1 - > $2/$2.em$3.bmer
11 # get numbers of false negatives and false positives at E-threshold of 0.1 from rmark-rocplot (after E-value inflation)
12 #ARG=`echo 0.1/$3|bc -l`
13 #echo 0.1/$3|bc -l
14 cat $2/*out | perl $4/rmark-multiply-evalues.pl $3 | sort -g | $4/rmark-rocplot -N 100000 --Ethresh 0.1 --seed 181 $1 - > $2/$2.em$3.bEthresh
15
16 # copy files to cwd
17 #cp $2/$2.em$3.mer ./
18 #cp $2/$2.em$3.bmer ./
19 #cp $2/$2.time ./
20 #cp $2/$2.em$3.xy ./
21
22 # summarize files to stdout
23 echo -n $2 | awk '{printf("%-70s ", $0)}' > $2/$2.em$3.sum
24 echo -n $3 | awk '{printf("%4s ", $0)}' >> $2/$2.em$3.sum
25 cat $2/$2.em$3.bmer | awk '{printf("MER: %5s %5s %5s %5s ", $3, $7, $11, $15)}' >> $2/$2.em$3.sum
26 cat $2/$2.em$3.bEthresh | awk '{printf("ETHRESH:0.1 %5s %5s ", $5, $9)}' >> $2/$2.em$3.sum
27 grep ummary $2/$2.em$3.mer | awk '{print $7}' >> $2/$2.em$3.sum
28 cp $2/$2.em$3.sum ./
29 cat $2.em$3.sum
30
31 # clean up (optional)
32 #rm $2/$2.em$3.mer
33 #rm $2/$2.em$3.bmer
34 #rm $2/$2.time
35 #rm $2/$2.em$3.xy
36