Skip to content
Snippets Groups Projects
Commit 1a8a617b authored by Magali Ruffier's avatar Magali Ruffier
Browse files

if all you want to test is if a transcript has a mapping, don't add any additional conditions

parent db4707d2
No related branches found
No related tags found
No related merge requests found
......@@ -784,7 +784,7 @@ sub non_mapped_transcript_rescore {
'Need a Bio::EnsEMBL::IdMapping::MappingList of transcripts.');
}
# create of lookup hash of mapped source transcripts to target
# create a lookup hash of mapped source transcripts to target
# transcripts
my %transcript_lookup =
map { $_->source => $_->target }
......@@ -808,7 +808,7 @@ sub non_mapped_transcript_rescore {
foreach my $target_tr (@target_transcripts) {
my $mapped_target = $transcript_lookup{ $source_tr->id };
if ( $mapped_target and ( $mapped_target == $target_tr->id ) ) {
if ( $mapped_target ) {
$found_mapped = 1;
last TR;
}
......@@ -828,4 +828,5 @@ sub non_mapped_transcript_rescore {
1 );
} ## end sub non_mapped_transcript_rescore
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