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
16b896bd
Commit
16b896bd
authored
Aug 01, 2006
by
Anne Parker
Browse files
Hack to fetch_by_region to make it look for 'group' if 'chromosome' is not available
parent
788041e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+4
-0
No files found.
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
View file @
16b896bd
...
...
@@ -186,6 +186,10 @@ sub fetch_by_region {
if
(
$coord_system_name
)
{
$cs
=
$csa
->
fetch_by_name
(
$coord_system_name
,
$version
);
if
(
!
$cs
&&
$coord_system_name
eq
'
chromosome
'
)
{
$cs
=
$csa
->
fetch_by_name
('
group
',
$version
);
}
if
(
!
$cs
)
{
throw
("
Unknown coordinate system:
\n
name='
$coord_system_name
'
"
.
"
version='
$version
'
\n
");
...
...
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