minimap2/tex/eval2roc.pl

21 lines
309 B
Perl
Raw Normal View History

2017-08-02 03:12:49 +08:00
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Std;
my %opts = (n=>33088);
getopts('n:', \%opts);
my $pseudo = .5;
my $tot = $pseudo;
my $err = $pseudo;
while (<>) {
chomp;
if (/^Q\t(\d+)\t(\d+)\t(\d+)/) {
$tot += $2;
$err += $3;
print join("\t", $1, $err/$tot, $tot / $opts{n}), "\n";
}
}