None available.
sub configure_defaults
{ my $self = shift;
$self->options('T=2 H=2200');
$self->method_link_type('BLASTZ_RAW');
$self->max_alignments('0');
return 0; } |
sub configure_runnable
{ my $self = shift;
my (@db_chunk) = @{$self->db_DnaFragChunkSet->get_all_DnaFragChunks};
my $qyChunkFile;
if($self->query_DnaFragChunkSet->count == 1) {
my ($qy_chunk) = @{$self->query_DnaFragChunkSet->get_all_DnaFragChunks};
$qyChunkFile = $self->dumpChunkToWorkdir($qy_chunk);
} else {
$qyChunkFile = $self->dumpChunkSetToWorkdir($self->query_DnaFragChunkSet);
}
my @db_chunk_files;
foreach my $db_chunk (@{$self->db_DnaFragChunkSet->get_all_DnaFragChunks}) {
push @db_chunk_files, $self->dumpChunkToWorkdir($db_chunk);
}
if (@db_chunk_files > 1) {
warning("you have given a chunkset for the database; dumping individual chunks\n" .
"and creating a runnable for each one");
}
my $program = $self->analysis->program_file;
$program = 'blastz' unless($program);
if($self->debug) {
print("running with analysis '".$self->analysis->logic_name."'\n");
print(" options : ", $self->options, "\n");
print(" program : $program\n");
}
$self->delete_fasta_dumps_but_these([$qyChunkFile,@db_chunk_files]);
foreach my $dbChunkFile (@db_chunk_files) {
my $runnable = Bio::EnsEMBL::Analysis::Runnable::Blastz->
new(
-query => $dbChunkFile,
-database => $qyChunkFile,
-options => $self->options,
-program => $program,
-analysis => $self->analysis,
);
if($self->debug >1) {
my ($fid) = $dbChunkFile =~ /([^\/]+)$/;
$runnable->resultsfile($self->worker_temp_directory . "/results.$fid.");
$runnable->results_to_file(1); }
$self->runnable($runnable);
}
return 1;
}
1; } |
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _