Skip to content

Commit 9fde58c

Browse files
committed
Revert "update merge_demux_stats.py"
This reverts commit 8f0c93c.
1 parent 8f0c93c commit 9fde58c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

bin/merge_demux_stats.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,14 @@ def main():
407407

408408
# ── 4. NanoStat per well — filter to this pool only ──────────────────────
409409
pool_nanostat = [
410-
f for f in args.nanostat
411-
if (
412-
Path(f).stem.replace("_nanostat", "").strip() in sample_to_well
413-
or Path(f).stem.replace("_nanostat", "").strip().split(".")[-1] in sample_to_well
414-
or Path(f).stem.replace("_nanostat", "").strip() == f"{pool_id}.{extract_well(Path(f).stem)}"
415-
)
410+
f for f in args.nanostat
411+
if Path(f).name.startswith(pool_id + ".")
412+
or Path(f).name.startswith(pool_id + "_")
416413
]
414+
if not pool_nanostat:
415+
print(f"[WARN] No NanoStat files matched pool {pool_id} — using all files",
416+
file=sys.stderr)
417+
pool_nanostat = args.nanostat
417418

418419
print(f"[debug] NanoStat files for pool {pool_id}: "
419420
f"{[Path(f).name for f in pool_nanostat]}", file=sys.stderr)

0 commit comments

Comments
 (0)