[Bio] / FigKernelScripts / load_go.pl Repository:
ViewVC logotype

View of /FigKernelScripts/load_go.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Wed Nov 29 20:32:09 2006 UTC (13 years, 6 months ago) by mkubal
Branch: MAIN
loads go_number_to_term table

#
# Copyright (c) 2003-2006 University of Chicago and Fellowship
# for Interpretations of Genomes. All Rights Reserved.
#
# This file is part of the SEED Toolkit.
# 
# The SEED Toolkit is free software. You can redistribute
# it and/or modify it under the terms of the SEED Toolkit
# Public License. 
#
# You should have received a copy of the SEED Toolkit Public License
# along with this program; if not write to the University of Chicago
# at info@ci.uchicago.edu or the Fellowship for Interpretation of
# Genomes at veronika@thefig.info or download a copy from
# http://www.theseed.org/LICENSE.TXT.
#


# -*- perl -*-

###########################################
use strict;

use FIG;
my $fig = new FIG;

my $usage = "usage: load_go";

use Tracer;

&load_go;

undef $fig;

sub load_go {

    Open(\*TMPIN, "<$FIG_Config::data/Global/GO_number_to_term.txt");
    Open(\*GOMAP,">$FIG_Config::temp/go.table");

    while (defined($_ = <TMPIN>))
    {
	print GOMAP "$_";
    }

    close(TMPIN);
    close(GOMAP);
	
    $fig->reload_table('all', "go_number_to_term",
					   "id varchar(100), term varchar(100)",
					   { index_go_number_to_term_id => "id", index_go_number_to_term_term => "term" },
					   "$FIG_Config::temp/go.table");
    unlink("$FIG_Config::temp/go.table");

}


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3