Skip to content

Commit

Permalink
Also reverse the orders of i5 masks for NovaSeqXPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
chuan-wang committed Oct 30, 2024
1 parent d4c4daf commit 3deb5db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taca/illumina/NovaSeqXPlus_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def _generate_samplesheet_subset(
# Settings for BCL Convert
if software == "bclconvert":
output += f"[Settings]{os.linesep}"
# For NovaSeqXPlus, the orders of index 2 masks also need to be reversed
if len(base_mask) == 4 or (len(base_mask) == 3 and "Y" not in base_mask[2]):
base_mask[2] = "".join(re.findall(r"[A-Z]\d+", base_mask[2])[::-1])
output += "OverrideCycles,{}{}".format(";".join(base_mask), os.linesep)
if any("U" in bm for bm in base_mask):
output += f"TrimUMI,0{os.linesep}"
Expand Down

0 comments on commit 3deb5db

Please sign in to comment.