Skip to content
Snippets Groups Projects
Commit bafea86b authored by Ian Longden's avatar Ian Longden
Browse files

do not throw if the same slice is not used for creatins introns. Test the seq region name also

parent eeb10885
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,12 @@ sub new {
}
if($e1->slice ne $e2->slice){
throw("Exons on different slices. Not allowed");
if($e1->slice->seq_region_name ne $e2->slice->seq_region_name){
throw("Exons on different slices. Not allowed");
}
else{
warn("Exons have different slice references to the same seq_region\n");
}
}
else{
$self->{'slice'} = $e1->slice;
......
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