Skip to content

Commit

Permalink
bypass mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Sep 12, 2024
1 parent dfabee5 commit 1eb646d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/generate_aviti_run_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ def idxs_from_label(label: str) -> list[str | tuple[str, str]]:
if TENX_SINGLE_PAT.findall(label):
match = TENX_SINGLE_PAT.findall(label)[0]
for tenXidx in Chromium_10X_indexes[match]:
idxs.append(tenXidx)
idxs.append(tenXidx) # type: ignore
# Case of 10X dual indexes
elif TENX_DUAL_PAT.findall(label):
match = TENX_DUAL_PAT.findall(label)[0]
i7_idx = Chromium_10X_indexes[match][0]
i5_idx = Chromium_10X_indexes[match][1]
idxs.append((i7_idx, revcomp(i5_idx)))
idxs.append((i7_idx, revcomp(i5_idx))) # type: ignore
# Case of SS3 indexes
elif SMARTSEQ_PAT.findall(label):
match = SMARTSEQ_PAT.findall(label)[0]
for i7_idx in SMARTSEQ3_INDEXES[match][0]:
for i5_idx in SMARTSEQ3_INDEXES[match][1]:
idxs.append((i7_idx, revcomp(i5_idx)))
idxs.append((i7_idx, revcomp(i5_idx))) # type: ignore
# NoIndex cases
elif label.replace(",", "").upper() == "NOINDEX" or (
label.replace(",", "").upper() == ""
Expand All @@ -110,10 +110,10 @@ def idxs_from_label(label: str) -> list[str | tuple[str, str]]:
match = IDX_PAT.findall(label)[0]
if "-" in match:
idx1, idx2 = match.split("-")
idxs.append((idx1, revcomp(idx2)))
idxs.append((idx1, revcomp(idx2))) # type: ignore
else:
idx1 = match
idxs.append(idx1)
idxs.append(idx1) # type: ignore
else:
raise AssertionError(f"Could not parse index from '{label}'.")
return idxs
Expand Down

0 comments on commit 1eb646d

Please sign in to comment.