[Bio] / FigKernelScripts / compute_ev_code_attributes.pl Repository:
ViewVC logotype

View of /FigKernelScripts/compute_ev_code_attributes.pl

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1.1 - (download) (as text) (annotate)
Mon Oct 15 19:13:49 2007 UTC (12 years, 9 months ago) by olson
Branch: MAIN
CVS Tags: rast_rel_2008_04_23
pull subsystems, compute ev code attributes.



=head1 compute_ev_code_attributes

A wrapper to recalculate the evidence codes. This should allow you to redo all the evidence codes daily, weekly or whatever.

=head2 author

RobE RobE@theFIG.info & Robert Olson, olson@mcs.anl.gov


use strict;
use FIG;
my $fig = new FIG;
use constant DEBUG=>1;

# recalculate the evidence codes

# at the moment we are building evidence codes for all subsystems that are not experimental
# using the fig->trusted_subsystems code

my $subsys_file = "$FIG_Config::temp/all_subsys.$$";

print STDERR "Finding the subsystems\n" if (DEBUG);
open(OUT, ">$subsys_file") || die "Can't write to $subsys_file: $!";
foreach my $ss ($fig->all_subsystems)
    next unless ($fig->usable_subsystem($ss));
    print OUT "$ss\n";
close OUT;

# just use the existing code to do this
my @command = ($FIG_Config::bin."/get_ev_codes", $subsys_file);

print STDERR "Running the evidence code command @command\n" if (DEBUG);
my $rc = system(@command);

if ($rc != 0)
    my($stat, $sig, $msg) = &FIG::interpret_error_code($rc);
    die "$msg: @command";

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3