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

View of /FigKernelScripts/index_genome.pl

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1.1 - (download) (as text) (annotate)
Tue Aug 2 16:08:52 2011 UTC (8 years, 8 months ago) by olson
Branch: MAIN
CVS Tags: mgrast_dev_08112011, mgrast_dev_08022011, rast_rel_2014_0912, rast_rel_2014_0729, mgrast_release_3_1_2, mgrast_release_3_1_1, rast_rel_2011_0928, mgrast_version_3_2, mgrast_dev_12152011, mgrast_dev_10262011, HEAD
Add index_genome.pl that will create the SEED data structures for a new SEED directory;
this is implemented via FIG::index_genome() which is what the fig add_genome logic
now uses as well.

# Perform the per-genome indexing for the given genome(s), as if it were being installed
# from scratch.

use strict;
use FIG;
use FIG_Config;

@ARGV > 1 or die "Usage: index_genome User genome-id [genome-id ...]\n";

my $user = shift;

my $fig = new FIG;

for my $g (@ARGV)
    if (-d $fig->organism_directory($g))
	$fig->index_genome($g, $user);

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3