[Bio] / FortyEightMeta / mg_load_done.pl Repository:
ViewVC logotype

View of /FortyEightMeta/mg_load_done.pl

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1.2 - (download) (as text) (annotate)
Wed Jun 11 21:16:42 2008 UTC (12 years, 1 month ago) by olson
Branch: MAIN
Changes since 1.1: +2 -0 lines
Commit of initial MGRAST2 code.

# mg_load_done is invoked by sge at the end of the sims processing when the final
# mg_load_sims jobs  have completed. Do any cleanup / sanity checking required.

use strict;
use FIG;
use FIG_Config;
use File::Basename;
use Data::Dumper;
use GenomeMeta;
use Job48;
use JobStage;
use SGE;
use FortyEightMeta::SimDB;
use FortyEightMeta::SimStatusDB;

# We're the completion script for the check_sims stage.
my $STAGE = "check_sims";

@ARGV == 1 or die "Usage: $0 job-dir\n";

my $jobdir = shift;

-d $jobdir or die "$0: job dir $jobdir does not exist\n";

my $stage = new JobStage('Job48', $STAGE, $jobdir);
$stage or die "Cannot create job for $jobdir\n";

my $job_id = basename($jobdir);
my $job = $stage->job();

my $meta = $job->meta;

print "Running job! $jobdir \n";

print "MG load is done\n";

$stage->run_process('create_indexes', "$FIG_Config::bin/mg_create_db_indexes", $jobdir);


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3