2020-04-03 16:36:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
|
2020-04-03 16:44:38 +02:00
|
|
|
avg=$(numaverage clear.txt)
|
2020-04-03 17:00:49 +02:00
|
|
|
|
2020-04-03 16:58:15 +02:00
|
|
|
srr_matching=$(grep -x "0" results.txt | wc -l)
|
2020-04-03 17:00:49 +02:00
|
|
|
all=$(results.txt | wc -l)
|
|
|
|
|
2020-04-03 16:58:15 +02:00
|
|
|
srr=$((srr_matching/all))
|
2020-04-03 17:00:49 +02:00
|
|
|
|
2020-04-03 16:58:15 +02:00
|
|
|
echo "Medium WER: $avg" >> clear.txt
|
|
|
|
echo "SRR: $srr" >> clear.txt
|