pgx_cn: PFB as float64 for the BAF evidence (mypy)

This commit is contained in:
kemal committed 2026-09-29 17:11:50 +01:00
1 parent 1cb7b59559
commit ba8454e2c8
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())