[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.1 - (download) (as text) (annotate)
Fri May 30 23:23:51 2008 UTC (12 years, 1 month ago) by olson
Branch: MAIN
Development checkin of new metagenomics RAST pipeline.

#
# 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->set_status("complete");
$stage->set_running("no");


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3