Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
7b79629c
Commit
7b79629c
authored
Feb 04, 2010
by
Andreas Kusalananda Kähäri
Browse files
BUGFIX:
Always de-reference the value got from get_mapping_path(). Found by Magali.
parent
4501b68b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+7
-5
modules/Bio/EnsEMBL/TopLevelAssemblyMapper.pm
modules/Bio/EnsEMBL/TopLevelAssemblyMapper.pm
+2
-2
No files found.
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
View file @
7b79629c
...
...
@@ -1465,11 +1465,13 @@ sub store_assembly{
"
the component Slice Coord_system
"
);
}
my
@path
=
$asm_cs
->
adaptor
->
get_mapping_path
(
$asm_cs
,
$cmp_cs
);
if
(
!
@path
)
{
throw
("
No mapping path defined between
"
.
$asm_cs
->
name
.
"
and
"
.
$cmp_cs
->
name
);
my
@path
=
@
{
$asm_cs
->
adaptor
()
->
get_mapping_path
(
$asm_cs
,
$cmp_cs
)
};
if
(
!
@path
)
{
throw
("
No mapping path defined between
"
.
$asm_cs
->
name
()
.
"
and
"
.
$cmp_cs
->
name
()
);
}
if
(
$asm_slice
->
length
!=
$cmp_slice
->
length
){
...
...
modules/Bio/EnsEMBL/TopLevelAssemblyMapper.pm
View file @
7b79629c
...
...
@@ -184,7 +184,7 @@ sub map {
last
if
(
$cs
->
rank
>=
$from_rank
);
#check if a mapping path even exists to this coordinate system
my
@mapping_path
=
$csa
->
get_mapping_path
(
$cs
,
$other_cs
)
;
my
@mapping_path
=
@
{
$csa
->
get_mapping_path
(
$cs
,
$other_cs
)
}
;
if
(
@mapping_path
)
{
...
...
@@ -325,7 +325,7 @@ sub _list {
last
if
(
$cs
->
rank
>=
$from_rank
);
#check if a mapping path even exists to this coordinate system
my
@mapping_path
=
$csa
->
get_mapping_path
(
$cs
,
$other_cs
)
;
my
@mapping_path
=
@
{
$csa
->
get_mapping_path
(
$cs
,
$other_cs
)
}
;
if
(
@mapping_path
)
{
...
...
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