Skip to content

Commit

Permalink
try out simplifying code block
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Aug 5, 2024
1 parent 3c1c9da commit aede079
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions anglerfish/demux/demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,8 @@ def cluster_matches(
)
entry_min_index_dist = entries[entries_min_index_dist_loc]

# If two samples in the sheet are equidistant from the read, skip the read
if (
len(
[
i
for i, j in enumerate(entries_index_dists)
if j == entries_index_dists[entries_min_index_dist_loc]
]
)
> 1
):
# If several samples in the sheet are equidistant from the read, skip the read
if entries_index_dists.count(entry_min_index_dist) > 1:
continue

# Get the coordinates of the read insert
Expand Down

0 comments on commit aede079

Please sign in to comment.