From ef97cb0ba6ad525f78d90f7aad43de21cb2e0894 Mon Sep 17 00:00:00 2001 From: Florian Plaza Onate Date: Wed, 13 Mar 2024 15:18:28 +0000 Subject: [PATCH] Fix regression in filter_alignments --- meteor/counter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meteor/counter.py b/meteor/counter.py index e5efe8d..e6eac17 100644 --- a/meteor/counter.py +++ b/meteor/counter.py @@ -158,14 +158,14 @@ def filter_alignments( if prev_score == score: # add the genes to the list if it doesn't exist reads[read_id].append(element) - genes[read_id].append(int(read_id)) + genes[read_id].append(int(element.reference_name)) # case new score is higher elif prev_score < score: # set the new score tmp_score[read_id] = score # We keep the new score and forget the previous one reads[read_id] = [element] - genes[read_id] = [int(read_id)] + genes[read_id] = [int(element.reference_name)] return reads, genes def uniq_from_mult(