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 63d2cc56c8
commit c31187210b
1 file changed
+1 -1
+1 -1
View File
@@ -412,7 +412,7 @@ def call_sample_regions(
if baf is not None: if baf is not None:
sel = model.region_sel(r.name) sel = model.region_sel(r.name)
rb = baf[sel] 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: if pf is not None:
rb = np.where(np.isfinite(pf) & (pf > 0.01) & (pf < 0.99), rb, np.nan) # informative SNPs only 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()) n_snp = int(np.isfinite(rb).sum())