regdiffusion 0.2.1__tar.gz → 0.2.2__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 (72) hide show
  1. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/NEWS.md +5 -1
  2. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/PKG-INFO +2 -4
  3. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/README.md +1 -3
  4. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/pyproject.toml +1 -1
  5. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/trainer.py +3 -3
  6. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/.github/workflows/documentation.yml +0 -0
  7. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/.gitignore +0 -0
  8. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/LICENSE +0 -0
  9. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/.gitignore +0 -0
  10. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/BUILD.md +0 -0
  11. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/Makefile +0 -0
  12. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/REG_PySCENIC.ipynb +0 -0
  13. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/rd_logo_horizontal.png +0 -0
  14. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/rd_logo_horizontal@2x.png +0 -0
  15. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/regdiffusion.png +0 -0
  16. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/regdiffusion@2x.png +0 -0
  17. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_templates/autosummary/class.rst +0 -0
  18. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_templates/autosummary/classnoinheritance.rst +0 -0
  19. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/conf.py +0 -0
  20. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/data_module.rst +0 -0
  21. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/downstream_with_pyscenic.md +0 -0
  22. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/index.rst +0 -0
  23. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/large_networks.md +0 -0
  24. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/main_api.rst +0 -0
  25. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/make.bat +0 -0
  26. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/models.rst +0 -0
  27. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/quick_tour.md +0 -0
  28. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/googled258341a97f33073.html +0 -0
  29. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Cx3cr1.html +0 -0
  30. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Fcrls.html +0 -0
  31. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Hexb.html +0 -0
  32. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Mertk.html +0 -0
  33. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_P2ry12.html +0 -0
  34. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Pros1.html +0 -0
  35. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Sall1.html +0 -0
  36. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Siglech.html +0 -0
  37. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Tmem119.html +0 -0
  38. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Trem2.html +0 -0
  39. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements.rst +0 -0
  40. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/example.ipynb +0 -0
  41. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/__init__.py +0 -0
  42. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/cli.py +0 -0
  43. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/__init__.py +0 -0
  44. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/beeline.py +0 -0
  45. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/microglia.py +0 -0
  46. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/utils.py +0 -0
  47. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/evaluator.py +0 -0
  48. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/grn.py +0 -0
  49. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/logger.py +0 -0
  50. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/models/__init__.py +0 -0
  51. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/models/regdiffusion.py +0 -0
  52. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/models/regdiffusion_me.py +0 -0
  53. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/plot/__init__.py +0 -0
  54. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/plot/pyvis.py +0 -0
  55. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/plot/static.py +0 -0
  56. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/apoe_net.png +0 -0
  57. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/aucell_mtx.png +0 -0
  58. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/aucell_umap.png +0 -0
  59. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/biomarkers.png +0 -0
  60. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/cellnames.png +0 -0
  61. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/edgelist.png +0 -0
  62. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/heatmap.png +0 -0
  63. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/mecs.png +0 -0
  64. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/mecs_cluster.png +0 -0
  65. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/regdiffusion_structure.png +0 -0
  66. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/regulon_scores.png +0 -0
  67. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/shinygo.png +0 -0
  68. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/umap_comparison.png +0 -0
  69. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_beeline_benchmark.py +0 -0
  70. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_beeline_worker.py +0 -0
  71. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_memory_benchmark.py +0 -0
  72. {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_sparse_support.py +0 -0
@@ -1,6 +1,10 @@
1
1
  # RegDiffusion News / Changelog
2
2
 
3
- ## 0.2.1 [unreleased]
3
+ ## 0.2.2
4
+
5
+ - Avoid large progress printing in terminal
6
+
7
+ ## 0.2.1
4
8
 
5
9
  ### New Features
6
10
  - Added sparse matrix support for `RegDiffusionTrainer`. The `exp_array` argument now accepts scipy sparse matrices (e.g. `adata.X`) directly. Normalization statistics are computed in chunks and each sample is normalized on-the-fly during training, so the full dense matrix is never materialized. This enables training on datasets with 1M+ cells without excessive memory usage.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: regdiffusion
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Gene Regulatory Networks Inference using diffusion model
5
5
  Author-email: Hao Zhu <haozhu233@gmail.com>, Donna Slonim <donna.slonim@tufts.edu>
6
6
  Maintainer-email: Hao Zhu <haozhu233@gmail.com>
@@ -23,7 +23,7 @@ Project-URL: Home, https://github.com/TuftsBCB/RegDiffusion
23
23
  [![Downloads](https://static.pepy.tech/badge/regdiffusion/month)](https://pepy.tech/project/regdiffusion)
24
24
  ![PyPI - Version](https://img.shields.io/pypi/v/regdiffusion)
25
25
 
26
- RegDiffusion is a very fast unsupervised regulatory network inference algorithm (just like GENIE3 and GRNBoost2), based on probabilistic diffusion model. It works well on genes and is capable to rapidly (<5min) predict biologically verifiable links from large single cell RNA-seq data with 14,000+ genes.
26
+ RegDiffusion is a very fast unsupervised regulatory network inference algorithm (just like GENIE3 and GRNBoost2), based on probabilistic diffusion model. It works well on genes and is capable to rapidly (<5min) predict biologically verifiable links from large single cell RNA-seq data with 40,000+ genes.
27
27
 
28
28
  ```
29
29
  Zhu H, Slonim D. From Noise to Knowledge: Diffusion Probabilistic Model-Based Neural Inference of Gene Regulatory Networks. J Comput Biol. 2024 Nov;31(11):1087-1103. doi: 10.1089/cmb.2024.0607. Epub 2024 Oct 10. PMID: 39387266; PMCID: PMC11698671.
@@ -43,8 +43,6 @@ Check out [this tutorial](https://tuftsbcb.github.io/RegDiffusion/quick_tour.htm
43
43
  - **Memory-efficient mode**: Set `memory_efficient=True` in `RegDiffusionTrainer` to reduce peak GPU memory by ~45%, making it easier to work with large gene sets on consumer GPUs (You can now fit 20k genes on a 16GB GPU).
44
44
  - **Sparse matrix support**: `RegDiffusionTrainer` now accepts scipy sparse matrices directly (e.g., `adata.X`), enabling training on datasets with 1M+ cells without excessive memory usage.
45
45
 
46
- ![](https://raw.githubusercontent.com/TuftsBCB/RegDiffusion/master/resources/regdiffusion_structure.png)
47
-
48
46
  ## Inferred Networks from RegDiffusion
49
47
  Here are two examples of inferred networks from regdiffusion. The networks are coherent with existing literature and across datasets.
50
48
 
@@ -4,7 +4,7 @@
4
4
  [![Downloads](https://static.pepy.tech/badge/regdiffusion/month)](https://pepy.tech/project/regdiffusion)
5
5
  ![PyPI - Version](https://img.shields.io/pypi/v/regdiffusion)
6
6
 
7
- RegDiffusion is a very fast unsupervised regulatory network inference algorithm (just like GENIE3 and GRNBoost2), based on probabilistic diffusion model. It works well on genes and is capable to rapidly (<5min) predict biologically verifiable links from large single cell RNA-seq data with 14,000+ genes.
7
+ RegDiffusion is a very fast unsupervised regulatory network inference algorithm (just like GENIE3 and GRNBoost2), based on probabilistic diffusion model. It works well on genes and is capable to rapidly (<5min) predict biologically verifiable links from large single cell RNA-seq data with 40,000+ genes.
8
8
 
9
9
  ```
10
10
  Zhu H, Slonim D. From Noise to Knowledge: Diffusion Probabilistic Model-Based Neural Inference of Gene Regulatory Networks. J Comput Biol. 2024 Nov;31(11):1087-1103. doi: 10.1089/cmb.2024.0607. Epub 2024 Oct 10. PMID: 39387266; PMCID: PMC11698671.
@@ -24,8 +24,6 @@ Check out [this tutorial](https://tuftsbcb.github.io/RegDiffusion/quick_tour.htm
24
24
  - **Memory-efficient mode**: Set `memory_efficient=True` in `RegDiffusionTrainer` to reduce peak GPU memory by ~45%, making it easier to work with large gene sets on consumer GPUs (You can now fit 20k genes on a 16GB GPU).
25
25
  - **Sparse matrix support**: `RegDiffusionTrainer` now accepts scipy sparse matrices directly (e.g., `adata.X`), enabling training on datasets with 1M+ cells without excessive memory usage.
26
26
 
27
- ![](https://raw.githubusercontent.com/TuftsBCB/RegDiffusion/master/resources/regdiffusion_structure.png)
28
-
29
27
  ## Inferred Networks from RegDiffusion
30
28
  Here are two examples of inferred networks from regdiffusion. The networks are coherent with existing literature and across datasets.
31
29
 
@@ -13,7 +13,7 @@ maintainers = [
13
13
  ]
14
14
  readme = "README.md"
15
15
  license = {file = "LICENSE"}
16
- version = "0.2.1"
16
+ version = "0.2.2"
17
17
  description = "Gene Regulatory Networks Inference using diffusion model"
18
18
 
19
19
  classifiers = ["License :: OSI Approved :: Apache Software License"]
@@ -6,7 +6,7 @@ import torch.nn.functional as F
6
6
  from torch.utils.data import DataLoader, Dataset
7
7
  from torch.utils.data.dataset import TensorDataset
8
8
  from .models import RegDiffusion, RegDiffusionME
9
- from tqdm import tqdm
9
+ from tqdm.auto import tqdm
10
10
  from .logger import LightLogger
11
11
  from datetime import datetime
12
12
  from .grn import GRN
@@ -136,8 +136,8 @@ class RegDiffusionTrainer:
136
136
  accumulation. This is useful when number of genes are extremely
137
137
  large.
138
138
  use_amp (bool): Whether to use automatic mixed precision (bfloat16)
139
- during training. This reduces memory usage by storing activations
140
- in half precision while keeping model parameters in float32.
139
+ during training at the cost of 2x training time. This is usually
140
+ not recommended unless the last slice of memory is a bottleneck.
141
141
  Requires a GPU with bfloat16 support (Ampere or newer).
142
142
  Default: False.
143
143
  memory_efficient (bool): Whether to use the memory-efficient model
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes