File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments