Skip to content
Snippets Groups Projects
Commit 0e02a312 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

In equals(): Also consider end_phase().

parent 799ea83c
No related branches found
No related tags found
No related merge requests found
......@@ -200,11 +200,12 @@ sub new {
sub end_phase {
my $self = shift;
if( @_ ) {
if (@_) {
$self->{'end_phase'} = shift;
} else {
if( ! defined ( $self->{'end_phase'} )) {
warning( "No end phase set in Exon. You must set it explicitly." );
}
else {
if ( !defined( $self->{'end_phase'} ) ) {
warning("No end phase set in Exon. You must set it explicitly.");
}
}
return $self->{'end_phase'};
......@@ -871,7 +872,8 @@ sub equals {
if ( $self->start() == $exon->start() &&
$self->end() == $exon->end() &&
$self->strand() == $exon->strand() &&
$self->phase() == $exon->phase() )
$self->phase() == $exon->phase() &&
$self->end_phase() == $exon->end_phase() )
{
return 1;
}
......
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