simspace 0.3.0__tar.gz → 0.3.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 (33) hide show
  1. {simspace-0.3.0/simspace.egg-info → simspace-0.3.2}/PKG-INFO +6 -8
  2. {simspace-0.3.0 → simspace-0.3.2}/README.md +5 -7
  3. {simspace-0.3.0 → simspace-0.3.2}/pyproject.toml +1 -1
  4. {simspace-0.3.0 → simspace-0.3.2}/setup.py +1 -1
  5. {simspace-0.3.0 → simspace-0.3.2}/simspace/optimize.py +1 -1
  6. {simspace-0.3.0 → simspace-0.3.2}/simspace/plot.py +2 -2
  7. {simspace-0.3.0 → simspace-0.3.2/simspace.egg-info}/PKG-INFO +6 -8
  8. {simspace-0.3.0 → simspace-0.3.2}/LICENSE +0 -0
  9. {simspace-0.3.0 → simspace-0.3.2}/MANIFEST.in +0 -0
  10. {simspace-0.3.0 → simspace-0.3.2}/setup.cfg +0 -0
  11. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/.Rprofile +0 -0
  12. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/SRTsim.R +0 -0
  13. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/install_r_deps.R +0 -0
  14. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/renv/activate.R +0 -0
  15. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/renv.lock +0 -0
  16. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/scdesign.R +0 -0
  17. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/splatter.R +0 -0
  18. {simspace-0.3.0 → simspace-0.3.2}/simspace/R/splatter_fit.R +0 -0
  19. {simspace-0.3.0 → simspace-0.3.2}/simspace/__init__.py +0 -0
  20. {simspace-0.3.0 → simspace-0.3.2}/simspace/core.py +0 -0
  21. {simspace-0.3.0 → simspace-0.3.2}/simspace/initialize/initialize.py +0 -0
  22. {simspace-0.3.0 → simspace-0.3.2}/simspace/initialize/neighbors.py +0 -0
  23. {simspace-0.3.0 → simspace-0.3.2}/simspace/niche.py +0 -0
  24. {simspace-0.3.0 → simspace-0.3.2}/simspace/omics.py +0 -0
  25. {simspace-0.3.0 → simspace-0.3.2}/simspace/spatial.py +0 -0
  26. {simspace-0.3.0 → simspace-0.3.2}/simspace/util.py +0 -0
  27. {simspace-0.3.0 → simspace-0.3.2}/simspace.egg-info/SOURCES.txt +0 -0
  28. {simspace-0.3.0 → simspace-0.3.2}/simspace.egg-info/dependency_links.txt +0 -0
  29. {simspace-0.3.0 → simspace-0.3.2}/simspace.egg-info/requires.txt +0 -0
  30. {simspace-0.3.0 → simspace-0.3.2}/simspace.egg-info/top_level.txt +0 -0
  31. {simspace-0.3.0 → simspace-0.3.2}/tests/test_core.py +0 -0
  32. {simspace-0.3.0 → simspace-0.3.2}/tests/test_omics.py +0 -0
  33. {simspace-0.3.0 → simspace-0.3.2}/tests/test_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simspace
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: SimSpace: a comprehensive in-silico spatial omics data simulation framework
5
5
  Author: Tianxiao Zhao
6
6
  License: MIT
@@ -26,10 +26,12 @@ Dynamic: requires-python
26
26
  [![Docs](https://readthedocs.org/projects/simspace/badge/?version=latest)](https://simspace.readthedocs.io/en/latest/)
27
27
  [![PyPI](https://img.shields.io/pypi/v/simspace.svg)](https://pypi.org/project/simspace/)
28
28
 
29
- **SimSpace** is a Python framework for simulating spatial omics data with realistic cellular distributions and tissue organization. Designed for benchmarking spatial analysis methods, SimSpace enables generation of synthetic datasets that preserve spatial autocorrelation, cell-cell interactions, and spatial proximities using a Markov Random Field (MRF) model.
29
+ **SimSpace** is a Python framework for simulating spatial omics data with realistic cellular distributions and tissue organization. Designed for benchmarking spatial analysis methods, SimSpace enables generation of synthetic datasets that preserve spatial autocorrelation, cell-cell interactions, and spatial proximities using a Markov Random Field (MRF) model.
30
30
 
31
31
  ![SimSpace Workflow](images/overview.png)
32
32
 
33
+ For full figure reproduction (all analyses and scripts) for the SimSpace manuscript, see: https://github.com/TianxiaoNYU/simspace-reproducibility
34
+
33
35
  ## 📦 Installation
34
36
 
35
37
  To install the latest version of SimSpace, we recommend using conda to setup the environment:
@@ -90,12 +92,10 @@ The documentation includes:
90
92
  To get started with SimSpace, we provide detailed tutorials covering both reference-based and reference-free simulation modes.
91
93
 
92
94
  - **Step-by-step tutorials** can be found in [`tutorials.md`](./tutorials.md)
93
- - **Executable notebook examples** are located in the [`examples/`](./examples/) directory
95
+ - **Executable notebooks** are located in the [`tutorials/`](./tutorials/) directory
94
96
 
95
97
  These resources walk through how to configure and run simulations as well as visualize outputs.
96
98
 
97
- To reproduce the figures in the manuscript, one can find the scripts at [`examples/figures.ipynb`](./examples/figures.ipynb).
98
-
99
99
  ## 🚀 Quick Start
100
100
 
101
101
  Here’s a basic example to simulate a 2D tissue with 3 spatial niches and 8 cell types:
@@ -131,6 +131,4 @@ Developed by Tianxiao Zhao at NYU Grossman School of Medicine. Should you have a
131
131
 
132
132
  ## 🔗 References
133
133
  If you use SimSpace in your work, please cite the work on BioRxiv:
134
- [Zhao T, Zhang K, Hollenberg M, Zhou W, Fenyo D. SimSpace: a comprehensive in-silico spatial omics data simulation framework. bioRxiv. 2025:2025.07.18.665587.](https://www.biorxiv.org/content/10.1101/2025.07.18.665587v1)
135
-
136
-
134
+ [Zhao T, Zhang K, Hollenberg M, Zhou W, Fenyo D. SimSpace: a comprehensive in-silico spatial omics data simulation framework. bioRxiv. 2025:2025.07.18.665587.](https://www.biorxiv.org/content/10.1101/2025.07.18.665587)
@@ -3,10 +3,12 @@
3
3
  [![Docs](https://readthedocs.org/projects/simspace/badge/?version=latest)](https://simspace.readthedocs.io/en/latest/)
4
4
  [![PyPI](https://img.shields.io/pypi/v/simspace.svg)](https://pypi.org/project/simspace/)
5
5
 
6
- **SimSpace** is a Python framework for simulating spatial omics data with realistic cellular distributions and tissue organization. Designed for benchmarking spatial analysis methods, SimSpace enables generation of synthetic datasets that preserve spatial autocorrelation, cell-cell interactions, and spatial proximities using a Markov Random Field (MRF) model.
6
+ **SimSpace** is a Python framework for simulating spatial omics data with realistic cellular distributions and tissue organization. Designed for benchmarking spatial analysis methods, SimSpace enables generation of synthetic datasets that preserve spatial autocorrelation, cell-cell interactions, and spatial proximities using a Markov Random Field (MRF) model.
7
7
 
8
8
  ![SimSpace Workflow](images/overview.png)
9
9
 
10
+ For full figure reproduction (all analyses and scripts) for the SimSpace manuscript, see: https://github.com/TianxiaoNYU/simspace-reproducibility
11
+
10
12
  ## 📦 Installation
11
13
 
12
14
  To install the latest version of SimSpace, we recommend using conda to setup the environment:
@@ -67,12 +69,10 @@ The documentation includes:
67
69
  To get started with SimSpace, we provide detailed tutorials covering both reference-based and reference-free simulation modes.
68
70
 
69
71
  - **Step-by-step tutorials** can be found in [`tutorials.md`](./tutorials.md)
70
- - **Executable notebook examples** are located in the [`examples/`](./examples/) directory
72
+ - **Executable notebooks** are located in the [`tutorials/`](./tutorials/) directory
71
73
 
72
74
  These resources walk through how to configure and run simulations as well as visualize outputs.
73
75
 
74
- To reproduce the figures in the manuscript, one can find the scripts at [`examples/figures.ipynb`](./examples/figures.ipynb).
75
-
76
76
  ## 🚀 Quick Start
77
77
 
78
78
  Here’s a basic example to simulate a 2D tissue with 3 spatial niches and 8 cell types:
@@ -108,6 +108,4 @@ Developed by Tianxiao Zhao at NYU Grossman School of Medicine. Should you have a
108
108
 
109
109
  ## 🔗 References
110
110
  If you use SimSpace in your work, please cite the work on BioRxiv:
111
- [Zhao T, Zhang K, Hollenberg M, Zhou W, Fenyo D. SimSpace: a comprehensive in-silico spatial omics data simulation framework. bioRxiv. 2025:2025.07.18.665587.](https://www.biorxiv.org/content/10.1101/2025.07.18.665587v1)
112
-
113
-
111
+ [Zhao T, Zhang K, Hollenberg M, Zhou W, Fenyo D. SimSpace: a comprehensive in-silico spatial omics data simulation framework. bioRxiv. 2025:2025.07.18.665587.](https://www.biorxiv.org/content/10.1101/2025.07.18.665587)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "simspace"
7
- version = "0.3.0"
7
+ version = "0.3.2"
8
8
  description = "SimSpace: a comprehensive in-silico spatial omics data simulation framework"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="simspace",
8
- version="0.3.0",
8
+ version="0.3.2",
9
9
  description="SimSpace: a comprehensive in-silico spatial omics data simulation framework",
10
10
  long_description=long_description,
11
11
  long_description_content_type="text/markdown",
@@ -13,7 +13,7 @@ warnings.filterwarnings('ignore')
13
13
  ## Define the Fitness Function, which do the simulation first and then calculate the fitness value
14
14
  #### The fitness value is the distance between the simulation result and the experimental data
15
15
  def _get_spatial_statistics(simulation, n_state):
16
- simulation.columns = ['celltype', 'x', 'y', 'celltype_ranked']
16
+ simulation.columns = ['celltype', 'x', 'y', 'niche', 'celltype_ranked']
17
17
  tmp = simulation[simulation['celltype'] == -1].index
18
18
  simulation = simulation.drop(tmp)
19
19
  simulation = simulation.reset_index(drop=True)
@@ -46,8 +46,8 @@ def spatial_pie(
46
46
  fig.set_size_inches(figure_size)
47
47
  fig.set_dpi(dpi)
48
48
  ax.set_aspect('equal')
49
- ax.set_xlim(-(SimSpace.size[0]/100*2), SimSpace.size[0] + (SimSpace.size[0]/100*2))
50
- ax.set_ylim(-(SimSpace.size[1]/100*2), SimSpace.size[1] + (SimSpace.size[1]/100*2))
49
+ ax.set_xlim(-(SimSpace.shape[0]/100*2), SimSpace.shape[0] + (SimSpace.shape[0]/100*2))
50
+ ax.set_ylim(-(SimSpace.shape[1]/100*2), SimSpace.shape[1] + (SimSpace.shape[1]/100*2))
51
51
  ax.set_xticks([])
52
52
  ax.set_yticks([])
53
53
  ax.set_title('Convolved SimSpace Dataset')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simspace
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: SimSpace: a comprehensive in-silico spatial omics data simulation framework
5
5
  Author: Tianxiao Zhao
6
6
  License: MIT
@@ -26,10 +26,12 @@ Dynamic: requires-python
26
26
  [![Docs](https://readthedocs.org/projects/simspace/badge/?version=latest)](https://simspace.readthedocs.io/en/latest/)
27
27
  [![PyPI](https://img.shields.io/pypi/v/simspace.svg)](https://pypi.org/project/simspace/)
28
28
 
29
- **SimSpace** is a Python framework for simulating spatial omics data with realistic cellular distributions and tissue organization. Designed for benchmarking spatial analysis methods, SimSpace enables generation of synthetic datasets that preserve spatial autocorrelation, cell-cell interactions, and spatial proximities using a Markov Random Field (MRF) model.
29
+ **SimSpace** is a Python framework for simulating spatial omics data with realistic cellular distributions and tissue organization. Designed for benchmarking spatial analysis methods, SimSpace enables generation of synthetic datasets that preserve spatial autocorrelation, cell-cell interactions, and spatial proximities using a Markov Random Field (MRF) model.
30
30
 
31
31
  ![SimSpace Workflow](images/overview.png)
32
32
 
33
+ For full figure reproduction (all analyses and scripts) for the SimSpace manuscript, see: https://github.com/TianxiaoNYU/simspace-reproducibility
34
+
33
35
  ## 📦 Installation
34
36
 
35
37
  To install the latest version of SimSpace, we recommend using conda to setup the environment:
@@ -90,12 +92,10 @@ The documentation includes:
90
92
  To get started with SimSpace, we provide detailed tutorials covering both reference-based and reference-free simulation modes.
91
93
 
92
94
  - **Step-by-step tutorials** can be found in [`tutorials.md`](./tutorials.md)
93
- - **Executable notebook examples** are located in the [`examples/`](./examples/) directory
95
+ - **Executable notebooks** are located in the [`tutorials/`](./tutorials/) directory
94
96
 
95
97
  These resources walk through how to configure and run simulations as well as visualize outputs.
96
98
 
97
- To reproduce the figures in the manuscript, one can find the scripts at [`examples/figures.ipynb`](./examples/figures.ipynb).
98
-
99
99
  ## 🚀 Quick Start
100
100
 
101
101
  Here’s a basic example to simulate a 2D tissue with 3 spatial niches and 8 cell types:
@@ -131,6 +131,4 @@ Developed by Tianxiao Zhao at NYU Grossman School of Medicine. Should you have a
131
131
 
132
132
  ## 🔗 References
133
133
  If you use SimSpace in your work, please cite the work on BioRxiv:
134
- [Zhao T, Zhang K, Hollenberg M, Zhou W, Fenyo D. SimSpace: a comprehensive in-silico spatial omics data simulation framework. bioRxiv. 2025:2025.07.18.665587.](https://www.biorxiv.org/content/10.1101/2025.07.18.665587v1)
135
-
136
-
134
+ [Zhao T, Zhang K, Hollenberg M, Zhou W, Fenyo D. SimSpace: a comprehensive in-silico spatial omics data simulation framework. bioRxiv. 2025:2025.07.18.665587.](https://www.biorxiv.org/content/10.1101/2025.07.18.665587)
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