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

View of /FigKernelScripts/pegs_in_subsystem.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (download) (as text) (annotate)
Mon Dec 5 18:56:37 2005 UTC (14 years, 4 months ago) by olson
Branch: MAIN
CVS Tags: rast_rel_2009_05_18, rast_rel_2008_06_18, rast_rel_2008_06_16, rast_rel_2008_12_18, rast_rel_2008_07_21, rast_2008_0924, rast_rel_2008_04_23, rast_rel_2008_09_30, caBIG-05Apr06-00, mgrast_rel_2008_0924, mgrast_rel_2008_1110_v2, rast_rel_2009_02_05, mgrast_rel_2008_0625, rast_rel_2008_10_09, rast_release_2008_09_29, mgrast_rel_2008_0806, mgrast_rel_2008_0923, mgrast_rel_2008_0919, mgrast_rel_2008_1110, rast_rel_2008_09_29, mgrast_rel_2008_0917, rast_rel_2008_10_29, caBIG-13Feb06-00, rast_rel_2009_03_26, rast_rel_2008_11_24, rast_rel_2008_08_07
Changes since 1.4: +17 -0 lines
Add license words.

# -*- perl -*-
#
# 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.
#

use Carp;
use Data::Dumper;

use strict;

use FIG;
my $fig = new FIG;

my $usage = "usage: pegs_in_subsystem Subsys [ all ] > ROLE-PEG\nThe 'all' parameter is required to include genomes without an operational variant\n\n";

my ( $subsys, $all, $genomes, $role, $pair, $genome, $gs, @pegs, $peg );

( $subsys = shift @ARGV ) || die $usage;
$all = shift @ARGV;

$genomes = $fig->subsystem_genomes( $subsys, $all );

foreach $role ( $fig->subsystem_to_roles( $subsys ) )
{
    foreach $pair ( @$genomes )
    {
	( $genome, $gs ) = @$pair;
	foreach $peg ( $fig->pegs_in_subsystem_cell( $subsys, $genome, $role ) )
	{
	    print "$role\t$peg\n";
	}
    }
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3