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

Annotation of /FigKernelScripts/compute_ev_code_attributes.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (view) (download) (as text)

1 : olson 1.1 #__perl__
2 :     #
3 :    
4 :     =pod
5 :    
6 :     =head1 compute_ev_code_attributes
7 :    
8 :     A wrapper to recalculate the evidence codes. This should allow you to redo all the evidence codes daily, weekly or whatever.
9 :    
10 :     =head2 author
11 :    
12 :     RobE RobE@theFIG.info & Robert Olson, olson@mcs.anl.gov
13 :    
14 :     =cut
15 :    
16 :    
17 :     use strict;
18 :     use FIG;
19 :     my $fig = new FIG;
20 :     use constant DEBUG=>1;
21 :    
22 :     # recalculate the evidence codes
23 :    
24 :     ##### FIND SUBSYSTEMS
25 :     # at the moment we are building evidence codes for all subsystems that are not experimental
26 :     # using the fig->trusted_subsystems code
27 :    
28 :     my $subsys_file = "$FIG_Config::temp/all_subsys.$$";
29 :    
30 :     print STDERR "Finding the subsystems\n" if (DEBUG);
31 :     open(OUT, ">$subsys_file") || die "Can't write to $subsys_file: $!";
32 :     foreach my $ss ($fig->all_subsystems)
33 :     {
34 : overbeek 1.2 next unless ($fig->usable_subsystem($ss,1)); # do not use cluster-based subsystems for evidence codes
35 : olson 1.1 print OUT "$ss\n";
36 :     }
37 :     close OUT;
38 :    
39 :     ##### REBUILD EVIDENCE CODES
40 :     # just use the existing code to do this
41 :     my @command = ($FIG_Config::bin."/get_ev_codes", $subsys_file);
42 :    
43 :     print STDERR "Running the evidence code command @command\n" if (DEBUG);
44 :     my $rc = system(@command);
45 :    
46 :     if ($rc != 0)
47 :     {
48 :     my($stat, $sig, $msg) = &FIG::interpret_error_code($rc);
49 :     die "$msg: @command";
50 :     }
51 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3