Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed May 30, 2024
1 parent 5a8cac6 commit 656d710
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion anglerfish/demux/adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ def __init__(self, sequence_token: str, name: str, index_seq: str | None):
self.len_before_index = None
self.len_after_index = None

self.len_total = len(self.get_mask(insert_Ns=True)) if self.index_seq else None
if (
self.has_index is True and self.index_seq is not None
) or self.has_index is False:
self.len_total = len(self.get_mask(insert_Ns=True))
else:
self.len_total = None
self.len_constant = len(self.get_mask(insert_Ns=False))

def get_mask(self, insert_Ns: bool = True) -> str:
Expand Down

0 comments on commit 656d710

Please sign in to comment.