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
a41846a9
Commit
a41846a9
authored
Jan 16, 2003
by
Web Admin
Browse files
Fixed code to return slice only if valid
parent
102ac5b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
+11
-8
No files found.
modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm
View file @
a41846a9
...
...
@@ -275,14 +275,17 @@ sub fetch_by_chr_band {
(
$slice_start
,
$slice_end
)
=
$sth
->
fetchrow_array
;
}
return
new
Bio::EnsEMBL::
Slice
(
-
chr_name
=>
$chr
,
-
chr_start
=>
$slice_start
,
-
chr_end
=>
$slice_end
,
-
strand
=>
1
,
-
assembly_type
=>
$type
);
if
(
defined
$slice_start
)
{
return
new
Bio::EnsEMBL::
Slice
(
-
chr_name
=>
$chr
,
-
chr_start
=>
$slice_start
,
-
chr_end
=>
$slice_end
,
-
strand
=>
1
,
-
assembly_type
=>
$type
);
}
$self
->
throw
("
Band not recognised in database
");
}
...
...
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