Bio::EnsEMBL::Analysis::Config
Blast
Toolbar
Summary
Bio::EnsEMBL::Analysis::Config::Blast
Package variables
No package variables defined.
Synopsis
use Bio::EnsEMBL::Analysis::Config::Blast;
use Bio::EnsEMBL::Analysis::Config::Blast qw(BLAST_CONTIG);
Description
This is a module needed to provide configuration for the
blast RunnableDBs. This informs the various blast runnabledbs what
Parser and Filter objects they should instantiate and also of any
constructor arguments which should go to the Blast Runnable note any
Blast constructor arguments will be overridden by the same key in
analysis table parameters column
BLAST_CONFIG is an array of hashes which contains analysis specific
settings and is keyed on logic_name
Important values are logic_name which should be the same as the
equivalent column in the analysis table.
and blast parser which should be a perl path to a object to parser the
blast report.
the blast_parser object should fit the standard interface which is to
have a method called parse_file which accepts a filename as an argument and
returns a set of results all other constructor arguements are optional but
the two parser objects which currently exist both need a regex, query type
and database type the types needed for different flavours of blast
can be found below and the two parser objects BPliteWrapper and
FilterBPlite both live in Bio/EnsEMBL/Analysis/Tools
blast_filter should be a perl path to a filter object The filter module
isn't obligatory, if none is specified then the blast results won't be
filters after parsing (note some parsers may do filtering) The only filter
object which currently exists is
Bio::EnsEMBL::Analysis::Tools::FeatureFilter. All filter objects must
have a filter_results method but aside from that there is no other
requirements. Any constructor args should be specified in the hash.
FeatureFilter can take min_score, max_pvalue coverage prune and hardprune
blast_params is any constructor parameters for which ever blast module
you are using. sequence ID format sometimes changes in the Uniprot, Unigene
etc databases used in BLAST, so modify the regex if necessary. note all
constructor parameters will be overridden by values got from the
parameters column of the analysis table.
AB_INITIO_LOGICNAME if for BlastGenscanPep/DNA runnabledbs for which
ab initio predictions to use when running the blast and they currently
default to Genscan
this example file contains a default setting which is what we use for out
BlastGenscanPep against Swall
Methods
Methods description
None available.
Methods code
import | description | prev | next | Top |
sub import
{ my ($callpack) = caller(0); my $pack = shift;
my @vars = @_ ? @_ : keys(%Config);
return unless @vars;
eval "package $callpack; use vars qw("
. join(' ', map { '$'.$_ } @vars) . ")";
die $@ if $@;
foreach (@vars) {
if (defined $Config{ $_ }) {
no strict 'refs';
*{"${callpack}::$_"} =\$ Config{ $_ };
} else {
die "Error: Config: $_ not known\n";
}
}
}
1; } |
General documentation