Summary | Package variables | Synopsis | Description | General documentation | Methods |
WebCvs | Raw content |
$merged_adaptor = new Bio::EnsEMBL::DBSQL::MergedAdaptor(
-species => "human",
-type => "Population"
);
AUTOLOAD | No description | Code |
DESTROY | No description | Code |
add_adaptor | Description | Code |
add_list | Description | Code |
new | Description | Code |
printit | No description | Code |
add_adaptor | code | next | Top |
Example : $MergedAdaptor->add_adaptor(@adaptors); |
add_list | code | prev | next | Top |
Example : $MergedAdaptor->add_list(@adaptors); |
new | code | prev | next | Top |
Example : $MergedAdaptor = new |
AUTOLOAD | description | prev | next | Top |
my ($self,@args) = @_; my @array_return=(); my $ref_return = undef; $AUTOLOAD =~ /^.*::(\w+)+$/ ; my $sub = $1; foreach my $adaptor (@{$self->{'list'}}) { my $ref; if($adaptor->can($sub)){ $ref = $adaptor->$sub(@args); if( ref($ref) eq 'ARRAY' ) { push @array_return, @{$ref}; } else { push @array_return, $ref; } } else{ # end of can}
warn("In Merged Adaptor $adaptor cannot call sub $sub"); } } return\@ array_return;
DESTROY | description | prev | next | Top |
}
1;
}add_adaptor | description | prev | next | Top |
my ($self,$adaptor)=@_; if(!defined ($self->{'list'})){ my @list =(); push(@list,$adaptor); $self->{'list'}=\@ list; } else{ push(@{$self->{'list'}},$adaptor); }}
add_list | description | prev | next | Top |
my ($self, @arr) = @_; foreach my $adap (@arr){ $self->add_adaptor($adap); }}
new | description | prev | next | Top |
my ($class,@args) = @_; my $self ={}; bless $self,$class; my ($species, $type, $groups) = rearrange([qw(SPECIES TYPE GROUPS)], @args); if(!defined($species)|| !defined($type)){ die "Species and Type must be specified\n"; } my @adaps; if (!defined ($groups)){ #get all adaptors for that species and type}
@adaps = @{$reg->get_all_adaptors(-species => $species, -type => $type)}; } else{ #get only specified adaptors for the particular groups
foreach my $group (@{$groups}){ push @adaps, $reg->get_adaptor($species,$group,$type); } } my @list =(); push(@list,@adaps); $self->{'list'}=\@ list; return $self;
printit | description | prev | next | Top |
my ($self)=@_; foreach my $adaptor (@{$self->{'list'}}){ print "printit $adaptor\t".$adaptor->db->group()."\n"; } } use vars '$AUTOLOAD';}
LICENSE | Top |
Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license. For license details, please see /info/about/code_licence.html
CONTACT | Top |
Please email comments or questions to the public Ensembl
developers list at <ensembl-dev@ebi.ac.uk>.
Questions may also be sent to the Ensembl help desk at <helpdesk@ensembl.org>.