Bio::EnsEMBL::Analysis::Config
ImportArrays
Toolbar
Summary
Bio::EnsEMBL::Analysis::Config::ImportArrays
Package variables
No package variables defined.
Synopsis
use Bio::EnsEMBL::Analysis:Config::ImportAarrys;
Description
This contains the configuration for importing arrays from flat files.
It is entirely dependant on the arrays.env environment which can be used
to set up and run the pipeline in an easy and interactive way. This contains
all possible configurations which will then be set dynamically by the RunnableDB
for each instance using the input_id as a key into a separate ImportArrays.conf
file, listed here as ARRAY_FORMAT_FILE.
The layout of the configuration is a set of hashes,
each one keyed by logic name. There is also a DEFAULT hash,
which is used as the default for all logic names (this
was the configuration pattern stolen from Exonerate2Genes,
although in this case it's very unlikely you will need to have
different configs by logic name).
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