Bio::EnsEMBL::Compara::Production::GenomicAlignBlock
Blat
Toolbar
Summary
Bio::EnsEMBL::Compara::RunnableDB::Blat
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
my $db = Bio::EnsEMBL::Compara::DBAdaptor->new($locator);
my $repmask = Bio::EnsEMBL::Analysis::RunnableDB::Blat->new (
-db => $db,
-input_id => $input_id
-analysis => $analysis );
$repmask->fetch_input(); #reads from DB
$repmask->run();
$repmask->output();
$repmask->write_output(); #writes to DB
Description
This object wraps Bio::EnsEMBL::Analysis::Runnable::Blat to add
functionality to read and write to databases.
The appropriate Bio::EnsEMBL::Analysis object must be passed for
extraction of appropriate parameters. A Bio::EnsEMBL::Analysis::DBSQL::Obj is
required for database access.
Methods
configure_defaults | No description | Code |
configure_runnable | No description | Code |
Methods description
None available.
Methods code
configure_defaults | description | prev | next | Top |
sub configure_defaults
{ my $self = shift;
$self->options('-minScore=30 -t=dnax -q=dnax -mask=lower -qMask=lower');
$self->method_link_type('TRANSLATED_BLAT');
return 0;
}
} |
configure_runnable | description | prev | next | Top |
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;
my $db_chunks = $self->db_DnaFragChunkSet->get_all_DnaFragChunks;
my $dnafrag = $db_chunks->[0]->dnafrag;
my $name = $dnafrag->name . "_" . $db_chunks->[0]->seq_start . "_" . $db_chunks->[0]->seq_end;
my $dbChunkFile = "" . $self->dump_loc . "/" . $name . ".fa";
my $program = $self->analysis->program_file;
$program = $self->analysis->program unless ($program);
$program = 'blat-32' 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,$dbChunkFile]);
my $options = $self->options;
my $runnable = Bio::EnsEMBL::Analysis::Runnable::Blat->
new(
-query => $qyChunkFile,
-database => $dbChunkFile,
-options => $options,
-program => $program,
-analysis => $self->analysis,
);
$self->runnable($runnable);
return 1;
}
1; } |
General documentation
Describe contact details here
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _