From 1a8a617b80d46c7ee38cbe5419f8cb4a815853f8 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Tue, 30 Apr 2013 15:10:39 +0000 Subject: [PATCH] if all you want to test is if a transcript has a mapping, don't add any additional conditions --- modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm b/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm index a1a73bee57..5386b1ef6d 100644 --- a/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm +++ b/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm @@ -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; -- GitLab