pgx_cn: PFB as float64 for the BAF evidence (mypy)
ci / test (3.12) (push) Failing after 9s
ci / test (3.13) (push) Failing after 10s

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01814GKVzZVL3FuF3DeiZXhv
This commit is contained in:
kemalandClaude Opus 5.5 committed 2026-09-29 17:11:50 +01:00
1 parent baac9af5c5
commit cc110207aa
1 file changed
+1 -1
+1 -1
View File
@@ -412,7 +412,7 @@ def call_sample_regions(
if baf is not None:
sel = model.region_sel(r.name)
rb = baf[sel]
pf = model.probe_pfb[sel] if model.probe_pfb is not None else None
pf = model.probe_pfb[sel].astype(np.float64) if model.probe_pfb is not None else None
if pf is not None:
rb = np.where(np.isfinite(pf) & (pf > 0.01) & (pf < 0.99), rb, np.nan) # informative SNPs only
n_snp = int(np.isfinite(rb).sum())