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

Annotation of /FigKernelScripts/load_go.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : mkubal 1.1 #
2 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
3 :     # for Interpretations of Genomes. All Rights Reserved.
4 :     #
5 :     # This file is part of the SEED Toolkit.
6 :     #
7 :     # The SEED Toolkit is free software. You can redistribute
8 :     # it and/or modify it under the terms of the SEED Toolkit
9 :     # Public License.
10 :     #
11 :     # You should have received a copy of the SEED Toolkit Public License
12 :     # along with this program; if not write to the University of Chicago
13 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
14 :     # Genomes at veronika@thefig.info or download a copy from
15 :     # http://www.theseed.org/LICENSE.TXT.
16 :     #
17 :    
18 :    
19 :     # -*- perl -*-
20 :    
21 :     ###########################################
22 :     use strict;
23 :    
24 :     use FIG;
25 :     my $fig = new FIG;
26 :    
27 :     my $usage = "usage: load_go";
28 :    
29 :     use Tracer;
30 :    
31 :     &load_go;
32 :    
33 :     undef $fig;
34 :    
35 :     sub load_go {
36 :    
37 :     Open(\*TMPIN, "<$FIG_Config::data/Global/GO_number_to_term.txt");
38 :     Open(\*GOMAP,">$FIG_Config::temp/go.table");
39 :    
40 :     while (defined($_ = <TMPIN>))
41 :     {
42 :     print GOMAP "$_";
43 :     }
44 :    
45 :     close(TMPIN);
46 :     close(GOMAP);
47 :    
48 :     $fig->reload_table('all', "go_number_to_term",
49 :     "id varchar(100), term varchar(100)",
50 :     { index_go_number_to_term_id => "id", index_go_number_to_term_term => "term" },
51 :     "$FIG_Config::temp/go.table");
52 :     unlink("$FIG_Config::temp/go.table");
53 :    
54 :     }
55 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3