[Bio] / FortyEight / rp_auto_assign.pl Repository:
ViewVC logotype

Diff of /FortyEight/rp_auto_assign.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4, Fri Jun 8 19:20:20 2007 UTC revision 1.8, Wed Jul 28 21:14:20 2010 UTC
# Line 8  Line 8 
8  use FIG_Config;  use FIG_Config;
9  use File::Basename;  use File::Basename;
10  use GenomeMeta;  use GenomeMeta;
11    use Carp 'croak';
12    
13  @ARGV == 1 or die "Usage: $0 job-dir\n";  @ARGV == 1 or die "Usage: $0 job-dir\n";
14    
# Line 48  Line 49 
49    
50  open(TBL, "<$tbl") or &fatal("Cannot open tbl file $tbl: $!");  open(TBL, "<$tbl") or &fatal("Cannot open tbl file $tbl: $!");
51    
52  my $cmd = "$FIG_Config::bin/auto_assign sims=$simfile > $jobdir/rp/$genome/proposed_non_ff_functions";  my $cmd = "$FIG_Config::bin/auto_assign -orgdir $jobdir/rp/$genome > $jobdir/rp/$genome/proposed_non_ff_functions";
53  print "running $cmd\n";  print "running $cmd\n";
54  open(AA, "| $cmd")  open(AA, "| $cmd")
55          or &fatal("aa failed: $!");          or &fatal("aa failed: $!");
# Line 73  Line 74 
74      &fatal("error on close \$?=$? \$!=$!");      &fatal("error on close \$?=$? \$!=$!");
75  }  }
76    
77    #
78    # When auto assign is complete, we are able to submit the model computation.
79    #
80    
81    if ($meta->get_metadata("model_build.enabled"))
82    {
83        my $link = '';
84        $meta->set_metaata("model_build.viewing_link", $link);
85    }
86    
87    
88  $meta->add_log_entry($0, "auto_assign completed\n");  $meta->add_log_entry($0, "auto_assign completed\n");
89  $meta->set_metadata("status.auto_assign", "complete");  $meta->set_metadata("status.auto_assign", "complete");
90    $meta->set_metadata("auto_assign.running", "no");
91    
92  sub fatal  sub fatal
93  {  {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3