Bio::Grid::Run::SGE::Job - the container for settings and important functions
use Bio::Grid::Run::SGE::Job; my $j = Bio::Grid::Run::SGE::Job->new; $j->run( pre_task => sub {...}, task => sub {...}, post_task => sub {...}, usage => sub {...} );
This class is never created directly, it is always created via L <Bio::Grid::Run::SGE> and exported as C <job()> function:
use Bio::Grid::Run::SGE; my $j = job(); $j->run(...);
Returns a Bio::Gonzales::Util::Log logging instance. Useful functions are
$log-debug("text")>
$log-
$log-info("text")>
$log-warn("text")>
$log-error("text")>
$log-fatal("text")>
$log-fatal_confess("text")>
Get (or change) the job configuration.
Get the job environment.
You can also change stuff, but be careful; you have been warned!
The same as $j-env('job_id')>.
$j-
The same as $j-env('task_id')>.
Runs command eiter as array or as simple string (see also system) and gives a warning message if something goes wrong.
It returns undef is something went wrong and 1 if the exit code of the program was ok.
undef
Runs command eiter as array or as simple string (see also system) and dies if something goes wrong.
Bio::Grid::Run::SGE
jw bargsten, <jwb at cpan dot org>
<jwb at cpan dot org>
To install Bio::Grid::Run::SGE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Grid::Run::SGE
CPAN shell
perl -MCPAN -e shell install Bio::Grid::Run::SGE
For more information on module installation, please visit the detailed CPAN module installation guide.