SpatialQuery 0.0.4__tar.gz → 0.0.5__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.
- {spatialquery-0.0.4/SpatialQuery.egg-info → spatialquery-0.0.5}/PKG-INFO +10 -1
- {spatialquery-0.0.4 → spatialquery-0.0.5}/README.md +9 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/spatial_query.py +10 -6
- {spatialquery-0.0.4 → spatialquery-0.0.5/SpatialQuery.egg-info}/PKG-INFO +10 -1
- {spatialquery-0.0.4 → spatialquery-0.0.5}/pyproject.toml +1 -1
- {spatialquery-0.0.4 → spatialquery-0.0.5}/LICENSE +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/MANIFEST.in +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/__init__.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/plotting.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/__init__.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/core_methods.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/EliasFano.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/QueryScore.cpp +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/QueryScore.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/Serialization.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/__init__.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/const.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/eliasFano.cpp +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/fp_growth.cpp +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/fp_growth.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/serialization.cpp +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/typedef.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/utils.cpp +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/scfind4sp/cpp_src/utils.h +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/spatial_differential_pattern.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/spatial_gene_covarying.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/spatial_query_multiple_fov.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/spatial_utils.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery/utils.py +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery.egg-info/SOURCES.txt +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery.egg-info/dependency_links.txt +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery.egg-info/requires.txt +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/SpatialQuery.egg-info/top_level.txt +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/setup.cfg +0 -0
- {spatialquery-0.0.4 → spatialquery-0.0.5}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SpatialQuery
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Spatial query tools for analyzing spatial transcriptomics data
|
|
5
5
|
Author-email: Shaokun An <shan12@bwh.harvard.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -62,6 +62,15 @@ pip install SpatialQuery
|
|
|
62
62
|
|
|
63
63
|
Full documentation, tutorials, and API reference: **[https://spatialquery.readthedocs.io/en/latest/](https://spatialquery.readthedocs.io/en/latest/)**
|
|
64
64
|
|
|
65
|
+
## Reproducibility
|
|
66
|
+
|
|
67
|
+
The following tutorials reproduce the main analyses presented in our manuscript:
|
|
68
|
+
|
|
69
|
+
- [Mouse organogenesis — single-FOV analysis (seqFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_1.html)
|
|
70
|
+
- [Kidney disease atlas — multi-condition analysis (MERFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_2.html)
|
|
71
|
+
- [Colorectal cancer microenvironment — spatial proteomics (CODEX)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_3.html)
|
|
72
|
+
- [Whole-brain atlas — large-scale analysis (MERFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_4.html)
|
|
73
|
+
|
|
65
74
|
## Quick Start
|
|
66
75
|
|
|
67
76
|
```python
|
|
@@ -25,6 +25,15 @@ pip install SpatialQuery
|
|
|
25
25
|
|
|
26
26
|
Full documentation, tutorials, and API reference: **[https://spatialquery.readthedocs.io/en/latest/](https://spatialquery.readthedocs.io/en/latest/)**
|
|
27
27
|
|
|
28
|
+
## Reproducibility
|
|
29
|
+
|
|
30
|
+
The following tutorials reproduce the main analyses presented in our manuscript:
|
|
31
|
+
|
|
32
|
+
- [Mouse organogenesis — single-FOV analysis (seqFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_1.html)
|
|
33
|
+
- [Kidney disease atlas — multi-condition analysis (MERFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_2.html)
|
|
34
|
+
- [Colorectal cancer microenvironment — spatial proteomics (CODEX)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_3.html)
|
|
35
|
+
- [Whole-brain atlas — large-scale analysis (MERFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_4.html)
|
|
36
|
+
|
|
28
37
|
## Quick Start
|
|
29
38
|
|
|
30
39
|
```python
|
|
@@ -1536,6 +1536,7 @@ def interactive_motif(
|
|
|
1536
1536
|
sp,
|
|
1537
1537
|
zarr_path: str,
|
|
1538
1538
|
spatialSpotRadius: float = 1,
|
|
1539
|
+
use_adata_store: bool = False,
|
|
1539
1540
|
):
|
|
1540
1541
|
"""
|
|
1541
1542
|
Create an interactive Vitessce widget to explore spatial motifs.
|
|
@@ -1558,6 +1559,9 @@ def interactive_motif(
|
|
|
1558
1559
|
spatialSpotRadius : float, default=1
|
|
1559
1560
|
Radius for spatial spots in the Vitessce visualization. Adjust based
|
|
1560
1561
|
on data density and spatial coordinate scale.
|
|
1562
|
+
use_adata_store : bool, default=False
|
|
1563
|
+
If True, pass the zarr path via ``adata_store`` (for HubMAP workspace).
|
|
1564
|
+
If False, pass via ``adata_path`` (for local usage).
|
|
1561
1565
|
|
|
1562
1566
|
Returns
|
|
1563
1567
|
-------
|
|
@@ -1638,8 +1642,9 @@ def interactive_motif(
|
|
|
1638
1642
|
|
|
1639
1643
|
vc = VitessceConfig(schema_version="1.0.16", name="SpatialQuery")
|
|
1640
1644
|
|
|
1645
|
+
_adata_key = "adata_store" if use_adata_store else "adata_path"
|
|
1641
1646
|
wrapper_kwargs = dict(
|
|
1642
|
-
|
|
1647
|
+
**{_adata_key: zarr_path},
|
|
1643
1648
|
obs_set_paths=[f"obs/{label_key}"],
|
|
1644
1649
|
obs_set_names=["Cell Type"],
|
|
1645
1650
|
obs_spots_path=f"obsm/{spatial_key}",
|
|
@@ -1652,7 +1657,6 @@ def interactive_motif(
|
|
|
1652
1657
|
dataset = vc.add_dataset("Query results").add_object(AnnDataWrapper(**wrapper_kwargs))
|
|
1653
1658
|
|
|
1654
1659
|
spatial_view = vc.add_view("spatialBeta", dataset=dataset)
|
|
1655
|
-
lc_view = vc.add_view("layerControllerBeta", dataset=dataset)
|
|
1656
1660
|
sets_view = vc.add_view("obsSets", dataset=dataset)
|
|
1657
1661
|
sq_view = vc.add_view("spatialQuery", dataset=dataset)
|
|
1658
1662
|
sq_heatmap_view = vc.add_view("spatialQueryHeatmap", dataset=dataset)
|
|
@@ -1661,7 +1665,7 @@ def interactive_motif(
|
|
|
1661
1665
|
["Cell Type", ct] for ct in sp.labels.unique().tolist()
|
|
1662
1666
|
]
|
|
1663
1667
|
|
|
1664
|
-
linked_views = [spatial_view,
|
|
1668
|
+
linked_views = [spatial_view, sets_view, sq_view]
|
|
1665
1669
|
if has_expression:
|
|
1666
1670
|
features_view = vc.add_view("featureList", dataset=dataset)
|
|
1667
1671
|
linked_views.append(features_view)
|
|
@@ -1672,21 +1676,21 @@ def interactive_motif(
|
|
|
1672
1676
|
[plugin.additional_obs_sets, plugin.obs_set_color, initial_obs_set_selection, "cellSetSelection"],
|
|
1673
1677
|
)
|
|
1674
1678
|
|
|
1675
|
-
vc.link_views_by_dict([spatial_view
|
|
1679
|
+
vc.link_views_by_dict([spatial_view], {
|
|
1676
1680
|
"spotLayer": CL([{"obsType": "cell", "spatialSpotRadius": spatialSpotRadius}]),
|
|
1677
1681
|
})
|
|
1678
1682
|
|
|
1679
1683
|
if has_expression:
|
|
1680
1684
|
vc.layout(
|
|
1681
1685
|
vconcat(
|
|
1682
|
-
hconcat(spatial_view,
|
|
1686
|
+
hconcat(spatial_view, features_view, split=[2, 1]),
|
|
1683
1687
|
hconcat(sets_view, sq_heatmap_view, sq_view),
|
|
1684
1688
|
)
|
|
1685
1689
|
)
|
|
1686
1690
|
else:
|
|
1687
1691
|
vc.layout(
|
|
1688
1692
|
vconcat(
|
|
1689
|
-
|
|
1693
|
+
spatial_view,
|
|
1690
1694
|
hconcat(sets_view, sq_heatmap_view, sq_view),
|
|
1691
1695
|
)
|
|
1692
1696
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SpatialQuery
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Spatial query tools for analyzing spatial transcriptomics data
|
|
5
5
|
Author-email: Shaokun An <shan12@bwh.harvard.edu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -62,6 +62,15 @@ pip install SpatialQuery
|
|
|
62
62
|
|
|
63
63
|
Full documentation, tutorials, and API reference: **[https://spatialquery.readthedocs.io/en/latest/](https://spatialquery.readthedocs.io/en/latest/)**
|
|
64
64
|
|
|
65
|
+
## Reproducibility
|
|
66
|
+
|
|
67
|
+
The following tutorials reproduce the main analyses presented in our manuscript:
|
|
68
|
+
|
|
69
|
+
- [Mouse organogenesis — single-FOV analysis (seqFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_1.html)
|
|
70
|
+
- [Kidney disease atlas — multi-condition analysis (MERFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_2.html)
|
|
71
|
+
- [Colorectal cancer microenvironment — spatial proteomics (CODEX)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_3.html)
|
|
72
|
+
- [Whole-brain atlas — large-scale analysis (MERFISH)](https://spatialquery.readthedocs.io/en/latest/tutorials/tutorial_4.html)
|
|
73
|
+
|
|
65
74
|
## Quick Start
|
|
66
75
|
|
|
67
76
|
```python
|
|
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
|