[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.8, Wed Jul 28 21:14:20 2010 UTC revision 1.9, Wed Aug 4 15:03:40 2010 UTC
# Line 80  Line 80 
80    
81  if ($meta->get_metadata("model_build.enabled"))  if ($meta->get_metadata("model_build.enabled"))
82  {  {
83      my $link = '';      my $user = &FIG::file_head("$jobdir/USER", 1);
84        chomp $user;
85        my $cmd = ("/vol/model-prod/FIGdisk/bin/ModelDriver.sh 'createmodelfile?$genome?$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_metaata("model_build.viewing_link", $link);      $meta->set_metaata("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");

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3