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

View of /FigKernelScripts/generate_GenomeGroups_for_sprout.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Wed Aug 10 16:17:52 2005 UTC (14 years, 9 months ago) by overbeek
Branch: MAIN
CVS Tags: caBIG-dataload-0, caBIG-00-00-00
Changes since 1.1: +1 -1 lines
fixes to showing reactions

use FIG;
my $fig = new FIG;

my $usage = "usage: generate_GenomeGroups_for_sprout GenomesF SproutData";

(
 ($genomesF = shift @ARGV) &&
 ($sproutD  = shift @ARGV)
)
    || die $usage;

my @genomes = map { $_ =~ /^(\S+)/; $1 } `cat $genomesF`;

open(GENOMEGROUPS,"| sort -u +1 -2 +0n -1 > $sproutD/GenomeGroups") || die "could not open $sproutD/GenomeGroups";

foreach $genome (@genomes)
{
    if (open(NMPDR,"<$FIG_Config::organisms/$genome/NMPDR") && defined($_ = <NMPDR>))
    {
	chomp;
	print GENOMEGROUPS "$genome\t$_\n";
	close(NMPDR);
    }
}
close(GENOMEGROUPS);

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3