Skip to content

Commit

Permalink
Fix regression in filter_alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Plaza Onate committed Mar 13, 2024
1 parent 3bbf0a4 commit ef97cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meteor/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ef97cb0

Please sign in to comment.