Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
8ed4353f
Commit
8ed4353f
authored
Mar 06, 2008
by
Eugene Kulesha
Browse files
take care of the situations when source type presented by a variable rather than a array
parent
d9ebe027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
modules/Bio/EnsEMBL/Slice.pm
modules/Bio/EnsEMBL/Slice.pm
+6
-1
modules/Bio/EnsEMBL/Storable.pm
modules/Bio/EnsEMBL/Storable.pm
+2
-1
No files found.
modules/Bio/EnsEMBL/Slice.pm
View file @
8ed4353f
...
...
@@ -2707,9 +2707,14 @@ sub get_all_DAS_Features{
foreach
my
$dasfact
(
@
{
$self
->
get_all_DASFactories
}
){
my
$dsn
=
$dasfact
->
adaptor
->
dsn
;
my
$name
=
$dasfact
->
adaptor
->
name
;
my
$type
=
$dasfact
->
adaptor
->
type
;
#
my $type = $dasfact->adaptor->type;
my
$url
=
$dasfact
->
adaptor
->
url
;
my
(
$type
)
=
$dasfact
->
adaptor
->
mapping
;
if
(
ref
$type
eq
'
ARRAY
')
{
$type
=
shift
@$type
;
}
$type
||=
$dasfact
->
adaptor
->
type
;
# Construct a cache key : SOURCE_URL/TYPE
# Need the type to handle sources that serve multiple types of features
...
...
modules/Bio/EnsEMBL/Storable.pm
View file @
8ed4353f
...
...
@@ -195,12 +195,13 @@ sub get_all_DAS_Features{
foreach
my
$dasfact
(
@
{
$self
->
get_all_DASFactories
}
){
my
$dsn
=
$dasfact
->
adaptor
->
dsn
;
my
$name
=
$dasfact
->
adaptor
->
name
;
my
$type
=
$dasfact
->
adaptor
->
type
;
my
$url
=
$dasfact
->
adaptor
->
url
;
# Construct a cache key : SOURCE_URL/TYPE
# Need the type to handle sources that serve multiple types of features
my
(
$type
)
=
@
{
$dasfact
->
adaptor
->
mapping
||
[]
};
$type
||=
$dasfact
->
adaptor
->
type
;
my
$key
=
join
('
/
',
$name
,
$type
);
if
(
$self
->
{
_das_features
}
->
{
$key
}
){
# Use cached
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment