| 1 | #/bin/bash |
| 2 | |
| 3 | # get running time |
| 4 | lsscip-shell system . . ls. $2/*.time | perlscip-shell system . . perl. $4/rmark-time.pl > $2/$2.time |
| 5 | # get MER |
| 6 | catscip-shell system . . cat. $2/*out | perlscip-shell system . . perl. $4/rmark-multiply-evalues.pl $3 | sortscip-shell system . . sort. -g | perlscip-shell system . . perl. $4/rmark-mer.pl $1.pos $2/$2.time > $2/$2.em$3.mer |
| 7 | # get ROC |
| 8 | catscip-shell system . . cat. $2/*out | perlscip-shell system . . perl. $4/rmark-multiply-evalues.pl $3 | sortscip-shell system . . sort. -g | $4/rmark-rocplot -N 100000 --seed 181 $1 - > $2/$2.em$3.xy |
| 9 | # get mer from rmark-rocplot |
| 10 | catscip-shell system . . cat. $2/*out | perlscip-shell system . . perl. $4/rmark-multiply-evalues.pl $3 | sortscip-shell system . . 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 | catscip-shell system . . cat. $2/*out | perlscip-shell system . . perl. $4/rmark-multiply-evalues.pl $3 | sortscip-shell system . . 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 | echoscip-shell system . . echo. -n $2 | awkscip-shell system . . awk. '{printf("%-70s ", $0)}' > $2/$2.em$3.sum |
| 24 | echoscip-shell system . . echo. -n $3 | awkscip-shell system . . awk. '{printf("%4s ", $0)}' >> $2/$2.em$3.sum |
| 25 | catscip-shell system . . cat. $2/$2.em$3.bmer | awkscip-shell system . . awk. '{printf("MER: %5s %5s %5s %5s ", $3, $7, $11, $15)}' >> $2/$2.em$3.sum |
| 26 | catscip-shell system . . cat. $2/$2.em$3.bEthresh | awkscip-shell system . . awk. '{printf("ETHRESH:0.1 %5s %5s ", $5, $9)}' >> $2/$2.em$3.sum |
| 27 | grepscip-shell system . . grep. ummary $2/$2.em$3.mer | awkscip-shell system . . awk. '{print $7}' >> $2/$2.em$3.sum |
| 28 | cpscip-shell system . . cp. $2/$2.em$3.sum ./ |
| 29 | catscip-shell system . . 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 |