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

Annotation of /FigKernelScripts/package_subsystems.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : overbeek 1.1 # -*- perl -*-
2 : olson 1.4 #
3 :     # Copyright (c) 2003-2006 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 : overbeek 1.1 use Carp;
20 :     use Data::Dumper;
21 :     use P2Pupdate;
22 :    
23 :     use FIG;
24 :     my $fig = new FIG;
25 :    
26 : overbeek 1.5 $usage = "usage: package_subsystems SubsystemsPackage [All] [which=File]";
27 : overbeek 1.1
28 :     ($package = shift @ARGV)
29 :     || die $usage;
30 :    
31 : overbeek 1.5 $all = 0;
32 :     my @which = ();
33 :     foreach $_ (@ARGV)
34 :     {
35 :     if ($_ =~ /^all$/i) { $all = 1 }
36 :     elsif ($_ =~ /^which=(\S.*\S)/)
37 :     {
38 :     @which = map { ($_ =~ /^\s*(\S.*\S)\s*$/) ? $1 : () } `cat $1`;
39 :     }
40 :     }
41 : overbeek 1.3
42 : overbeek 1.5 &P2Pupdate::package_subsystems($fig,$package,$all,\@which);
43 : overbeek 1.1

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3