Bio::EnsEMBL::Analysis::Runnable::Funcgen
SWEmbl
Toolbar
Summary
Bio::EnsEMBL::Analysis::Runnable::Funcgen::SWEmbl
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
my $runnable = Bio::EnsEMBL::Analysis::Runnable::Funcgen::SWEmbl->new
(
-analysis => $analysis,
-query => 'slice',
-program => 'program.pl',
);
$runnable->run;
my @features = @{$runnable->output};
Description
SWEmbl expects bed or maq mapview files as input and predicts features which
can be stored in the annotated_feature table in the eFG database
Methods
Methods description
Arg [1] : Bio::EnsEMBL::Analysis::Runnable::SWEmbl Arg [2] : filename Description : Returntype : Exceptions : Example : |
Arg [1] : Bio::EnsEMBL::Analysis::Runnable::SWEmbl Arg [2] : string, program name Usage : Description : Returns : Exceptions : |
Methods code
sub config_file
{ my $self = shift;
$self->{'config_file'} = shift if(@_);
return $self->{'config_file'};
}
1; } |
sub query
{ my $self = shift;
$self->{'query'} = shift if(@_);
throw("file ".$self->{'query'}. " doesn't exist") if (! -e $self->{'query'});
return $self->{'query'}; } |
sub run
{
print "Bio::EnsEMBL::Analysis::Runnable::Funcgen::SWEmbl::run\n";
my ($self, $dir) = @_;
$self->run_analysis;
print "Parsing results ... ";
$self->parse_results();
print "done!\n"; } |
sub run_analysis
{
my ($self, $program) = @_;
if(!$program){
$program = $self->program;
}
throw($program." is not executable SWEmble::run_analysis ")
unless($program && -x $program);
my @fields = (0..2,5);
$self->output_fields(\@fields);
(my $resultsfile = $self->infile());
$self->resultsfile($resultsfile);
warn("RESULTS FILE: ".$resultsfile);
my $command = $self->program . ' -B -z -i ' . $self->query . ' ' .
$self->options . ' -o ' . $resultsfile;
warn("Running analysis " . $command);
eval { system($command) };
throw("FAILED to run $command: ", $@) if ($@);
}
} |
General documentation
Stefan Graf, Ensembl Functional Genomics -