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