Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
2131d21a
Commit
2131d21a
authored
11 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
removed 3 lines of commented out code
replaced reg with registry for more explicit code
parent
7cb1a222
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
+6
-10
6 additions, 10 deletions
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
with
6 additions
and
10 deletions
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
+
6
−
10
View file @
2131d21a
...
...
@@ -64,7 +64,7 @@ use Bio::EnsEMBL::Utils::Argument qw(rearrange);
use
Bio::EnsEMBL::
Registry
;
use
Bio::EnsEMBL::Utils::
ConfigRegistry
;
my
$reg
=
"
Bio::EnsEMBL::Registry
";
my
$reg
istry
=
"
Bio::EnsEMBL::Registry
";
=head2 new
...
...
@@ -147,10 +147,6 @@ sub new {
$self
=
Bio::EnsEMBL::Utils::ConfigRegistry::
gen_load
(
$self
);
# if(!defined($species) ){
# $reg->find_and_add_aliases($self);
# }
$self
->
species_id
(
$species_id
||
1
);
$self
->
is_multispecies
(
defined
(
$is_multispecies
)
...
...
@@ -555,7 +551,7 @@ sub add_ExternalFeatureFactory{
sub
get_adaptor
{
my
(
$self
,
$canonical_name
,
@other_args
)
=
@_
;
return
$reg
->
get_adaptor
(
$self
->
species
(),
$self
->
group
(),
$canonical_name
);
return
$reg
istry
->
get_adaptor
(
$self
->
species
(),
$self
->
group
(),
$canonical_name
);
}
...
...
@@ -580,7 +576,7 @@ sub get_adaptor {
sub
set_adaptor
{
my
(
$self
,
$canonical_name
,
$module
)
=
@_
;
$reg
->
add_adaptor
(
$self
->
species
(),
$self
->
group
(),
$canonical_name
,
$module
);
$reg
istry
->
add_adaptor
(
$self
->
species
(),
$self
->
group
(),
$canonical_name
,
$module
);
return
$module
;
}
...
...
@@ -895,11 +891,11 @@ sub dnadb {
if
(
@
_
)
{
my
$arg
=
shift
;
$reg
->
add_DNAAdaptor
(
$self
->
species
(),
$self
->
group
(),
$arg
->
species
(),
$arg
->
group
());
$reg
istry
->
add_DNAAdaptor
(
$self
->
species
(),
$self
->
group
(),
$arg
->
species
(),
$arg
->
group
());
}
# return $self->{'dnadb'} || $self;
return
$reg
->
get_DNAAdaptor
(
$self
->
species
(),
$self
->
group
())
||
$self
;
return
$reg
istry
->
get_DNAAdaptor
(
$self
->
species
(),
$self
->
group
())
||
$self
;
}
...
...
@@ -917,7 +913,7 @@ sub AUTOLOAD {
throw
(
sprintf
(
"
Could not work out type for %s
\n
",
$AUTOLOAD
)
);
}
my
$ret
=
$reg
->
get_adaptor
(
$self
->
species
(),
$self
->
group
(),
$type
);
my
$ret
=
$reg
istry
->
get_adaptor
(
$self
->
species
(),
$self
->
group
(),
$type
);
return
$ret
if
$ret
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment