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

In build_overlap_scores(): Only add target if $add_target is non-zero,

just as is done for adding source.
parent 6a698848
No related branches found
No related tags found
No related merge requests found
...@@ -230,13 +230,14 @@ sub build_overlap_scores { ...@@ -230,13 +230,14 @@ sub build_overlap_scores {
my $add_target = 0; my $add_target = 0;
# compare exon containers # compare exon containers
if ($source_ec and $target_ec) { if ( $source_ec and $target_ec ) {
my $cmp = $self->compare_exon_containers($source_ec, $target_ec); my $cmp =
$add_source = 1 if ($cmp <= 0); $self->compare_exon_containers( $source_ec, $target_ec );
$add_target = 1 if ($cmp >= 0); if ( $cmp <= 0 ) { $add_source = 1 }
if ( $cmp => 0 ) { $add_target = 1 }
} elsif ($source_ec) { } elsif ($source_ec) {
$add_source = 1; $add_source = 1;
} else { } elsif ($target_ec) {
$add_target = 1; $add_target = 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