Skip to content

Commit

Permalink
Return empty string instead of None for missing I2
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjunnebo committed Oct 7, 2024
1 parent 533f448 commit 0b030b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taca/element/Element_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_mask(

# Input assertions
if not seq:
return None
return ""
assert re.match(r"^[ACGTN]+$", seq), f"Index '{seq}' has non-ACGTN characters"
assert mask_type in ["umi", "index"], "Mask type must be 'umi' or 'index'"
assert prefix in [
Expand Down Expand Up @@ -525,7 +525,7 @@ def make_demux_manifests(
]
)

if I2Mask:
if I2Mask != "":
settings_section += f"\nI2Mask, {I2Mask}"

if group["has_umi"].all():
Expand Down

0 comments on commit 0b030b1

Please sign in to comment.