
use FIG;
my $fig = new FIG;

$usage = "usage: predict_starts Objects ClearCalls ProposedCorrections";

(
 ($objects       = shift @ARGV) &&
 ($clear_calls   = shift @ARGV) &&
 ($proposed      = shift @ARGV)
)
    || die $usage;

&FIG::run("make_calls_for_start_predictions < $objects > $FIG_Config::temp/with.calls.$$"); 
&FIG::run("order_corrections_for_start_predictions < $FIG_Config::temp/with.calls.$$ 2> $FIG_Config::temp/clear$$ > $FIG_Config::temp/proposed$$");
system "cat $FIG_Config::temp/clear$$ >> $clear_calls";
system "cat $FIG_Config::temp/proposed$$ >> $proposed";
system "cat $FIG_Config::temp/with.calls.$$";
unlink("$FIG_Config::temp/with.calls.$$","$FIG_Config::temp/clear$$","$FIG_Config::temp/proposed$$");


