Bio::EnsEMBL::Analysis::RunnableDB::Finished Augustus
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Analysis::Config::General
Bio::EnsEMBL::Analysis::Runnable::Finished::Augustus
Bio::EnsEMBL::Analysis::RunnableDB::Genscan
Bio::EnsEMBL::Utils::Exception qw ( throw warning )
Inherit
Bio::EnsEMBL::Analysis::RunnableDB::Genscan
Synopsis
  my $runnabledb = Bio::EnsEMBL::Analysis::RunnableDB::Finished::Augustus->
new(
-input_id => 'contig::AL805961.22.1.166258:1:166258:1',
-db => $db,
-analysis => $analysis,
);
$runnabledb->fetch_input;
$runnabledb->run;
$runnabledb->write_output;
Description
fetches sequence data from database an instantiates and runs the
augustus runnable, this inherits from the Genscan runnableDB an as such doesnt
implement much itself
Methods
runnable_pathDescriptionCode
write_output
No description
Code
Methods description
runnable_pathcode    nextTop
  Arg [1]   : Bio::EnsEMBL::Analysis::RunnableDB::Finished::Augustus
Function : return the runnable path
Returntype: string
Exceptions:
Example : my $runnable = $self->runnable_path->new
(
-query => $self->query,
-program => $self->analysis->program_file,
-analysis => $self->analysis,
%parameters,
);
Methods code
runnable_pathdescriptionprevnextTop
sub runnable_path {
  my ($self);
  return "Bio::EnsEMBL::Analysis::Runnable::Finished::Augustus";
}
write_outputdescriptionprevnextTop
sub write_output {
  my ($self) = @_;
  my $adaptor = $self->db->get_PredictionTranscriptAdaptor;
  my $dbh = $self->db->dbc->db_handle;
  my @output = @{$self->output};
  my $ff = $self->feature_factory;

  $dbh->begin_work;

  eval {
	  foreach my $pt(@output){
	    $pt->analysis($self->analysis);
	    $pt->slice($self->query) if(!$pt->slice);
	    print STDERR "Validate transcript ".$pt->seqname."\n";
	    # dismiss transcript with invalid translation
eval { $ff->validate_prediction_transcript($pt, 1); }; if($@){ warning($@); next; } $adaptor->store($pt); } $dbh->commit; }; if ($@) { $dbh->rollback; throw("UNABLE TO WRITE PREDICTION TRANSCRIPTS IN DATABASE\n[$@]\n"); } } 1;
}
General documentation
CONTACTTop
Post questions to : anacode-people@sanger.ac.uk