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.
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/NEWS.md +5 -1
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/PKG-INFO +2 -4
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/README.md +1 -3
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/pyproject.toml +1 -1
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/trainer.py +3 -3
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/.github/workflows/documentation.yml +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/.gitignore +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/LICENSE +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/.gitignore +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/BUILD.md +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/Makefile +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/REG_PySCENIC.ipynb +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/rd_logo_horizontal.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/rd_logo_horizontal@2x.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/regdiffusion.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_static/regdiffusion@2x.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_templates/autosummary/class.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_templates/autosummary/classnoinheritance.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/conf.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/data_module.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/downstream_with_pyscenic.md +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/index.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/large_networks.md +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/main_api.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/make.bat +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/models.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/quick_tour.md +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/googled258341a97f33073.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Cx3cr1.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Fcrls.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Hexb.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Mertk.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_P2ry12.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Pros1.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Sall1.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Siglech.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Tmem119.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements/rd_hammond_Trem2.html +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/supplements.rst +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/example.ipynb +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/__init__.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/cli.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/__init__.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/beeline.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/microglia.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/data/utils.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/evaluator.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/grn.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/logger.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/models/__init__.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/models/regdiffusion.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/models/regdiffusion_me.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/plot/__init__.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/plot/pyvis.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/regdiffusion/plot/static.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/apoe_net.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/aucell_mtx.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/aucell_umap.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/biomarkers.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/cellnames.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/edgelist.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/heatmap.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/mecs.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/mecs_cluster.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/regdiffusion_structure.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/regulon_scores.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/shinygo.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/resources/umap_comparison.png +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_beeline_benchmark.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_beeline_worker.py +0 -0
- {regdiffusion-0.2.1 → regdiffusion-0.2.2}/test_scripts/test_memory_benchmark.py +0 -0
- {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.
|
|
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.
|
|
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
|
[](https://pepy.tech/project/regdiffusion)
|
|
24
24
|

|
|
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
|
|
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
|
-

|
|
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
|
[](https://pepy.tech/project/regdiffusion)
|
|
5
5
|

|
|
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
|
|
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
|
-

|
|
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.
|
|
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
|
|
140
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{regdiffusion-0.2.1 → regdiffusion-0.2.2}/docs/_templates/autosummary/classnoinheritance.rst
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|