[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.13, Fri Aug 27 22:00:16 2010 UTC revision 1.14, Tue Nov 23 20:12:16 2010 UTC
# Line 1  Line 1 
1    # -*- perl -*-
2    #########################################################################
3    # Copyright (c) 2003-2008 University of Chicago and Fellowship
4    # for Interpretations of Genomes. All Rights Reserved.
5    #
6    # This file is part of the SEED Toolkit.
7    #
8    # The SEED Toolkit is free software. You can redistribute
9    # it and/or modify it under the terms of the SEED Toolkit
10    # Public License.
11    #
12    # You should have received a copy of the SEED Toolkit Public License
13    # along with this program; if not write to the University of Chicago
14    # at info@ci.uchicago.edu or the Fellowship for Interpretation of
15    # Genomes at veronika@thefig.info or download a copy from
16    # http://www.theseed.org/LICENSE.TXT.
17    #########################################################################
18    
19  #  #
20  # Perform auto-assignment on unassigned pegs.  # Perform auto-assignment on unassigned pegs.
# Line 50  Line 67 
67    
68  open(TBL, "<$tbl") or &fatal("Cannot open tbl file $tbl: $!");  open(TBL, "<$tbl") or &fatal("Cannot open tbl file $tbl: $!");
69    
70    &FIG::verify_dir("$jobdir/rp/$genome/Subsystems");
71    system("touch", "$jobdir/rp/$genome/Subsystems/subsystems", "$jobdir/rp/$genome/Subsystems/bindings");
72  my $cmd = "$FIG_Config::bin/auto_assign -orgdir $jobdir/rp/$genome > $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";
73  print "running $cmd\n";  print "running $cmd\n";
74  open(AA, "| $cmd")  open(AA, "| $cmd")
# Line 133  Line 152 
152      $meta->add_log_entry($0, ['fatal error', $msg]);      $meta->add_log_entry($0, ['fatal error', $msg]);
153      $meta->set_metadata("status.auto_assign", "error");      $meta->set_metadata("status.auto_assign", "error");
154    
155      croak "$0: $msg";      confess "$0: $msg";
156  }  }
157    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3