Skip to content
Snippets Groups Projects
Commit 2a1330c2 authored by Patrick Meidl's avatar Patrick Meidl
Browse files

don't check for same seq_region if no seq_region attached to feature

parent 5a29ab03
No related branches found
No related tags found
No related merge requests found
......@@ -1061,8 +1061,8 @@ sub overlaps {
my $sr1_name = $self->seq_region_name;
my $sr2_name = $f->seq_region_name;
if (!$sr1_name or !$sr2_name or ($sr1_name ne $sr2_name)) {
warning("Bio::EnsEMBL::Feature->overlaps(): features are on different seq regions (or not attached to a seq region at all).");
if ($sr1_name and $sr2_name and ($sr1_name ne $sr2_name)) {
warning("Bio::EnsEMBL::Feature->overlaps(): features are on different seq regions.");
return undef;
}
......
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