Skip to content
Snippets Groups Projects
Commit 0b2c0a6b authored by Daniel Rios's avatar Daniel Rios
Browse files

modified attribute groups to be an array ref

parent 2e9c3339
No related branches found
No related tags found
No related merge requests found
......@@ -46,12 +46,12 @@ my $reg = "Bio::EnsEMBL::Registry";
=head2 new
Example : $MergedAdaptor = new
: Bio::EnsEMBL::DBSQL::MergedAdaptor(-species=> 'human', -type =>'Population', -groups => 'Sanger,Ensembl');
: Bio::EnsEMBL::DBSQL::MergedAdaptor(-species=> 'human', -type =>'Population', -groups => ['Sanger','Ensembl']);
Arg [SPECIES]: (optional) string
species name to get adaptors for
Arg [TYPE] : (optional) string
type to get adaptors for
Arg [GROUPS] : (optional) list of groups, separated by comma
Arg [GROUPS] : (optional) ref to list
Description: Creates a new MergedAdaptor
Returntype : Bio::EnsEMBL::DBSQL::MergedAdaptor
......@@ -82,9 +82,7 @@ sub new {
}
else{
#get only specified adaptors for the particular groups
$groups =~ s/\s+//g;
my @groups = split /,/,$groups; #ge the list of groups in an array
foreach my $group (@groups){
foreach my $group (@{$groups}){
push @adaps, $reg->get_adaptor($species,$group,$type);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment