Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed May 29, 2024
1 parent 4e1c790 commit 2179864
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions anglerfish/demux/adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,15 @@ def get_mask(self, insert_Ns: bool = True) -> str:
"""

index_mask_length = (
len(self.index_seq) if self.index_seq is not None and insert_Ns and self.has_index else 0
len(self.index_seq)
if self.index_seq is not None and insert_Ns and self.has_index
else 0
)

umi_mask_length = (
max(self.len_umi_after_index, self.len_umi_before_index) if insert_Ns and self.has_umi else 0
max(self.len_umi_after_index, self.len_umi_before_index)
if insert_Ns and self.has_umi
else 0
)

# Test if the index is specified in the adaptor sequence when it shouldn't be
Expand Down

0 comments on commit 2179864

Please sign in to comment.