napari-spatial-correlation-plotter 0.0.1__tar.gz → 0.0.3__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.
- {napari_spatial_correlation_plotter-0.0.1/src/napari_spatial_correlation_plotter.egg-info → napari_spatial_correlation_plotter-0.0.3}/PKG-INFO +14 -5
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/README.md +11 -3
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/setup.cfg +2 -1
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter/__init__.py +1 -1
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter/_nice_colormap.py +4 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter/_widget.py +24 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3/src/napari_spatial_correlation_plotter.egg-info}/PKG-INFO +14 -5
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter.egg-info/requires.txt +1 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/LICENSE +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/MANIFEST.in +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/pyproject.toml +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter/_tests/__init__.py +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter/napari.yaml +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter.egg-info/SOURCES.txt +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter.egg-info/dependency_links.txt +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter.egg-info/entry_points.txt +0 -0
- {napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/src/napari_spatial_correlation_plotter.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: napari-spatial-correlation-plotter
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: A
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: A plugin to compute and display spatial correlation histograms in Napari
|
|
5
5
|
Home-page: https://github.com/jules-vanaret/napari-spatial-correlation-plotter
|
|
6
6
|
Author: Jules Vanaret
|
|
7
7
|
Author-email: jules.vanaret@univ-amu.fr
|
|
@@ -31,6 +31,7 @@ Requires-Dist: matplotlib
|
|
|
31
31
|
Requires-Dist: scikit-image
|
|
32
32
|
Requires-Dist: qtpy
|
|
33
33
|
Requires-Dist: pyclesperanto_prototype
|
|
34
|
+
Requires-Dist: tapenade
|
|
34
35
|
Provides-Extra: testing
|
|
35
36
|
Requires-Dist: tox; extra == "testing"
|
|
36
37
|
Requires-Dist: pytest; extra == "testing"
|
|
@@ -52,10 +53,10 @@ Requires-Dist: pyqt5; extra == "testing"
|
|
|
52
53
|
|
|
53
54
|
A plugin to dynamically interact with the spatial correlation heatmap obtained by comparing two continuous fields of biophysical properties in 3D tissues.
|
|
54
55
|
|
|
55
|
-
`napari-spatial-correlation-plotter` is a [napari] plugin that is part of the [Tapenade](https://github.com/GuignardLab/tapenade) project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
|
|
56
|
-
|
|
57
56
|
If you use this plugin for your research, please [cite us](https://github.com/GuignardLab/tapenade/blob/main/README.md#how-to-cite).
|
|
58
57
|
|
|
58
|
+
`napari-spatial-correlation-plotter` is a [napari] plugin that is part of the [Tapenade](https://github.com/GuignardLab/tapenade) project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
|
|
59
|
+
|
|
59
60
|
## Overview
|
|
60
61
|
|
|
61
62
|
While working with large and dense 3D and 3D+time gastruloid datasets, we found that being able to visualise and interact with the data dynamically greatly helped processing it.
|
|
@@ -102,7 +103,15 @@ Steps:
|
|
|
102
103
|
11. You can click on the `Save the figure` button to save the current plot (many formats are available, including .png, .svg, .jpeg).
|
|
103
104
|
12. You can interact with the plot by manually drawing a region of interest directly on the plot to automatically select and display the corresponding cells in 3D on an independant Napari Labels layer `clustered labels`. By using a left click, you can draw an arbitrary shape. By using a right click, you can draw a rectangle. If `Shift` is pressed while drawing, several groups of cells can appear on the `clustered labels` layer, each with a different color.
|
|
104
105
|
13. To trigger the grid view like in the example image, you can click on the `Toggle grid mode` button. This will display all layers in a grid view. By right clicking the button, you can parametrize the grid view (e.g number of columns, number of rows, etc).
|
|
105
|
-
14. You can switch between 2D and 3D view at all time by clicking on the `Toggle 2D/3D view` button (it resembles a square when in 2D mode, or a cube when in 3D mode).
|
|
106
|
+
14. You can switch between 2D and 3D view at all time by clicking on the `Toggle 2D/3D view` button (it resembles a square when in 2D mode, or a cube when in 3D mode).
|
|
107
|
+
|
|
108
|
+
## Acknowledgements
|
|
109
|
+
|
|
110
|
+
The "napari-clusters-plotter" plugin [1] heavily inspired this plugin, most notably the `SelectFromCollection`, `MplCanvas` and `FigureToolbar` classes. The `PlotterWidget` class has been modified for the specific use case of this plugin, but the core functionalites have been adapted directly.
|
|
111
|
+
napari-clusters-plotter source code is available [here](https://github.com/BiAPoL/napari-clusters-plotter/tree/main).
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
[1] Zigutyte, L., Savill, R., Müller, J., Zoccoler, M., Wagner, T., & Haase, R. (2023). napari-clusters-plotter. Zenodo. https://doi.org/10.5281/zenodo.5884657
|
|
106
115
|
|
|
107
116
|
## Contributing
|
|
108
117
|
|
{napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/README.md
RENAMED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
A plugin to dynamically interact with the spatial correlation heatmap obtained by comparing two continuous fields of biophysical properties in 3D tissues.
|
|
13
13
|
|
|
14
|
-
`napari-spatial-correlation-plotter` is a [napari] plugin that is part of the [Tapenade](https://github.com/GuignardLab/tapenade) project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
|
|
15
|
-
|
|
16
14
|
If you use this plugin for your research, please [cite us](https://github.com/GuignardLab/tapenade/blob/main/README.md#how-to-cite).
|
|
17
15
|
|
|
16
|
+
`napari-spatial-correlation-plotter` is a [napari] plugin that is part of the [Tapenade](https://github.com/GuignardLab/tapenade) project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
|
|
17
|
+
|
|
18
18
|
## Overview
|
|
19
19
|
|
|
20
20
|
While working with large and dense 3D and 3D+time gastruloid datasets, we found that being able to visualise and interact with the data dynamically greatly helped processing it.
|
|
@@ -61,7 +61,15 @@ Steps:
|
|
|
61
61
|
11. You can click on the `Save the figure` button to save the current plot (many formats are available, including .png, .svg, .jpeg).
|
|
62
62
|
12. You can interact with the plot by manually drawing a region of interest directly on the plot to automatically select and display the corresponding cells in 3D on an independant Napari Labels layer `clustered labels`. By using a left click, you can draw an arbitrary shape. By using a right click, you can draw a rectangle. If `Shift` is pressed while drawing, several groups of cells can appear on the `clustered labels` layer, each with a different color.
|
|
63
63
|
13. To trigger the grid view like in the example image, you can click on the `Toggle grid mode` button. This will display all layers in a grid view. By right clicking the button, you can parametrize the grid view (e.g number of columns, number of rows, etc).
|
|
64
|
-
14. You can switch between 2D and 3D view at all time by clicking on the `Toggle 2D/3D view` button (it resembles a square when in 2D mode, or a cube when in 3D mode).
|
|
64
|
+
14. You can switch between 2D and 3D view at all time by clicking on the `Toggle 2D/3D view` button (it resembles a square when in 2D mode, or a cube when in 3D mode).
|
|
65
|
+
|
|
66
|
+
## Acknowledgements
|
|
67
|
+
|
|
68
|
+
The "napari-clusters-plotter" plugin [1] heavily inspired this plugin, most notably the `SelectFromCollection`, `MplCanvas` and `FigureToolbar` classes. The `PlotterWidget` class has been modified for the specific use case of this plugin, but the core functionalites have been adapted directly.
|
|
69
|
+
napari-clusters-plotter source code is available [here](https://github.com/BiAPoL/napari-clusters-plotter/tree/main).
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
[1] Zigutyte, L., Savill, R., Müller, J., Zoccoler, M., Wagner, T., & Haase, R. (2023). napari-clusters-plotter. Zenodo. https://doi.org/10.5281/zenodo.5884657
|
|
65
73
|
|
|
66
74
|
## Contributing
|
|
67
75
|
|
{napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/setup.cfg
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = napari-spatial-correlation-plotter
|
|
3
3
|
version = attr: napari_spatial_correlation_plotter.__version__
|
|
4
|
-
description = A
|
|
4
|
+
description = A plugin to compute and display spatial correlation histograms in Napari
|
|
5
5
|
long_description = file: README.md
|
|
6
6
|
long_description_content_type = text/markdown
|
|
7
7
|
url = https://github.com/jules-vanaret/napari-spatial-correlation-plotter
|
|
@@ -37,6 +37,7 @@ install_requires =
|
|
|
37
37
|
scikit-image
|
|
38
38
|
qtpy
|
|
39
39
|
pyclesperanto_prototype
|
|
40
|
+
tapenade
|
|
40
41
|
python_requires = >=3.8
|
|
41
42
|
include_package_data = True
|
|
42
43
|
package_dir =
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) 2022, DFG Cluster of Excellence "Physics of Life" TU Dresden: Robert Haase, Laura Zigutyte, Marcello Zoccoler, Ryan Savill, Johannes Müller and Max Planck Institute of Molecular Physiology Dortmund: Thorsten Wagner
|
|
3
|
+
"""
|
|
4
|
+
|
|
1
5
|
def get_nice_colormap():
|
|
2
6
|
colours_w_old_colors = [
|
|
3
7
|
"#ff7f0e",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) 2022, DFG Cluster of Excellence "Physics of Life" TU Dresden: Robert Haase, Laura Zigutyte, Marcello Zoccoler, Ryan Savill, Johannes Müller and Max Planck Institute of Molecular Physiology Dortmund: Thorsten Wagner
|
|
3
|
+
"""
|
|
1
4
|
import os
|
|
2
5
|
from pathlib import Path as PathL
|
|
3
6
|
from time import time
|
|
@@ -28,6 +31,19 @@ from napari_spatial_correlation_plotter._nice_colormap import get_nice_colormap
|
|
|
28
31
|
|
|
29
32
|
ICON_ROOT = PathL(__file__).parent / "icons"
|
|
30
33
|
|
|
34
|
+
"""
|
|
35
|
+
This widget takes HEAVY inspiration from the napari-clusters-plotter plugin [1],
|
|
36
|
+
most notably the SelectFromCollection, MplCanvas and FigureToolbar classes.
|
|
37
|
+
The PlotterWidget class has been modified for the specific use case of this
|
|
38
|
+
plugin, but the core functionalites have been adapted directly.
|
|
39
|
+
|
|
40
|
+
napari-clusters-plotter source code is available at
|
|
41
|
+
https://github.com/BiAPoL/napari-clusters-plotter/tree/main
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
[1] Zigutyte, L., Savill, R., Müller, J., Zoccoler, M., Wagner, T., & Haase, R. (2023).
|
|
45
|
+
napari-clusters-plotter. Zenodo. https://doi.org/10.5281/zenodo.5884657
|
|
46
|
+
"""
|
|
31
47
|
|
|
32
48
|
# TODO:
|
|
33
49
|
# - add log scale to heatmap colors
|
|
@@ -712,6 +728,10 @@ class PlotterWidget(Container):
|
|
|
712
728
|
)
|
|
713
729
|
else:
|
|
714
730
|
self.quantityX_smoothed_layer.data = blurredX
|
|
731
|
+
self.quantityX_smoothed_layer.contrast_limits = (
|
|
732
|
+
blurredX.min(), blurredX.max()
|
|
733
|
+
)
|
|
734
|
+
self.quantityX_smoothed_layer.refresh()
|
|
715
735
|
|
|
716
736
|
if (
|
|
717
737
|
self.quantityY_smoothed_layer is None
|
|
@@ -722,6 +742,10 @@ class PlotterWidget(Container):
|
|
|
722
742
|
)
|
|
723
743
|
else:
|
|
724
744
|
self.quantityY_smoothed_layer.data = blurredY
|
|
745
|
+
self.quantityY_smoothed_layer.contrast_limits = (
|
|
746
|
+
blurredY.min(), blurredY.max()
|
|
747
|
+
)
|
|
748
|
+
self.quantityY_smoothed_layer.refresh()
|
|
725
749
|
|
|
726
750
|
def _update_quantities_labels_choices(self, event):
|
|
727
751
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: napari-spatial-correlation-plotter
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: A
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: A plugin to compute and display spatial correlation histograms in Napari
|
|
5
5
|
Home-page: https://github.com/jules-vanaret/napari-spatial-correlation-plotter
|
|
6
6
|
Author: Jules Vanaret
|
|
7
7
|
Author-email: jules.vanaret@univ-amu.fr
|
|
@@ -31,6 +31,7 @@ Requires-Dist: matplotlib
|
|
|
31
31
|
Requires-Dist: scikit-image
|
|
32
32
|
Requires-Dist: qtpy
|
|
33
33
|
Requires-Dist: pyclesperanto_prototype
|
|
34
|
+
Requires-Dist: tapenade
|
|
34
35
|
Provides-Extra: testing
|
|
35
36
|
Requires-Dist: tox; extra == "testing"
|
|
36
37
|
Requires-Dist: pytest; extra == "testing"
|
|
@@ -52,10 +53,10 @@ Requires-Dist: pyqt5; extra == "testing"
|
|
|
52
53
|
|
|
53
54
|
A plugin to dynamically interact with the spatial correlation heatmap obtained by comparing two continuous fields of biophysical properties in 3D tissues.
|
|
54
55
|
|
|
55
|
-
`napari-spatial-correlation-plotter` is a [napari] plugin that is part of the [Tapenade](https://github.com/GuignardLab/tapenade) project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
|
|
56
|
-
|
|
57
56
|
If you use this plugin for your research, please [cite us](https://github.com/GuignardLab/tapenade/blob/main/README.md#how-to-cite).
|
|
58
57
|
|
|
58
|
+
`napari-spatial-correlation-plotter` is a [napari] plugin that is part of the [Tapenade](https://github.com/GuignardLab/tapenade) project. Tapenade is a tool for the analysis of dense 3D tissues acquired with deep imaging microscopy. It is designed to be user-friendly and to provide a comprehensive analysis of the data.
|
|
59
|
+
|
|
59
60
|
## Overview
|
|
60
61
|
|
|
61
62
|
While working with large and dense 3D and 3D+time gastruloid datasets, we found that being able to visualise and interact with the data dynamically greatly helped processing it.
|
|
@@ -102,7 +103,15 @@ Steps:
|
|
|
102
103
|
11. You can click on the `Save the figure` button to save the current plot (many formats are available, including .png, .svg, .jpeg).
|
|
103
104
|
12. You can interact with the plot by manually drawing a region of interest directly on the plot to automatically select and display the corresponding cells in 3D on an independant Napari Labels layer `clustered labels`. By using a left click, you can draw an arbitrary shape. By using a right click, you can draw a rectangle. If `Shift` is pressed while drawing, several groups of cells can appear on the `clustered labels` layer, each with a different color.
|
|
104
105
|
13. To trigger the grid view like in the example image, you can click on the `Toggle grid mode` button. This will display all layers in a grid view. By right clicking the button, you can parametrize the grid view (e.g number of columns, number of rows, etc).
|
|
105
|
-
14. You can switch between 2D and 3D view at all time by clicking on the `Toggle 2D/3D view` button (it resembles a square when in 2D mode, or a cube when in 3D mode).
|
|
106
|
+
14. You can switch between 2D and 3D view at all time by clicking on the `Toggle 2D/3D view` button (it resembles a square when in 2D mode, or a cube when in 3D mode).
|
|
107
|
+
|
|
108
|
+
## Acknowledgements
|
|
109
|
+
|
|
110
|
+
The "napari-clusters-plotter" plugin [1] heavily inspired this plugin, most notably the `SelectFromCollection`, `MplCanvas` and `FigureToolbar` classes. The `PlotterWidget` class has been modified for the specific use case of this plugin, but the core functionalites have been adapted directly.
|
|
111
|
+
napari-clusters-plotter source code is available [here](https://github.com/BiAPoL/napari-clusters-plotter/tree/main).
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
[1] Zigutyte, L., Savill, R., Müller, J., Zoccoler, M., Wagner, T., & Haase, R. (2023). napari-clusters-plotter. Zenodo. https://doi.org/10.5281/zenodo.5884657
|
|
106
115
|
|
|
107
116
|
## Contributing
|
|
108
117
|
|
{napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/LICENSE
RENAMED
|
File without changes
|
{napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/MANIFEST.in
RENAMED
|
File without changes
|
{napari_spatial_correlation_plotter-0.0.1 → napari_spatial_correlation_plotter-0.0.3}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|