Skip to content

Commit

Permalink
fix assignment type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Apr 25, 2024
1 parent 070c5b4 commit 72b96ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/long_read_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def add_read_info(self, read_assignment=None):
if len(feature_ids):
self.ambiguous_reads += 1

elif read_assignment.assignment_type.is_inconsistent():
elif assignment_type.is_inconsistent():
count_value = self.read_counter.process_inconsistent(assignment_type, len(feature_ids))
if count_value > 0:
for feature_id in feature_ids:
Expand All @@ -245,7 +245,7 @@ def add_read_info(self, read_assignment=None):
self.all_features.add(feature_id)
#self.confirmed_features.add((group_id, feature_id))

elif read_assignment.assignment_type.is_unique():
elif assignment_type.is_unique():
feature_id = list(feature_ids)[0]
self.feature_counter[group_id][feature_id] += 1.0
self.all_features.add(feature_id)
Expand Down

0 comments on commit 72b96ba

Please sign in to comment.