Skip to content

Commit

Permalink
Fix issue where insert size metrics failed on a sample without adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed May 22, 2024
1 parent 16fceb4 commit c5f5037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sequali/report_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ def select_relevant_adapters(adapter_list: Sequence[Tuple[str, int]]):
"""
# Sort list on count
sorted_list = sorted(adapter_list, reverse=True, key=lambda x: (x[1]))
new_list = []
new_list = [("", 0) for _ in range(INSERT_SIZE_MAX_ADAPTER_STORE_SIZE)]
lengths_to_get = set(range(1, INSERT_SIZE_MAX_ADAPTER_STORE_SIZE + 1))
for adapter, count in sorted_list:
if len(adapter) in lengths_to_get:
Expand Down

0 comments on commit c5f5037

Please sign in to comment.