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
bad758f6
Commit
bad758f6
authored
Nov 04, 2009
by
Ian Longden
Browse files
check for LRGSlice too
parent
1851a3b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/Bio/EnsEMBL/Feature.pm
modules/Bio/EnsEMBL/Feature.pm
+5
-2
No files found.
modules/Bio/EnsEMBL/Feature.pm
View file @
bad758f6
...
...
@@ -364,7 +364,8 @@ sub slice {
if
(
@
_
)
{
my
$sl
=
shift
;
if
(
defined
(
$sl
)
&&
(
!
ref
(
$sl
)
||
!
$sl
->
isa
('
Bio::EnsEMBL::Slice
')))
{
if
(
defined
(
$sl
)
&&
(
!
ref
(
$sl
)
||
(
!
$sl
->
isa
('
Bio::EnsEMBL::Slice
')
&&
!
$sl
->
isa
('
Bio::EnsEMBL::LRGSlice
'))))
{
throw
('
slice argument must be a Bio::EnsEMBL::Slice
');
}
...
...
@@ -516,7 +517,9 @@ sub transfer {
my
$slice
=
shift
;
if
(
!
$slice
||
!
ref
(
$slice
)
||
!
$slice
->
isa
('
Bio::EnsEMBL::Slice
'))
{
throw
('
Slice argument is required
');
if
(
!
$slice
->
isa
('
Bio::EnsEMBL::LRGSlice
')){
throw
('
Slice argument is required
');
}
}
#make a shallow copy of the feature to be transfered
...
...
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