Skip to content

Commit

Permalink
Add missig conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
chuan-wang committed Oct 29, 2024
1 parent c89c8b3 commit 91bb771
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions taca/illumina/NovaSeqXPlus_Runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,22 @@ def _generate_samplesheet_subset(
)
noindex_flag = True
if field == "index2" and noindex_flag:
line[field] = (
"T" * index_cycles[1] if index_cycles[1] != 0 else ""
)
if software == "bclconvert":
line[field] = (
"T" * index_cycles[1] if index_cycles[1] != 0 else ""
)
else:
line[field] = (
"A" * index_cycles[1] if index_cycles[1] != 0 else ""
)
noindex_flag = False
# Case of IDT UMI
if (
field == "index" or field == "index2"
) and IDT_UMI_PAT.findall(line[field]):
line[field] = line[field].replace("N", "")
# Convert Index 2 into RC for NovaSeqXPlus
if field == "index2":
# Convert Index 2 into RC for NovaSeqXPlus for BCL Convert
if field == "index2" and software == "bclconvert":
line[field] = self._revcomp(line[field])
line_ar.append(line[field])
output += ",".join(line_ar)
Expand Down

0 comments on commit 91bb771

Please sign in to comment.