bsvae 0.4.3__tar.gz → 0.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bsvae-0.4.3 → bsvae-0.4.4}/PKG-INFO +1 -1
- {bsvae-0.4.3 → bsvae-0.4.4}/pyproject.toml +1 -1
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/targets.py +4 -1
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/isoform.py +2 -1
- {bsvae-0.4.3 → bsvae-0.4.4}/LICENSE +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/README.md +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/acorde.R +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/edges.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/harness.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/kselect.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/methods.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/runners.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/twn.R +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/wgcna.R +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/_common.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/benchmark.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/networks.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/simulate.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/sweep_k.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/train.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/latent/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/latent/latent_analysis.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/latent/latent_export.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/decoder.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/encoder.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/gmm_prior.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/gmvae.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/losses.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/vae.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/extract_networks.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/module_extraction.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/postprocess.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/quality.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/utils.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/generate.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/isoform.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/metrics.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/scenario.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/__init__.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/datasets.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/helpers.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/hierarchy.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/modelIO.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/preprocess.py +0 -0
- {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/training.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bsvae"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.4" # dynamically resolved by poetry-dynamic-versioning
|
|
4
4
|
description = "Gaussian Mixture VAE for multi-modal biological module discovery in omics data."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = ["Kynon J Benjamin <kj.benjamin90@gmail.com>"]
|
|
@@ -676,7 +676,10 @@ def combine_target_tests(
|
|
|
676
676
|
null_like = zmat[(zmat.max(axis=1) < sps.norm.isf(0.05)) | zmat.isna().any(axis=1)]
|
|
677
677
|
src = null_like if len(null_like) >= 20 else zmat
|
|
678
678
|
rho = src.corr(min_periods=5).fillna(0.0).clip(lower=0.0)
|
|
679
|
-
|
|
679
|
+
# write the unit diagonal into a copy: under pandas copy-on-write (the pandas 3 default) .values is read-only
|
|
680
|
+
r = rho.to_numpy(dtype=float, copy=True)
|
|
681
|
+
np.fill_diagonal(r, 1.0)
|
|
682
|
+
rho = pd.DataFrame(r, index=rho.index, columns=rho.columns)
|
|
680
683
|
rows = []
|
|
681
684
|
for tx, g in long.groupby(level=0):
|
|
682
685
|
p = np.clip(g["p_value"].values.astype(float), 1e-300, 1.0)
|
|
@@ -489,7 +489,8 @@ def isoform_specific_calls(
|
|
|
489
489
|
E = _residualize_eigengenes(eigengenes, cols.index(int(gm))) if gm in cols else eigengenes
|
|
490
490
|
kme[rows_idx] = compute_kme(resid.iloc[rows_idx], E, list(resid.index[rows_idx])).values
|
|
491
491
|
else:
|
|
492
|
-
kme
|
|
492
|
+
# a writable copy: the leave-one-out pass below updates kme in place (read-only view under copy-on-write)
|
|
493
|
+
kme = compute_kme(resid, eigengenes, list(resid.index)).to_numpy(dtype=np.float64, copy=True)
|
|
493
494
|
mode = {True: "exact", False: "off"}.get(loo_eigengene, loo_eigengene)
|
|
494
495
|
if mode not in ("exact", "approx", "off"):
|
|
495
496
|
raise ValueError("loo_eigengene must be True/False, 'exact' or 'approx'")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|