Commit 0b5d01c1 authored by Ian Longden's avatar Ian Longden
Browse files

check for LRGSlice too

parent 4c58101e
......@@ -115,7 +115,8 @@ sub new {
rearrange(['START','END','STRAND','SLICE','ANALYSIS', 'SEQNAME',
'DBID', 'ADAPTOR'], @_);
if($slice) {
if(!ref($slice) || !$slice->isa('Bio::EnsEMBL::Slice')) {
if(defined($slice) && (!ref($slice) ||
(!$slice->isa('Bio::EnsEMBL::Slice') && !$slice->isa('Bio::EnsEMBL::LRGSlice')))){
throw('-SLICE argument must be a Bio::EnsEMBL::Slice not '.$slice);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment