[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.7, Mon May 18 16:56:23 2009 UTC revision 1.10, Thu Aug 5 18:09:11 2010 UTC
# Line 74  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 $user = &FIG::file_head("$jobdir/USER", 1);
84        chomp $user;
85        my $cmd = ("/vol/model-prod/FIGdisk/bin/ModelDriver.sh 'createmodelfile?$genome?1?$user' > $jobdir/rp.errors/create_model.stderr 2>&1");
86        my $rc = system($cmd);
87        if ($rc != 0)
88        {
89            $meta->add_log_entry($0, ['error creating model', $rc]);
90        }
91        else
92        {
93            $meta->add_log_entry($0, ['model submitted']);
94    
95            my $link = "http://seed-viewer.theseed.org/seedviewer.cgi?model=Seed${genome}&page=ModelView";
96    
97            $meta->set_metadata("model_build.viewing_link", $link);
98        }
99    }
100    
101    
102  $meta->add_log_entry($0, "auto_assign completed\n");  $meta->add_log_entry($0, "auto_assign completed\n");
103  $meta->set_metadata("status.auto_assign", "complete");  $meta->set_metadata("status.auto_assign", "complete");
104  $meta->set_metadata("auto_assign.running", "no");  $meta->set_metadata("auto_assign.running", "no");

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3