pgx_cn: PFB as float64 for the BAF evidence (mypy)
This commit is contained in:
1 parent
4aa240d8a5
commit
6c7b5cfe26
1 file changed
+1
-1
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user