[Bio] / FigKernelPackages / FIG.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIG.pm

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

revision 1.614, Wed Sep 5 21:17:04 2007 UTC revision 1.615, Thu Sep 6 21:25:34 2007 UTC
# Line 836  Line 836 
836          $sysrc == 0 or          $sysrc == 0 or
837              warn "index_translations $genome failed; continuing with installation\n";              warn "index_translations $genome failed; continuing with installation\n";
838    
839            if (0)
840            {
841                #
842                # We don't do anything with the NR now; that update process is handled externally.
843                # The same applies to sims; we plan to optimize the genome installation process
844                # for genomes that were processed with the RAST server. For these, a completely
845                # new NR and sims set will be computed, OR the sims will be installed from the
846                # RAST installation and used locally from the genome direcotry (code still to be
847                # added).
848                # RDO 2007-09-06
849                #
850    
851          my @tmp = `cut -f1 $FIG_Config::organisms/$genome/Features/peg/tbl`;          my @tmp = `cut -f1 $FIG_Config::organisms/$genome/Features/peg/tbl`;
852          if (@tmp == 0)          if (@tmp == 0)
853          {          {
# Line 851  Line 863 
863          }          }
864          &enqueue_similarities(\@tmp);          &enqueue_similarities(\@tmp);
865      }      }
866        }
867    
868      if ((-s "$FIG_Config::organisms/$genome/assigned_functions") ||      if ((-s "$FIG_Config::organisms/$genome/assigned_functions") ||
869          (-d "$FIG_Config::organisms/$genome/UserModels"))          (-d "$FIG_Config::organisms/$genome/UserModels"))
# Line 859  Line 872 
872          $sysrc == 0 or warn "add_assertions_of_function $genome failed; continuing with installation\n";          $sysrc == 0 or warn "add_assertions_of_function $genome failed; continuing with installation\n";
873      }      }
874    
875        #
876        # New support for installing precomputed data coming out of the RAST runs.
877        #
878        # PCHs are installed with install_new_coupling_data.
879        #
880    
881        my $pchs = "$FIG_Config::organisms/$genome/pchs";
882        my $pch_scores = "$FIG_Config::organisms/$genome/pchs.scored";
883    
884        if (-f $pchs and  -f $pch_scores)
885        {
886            $sysrc = system("$FIG_Config::bin/install_new_coupling_data",
887                            $genome,
888                            $pchs,
889                            $pch_scores);
890            if ($sysrc == 0)
891            {
892                print "PCHs installed, indexing.\n";
893                $sysrc = system("$FIG_Config::bin/load_coupling", $genome);
894                if ($sysrc != 0)
895                {
896                    warn "load_coupling $genome failed with rc=$sysrc\n";
897                }
898            }
899            else
900            {
901                warn "Error $sysrc installing coupling data";
902            }
903        }
904    
905      return $rc;      return $rc;
906  }  }
907    

Legend:
Removed from v.1.614  
changed lines
  Added in v.1.615

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3