From 3ad676c2003ce13001dc4901b4c0d62e6dcef248 Mon Sep 17 00:00:00 2001 From: Andrey Prjibelski Date: Fri, 15 Nov 2024 17:20:31 +0200 Subject: [PATCH] fix linear output of grouped counts, fixes #258, huge thanks to @qsonehara --- src/long_read_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/long_read_counter.py b/src/long_read_counter.py index 8bc13c3e..dd823731 100644 --- a/src/long_read_counter.py +++ b/src/long_read_counter.py @@ -247,7 +247,7 @@ def __init__(self, output_prefix, assignment_extractor, read_groups, read_counte self.group_numeric_ids = {} self.ordered_groups = sorted(read_groups) if self.ordered_groups: - for i, g in enumerate(read_groups): + for i, g in enumerate(self.ordered_groups): self.group_numeric_ids[g] = i self.read_counter = read_counter