From 21798642ba6da255e6a4ff7a4177b0f9fb2ce4c2 Mon Sep 17 00:00:00 2001 From: kedhammar Date: Wed, 29 May 2024 14:44:38 +0000 Subject: [PATCH] ruff --- anglerfish/demux/adaptor.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/anglerfish/demux/adaptor.py b/anglerfish/demux/adaptor.py index 711cc21..6e0cf87 100644 --- a/anglerfish/demux/adaptor.py +++ b/anglerfish/demux/adaptor.py @@ -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