From 17432a9a9829533f81390a0343849e8aec0d118b Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Thu, 20 Jul 2017 09:16:59 +0100 Subject: [PATCH] ENSCORESW-2355: order by highest score for reproducible results --- misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm b/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm index b2911637a4..dbb411b85c 100644 --- a/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm @@ -316,7 +316,7 @@ sub run_script { my ($score, $tl_score); # Comparing the scores based on coding exon overlap # If there is a stale mate, chose best exon overlap score - foreach my $tid (keys(%transcript_result)) { + foreach my $tid (sort { $transcript_result{$b} <=> $transcript_result{$a} } keys(%transcript_result)) { $score = $transcript_result{$tid}; $tl_score = $tl_transcript_result{$tid}; if ($score > $transcript_score_threshold || $tl_score > $tl_transcript_score_threshold) { -- GitLab