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

Annotation of /FigKernelScripts/rebuild_global_chromosomal_clusters.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : overbeek 1.2 ########################################################################
2 : overbeek 1.1 # -*- perl -*-
3 :     #
4 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
5 :     # for Interpretations of Genomes. All Rights Reserved.
6 :     #
7 :     # This file is part of the SEED Toolkit.
8 :     #
9 :     # The SEED Toolkit is free software. You can redistribute
10 :     # it and/or modify it under the terms of the SEED Toolkit
11 :     # Public License.
12 :     #
13 :     # You should have received a copy of the SEED Toolkit Public License
14 :     # along with this program; if not write to the University of Chicago
15 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
16 :     # Genomes at veronika@thefig.info or download a copy from
17 :     # http://www.theseed.org/LICENSE.TXT.
18 :     #
19 :    
20 :    
21 :     ###########################################
22 :     use FIG;
23 :     my $fig = new FIG;
24 :    
25 : overbeek 1.2 &FIG::run("load_sets chromosomal_clusters cluster_id /dev/null");
26 :    
27 : overbeek 1.1 my($cluster);
28 :     foreach $cluster (`cut -f1,2 < $FIG_Config::data/CouplingData/scores | cluster_objects`)
29 :     {
30 :     chop $cluster;
31 :     my @cluster = split(/\s+/,$cluster);
32 :     if (@cluster > 1)
33 :     {
34 :     $fig->add_chromosomal_cluster(\@cluster);
35 :     }
36 :     }
37 :     $fig->export_set("chromosomal_clusters","cluster_id","$FIG_Config::global/chromosomal_clusters");
38 :     &FIG::run("load_sets chromosomal_clusters cluster_id $FIG_Config::global/chromosomal_clusters");
39 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3