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.
Files changed (51) hide show
  1. {bsvae-0.4.3 → bsvae-0.4.4}/PKG-INFO +1 -1
  2. {bsvae-0.4.3 → bsvae-0.4.4}/pyproject.toml +1 -1
  3. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/targets.py +4 -1
  4. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/isoform.py +2 -1
  5. {bsvae-0.4.3 → bsvae-0.4.4}/LICENSE +0 -0
  6. {bsvae-0.4.3 → bsvae-0.4.4}/README.md +0 -0
  7. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/__init__.py +0 -0
  8. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/__init__.py +0 -0
  9. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/acorde.R +0 -0
  10. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/edges.py +0 -0
  11. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/harness.py +0 -0
  12. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/kselect.py +0 -0
  13. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/methods.py +0 -0
  14. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/runners.py +0 -0
  15. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/twn.R +0 -0
  16. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/benchmark/wgcna.R +0 -0
  17. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/__init__.py +0 -0
  18. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/_common.py +0 -0
  19. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/benchmark.py +0 -0
  20. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/networks.py +0 -0
  21. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/simulate.py +0 -0
  22. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/sweep_k.py +0 -0
  23. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/cli/train.py +0 -0
  24. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/latent/__init__.py +0 -0
  25. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/latent/latent_analysis.py +0 -0
  26. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/latent/latent_export.py +0 -0
  27. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/__init__.py +0 -0
  28. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/decoder.py +0 -0
  29. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/encoder.py +0 -0
  30. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/gmm_prior.py +0 -0
  31. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/gmvae.py +0 -0
  32. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/losses.py +0 -0
  33. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/models/vae.py +0 -0
  34. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/__init__.py +0 -0
  35. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/extract_networks.py +0 -0
  36. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/module_extraction.py +0 -0
  37. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/postprocess.py +0 -0
  38. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/quality.py +0 -0
  39. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/networks/utils.py +0 -0
  40. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/__init__.py +0 -0
  41. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/generate.py +0 -0
  42. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/isoform.py +0 -0
  43. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/metrics.py +0 -0
  44. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/simulation/scenario.py +0 -0
  45. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/__init__.py +0 -0
  46. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/datasets.py +0 -0
  47. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/helpers.py +0 -0
  48. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/hierarchy.py +0 -0
  49. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/modelIO.py +0 -0
  50. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/preprocess.py +0 -0
  51. {bsvae-0.4.3 → bsvae-0.4.4}/src/bsvae/utils/training.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bsvae
3
- Version: 0.4.3
3
+ Version: 0.4.4
4
4
  Summary: Gaussian Mixture VAE for multi-modal biological module discovery in omics data.
5
5
  License: GPL-3.0-only
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bsvae"
3
- version = "0.4.3" # dynamically resolved by poetry-dynamic-versioning
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
- np.fill_diagonal(rho.values, 1.0)
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 = compute_kme(resid, eigengenes, list(resid.index)).values
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