napari-phasors 0.0.1__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_phasors-0.0.1/LICENSE +28 -0
- napari_phasors-0.0.1/MANIFEST.in +5 -0
- napari_phasors-0.0.1/PKG-INFO +181 -0
- napari_phasors-0.0.1/README.md +126 -0
- napari_phasors-0.0.1/pyproject.toml +60 -0
- napari_phasors-0.0.1/setup.cfg +81 -0
- napari_phasors-0.0.1/src/napari_phasors/__init__.py +29 -0
- napari_phasors-0.0.1/src/napari_phasors/_reader.py +425 -0
- napari_phasors-0.0.1/src/napari_phasors/_sample_data.py +89 -0
- napari_phasors-0.0.1/src/napari_phasors/_synthetic_generator.py +125 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/__init__.py +0 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_plotter.py +159 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_reader.py +250 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_sample_data.py +187 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_synthetic_generator.py +33 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_utils.py +65 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_widget.py +698 -0
- napari_phasors-0.0.1/src/napari_phasors/_tests/test_writer.py +69 -0
- napari_phasors-0.0.1/src/napari_phasors/_utils.py +110 -0
- napari_phasors-0.0.1/src/napari_phasors/_widget.py +901 -0
- napari_phasors-0.0.1/src/napari_phasors/_writer.py +71 -0
- napari_phasors-0.0.1/src/napari_phasors/napari.yaml +99 -0
- napari_phasors-0.0.1/src/napari_phasors/plotter.py +963 -0
- napari_phasors-0.0.1/src/napari_phasors.egg-info/PKG-INFO +181 -0
- napari_phasors-0.0.1/src/napari_phasors.egg-info/SOURCES.txt +28 -0
- napari_phasors-0.0.1/src/napari_phasors.egg-info/dependency_links.txt +1 -0
- napari_phasors-0.0.1/src/napari_phasors.egg-info/entry_points.txt +2 -0
- napari_phasors-0.0.1/src/napari_phasors.egg-info/requires.txt +28 -0
- napari_phasors-0.0.1/src/napari_phasors.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
Copyright (c) 2024, Marcelo L. Zoccoler, Bruno Pannunzio, Bruno Schuty
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
* Neither the name of copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: napari-phasors
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A simple plugin to use phasor analysis
|
|
5
|
+
Home-page: https://github.com/napari-phasors/napari-phasors
|
|
6
|
+
Author: Bruno Pannunzio, Marcelo L. Zoccoler, Bruno Schuty
|
|
7
|
+
Author-email: bpannunzio@pasteur.edu.uy, marzoccoler@gmail.com, schutyb@schutyb.com
|
|
8
|
+
License: BSD-3-Clause
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/napari-phasors/napari-phasors/issues
|
|
10
|
+
Project-URL: Documentation, https://github.com/napari-phasors/napari-phasors#README.md
|
|
11
|
+
Project-URL: Source Code, https://github.com/napari-phasors/napari-phasors
|
|
12
|
+
Project-URL: User Support, https://github.com/napari-phasors/napari-phasors/issues
|
|
13
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
14
|
+
Classifier: Framework :: napari
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Requires-Dist: phasorpy
|
|
29
|
+
Requires-Dist: qtpy
|
|
30
|
+
Requires-Dist: scikit-image
|
|
31
|
+
Requires-Dist: biaplotter>=0.0.5a2
|
|
32
|
+
Requires-Dist: lfdfiles
|
|
33
|
+
Requires-Dist: sdtfile
|
|
34
|
+
Requires-Dist: ptufile
|
|
35
|
+
Requires-Dist: tifffile
|
|
36
|
+
Requires-Dist: pandas
|
|
37
|
+
Provides-Extra: testing
|
|
38
|
+
Requires-Dist: tox; extra == "testing"
|
|
39
|
+
Requires-Dist: pytest; extra == "testing"
|
|
40
|
+
Requires-Dist: pytest-cov; extra == "testing"
|
|
41
|
+
Requires-Dist: pytest-qt; extra == "testing"
|
|
42
|
+
Requires-Dist: napari; extra == "testing"
|
|
43
|
+
Requires-Dist: qtpy; extra == "testing"
|
|
44
|
+
Requires-Dist: scikit-image; extra == "testing"
|
|
45
|
+
Requires-Dist: biaplotter>=0.0.5a0; extra == "testing"
|
|
46
|
+
Requires-Dist: PyQt5; extra == "testing"
|
|
47
|
+
Requires-Dist: pandas; extra == "testing"
|
|
48
|
+
Requires-Dist: black; extra == "testing"
|
|
49
|
+
Requires-Dist: isort; extra == "testing"
|
|
50
|
+
Requires-Dist: phasorpy; extra == "testing"
|
|
51
|
+
Requires-Dist: tifffile; extra == "testing"
|
|
52
|
+
Requires-Dist: lfdfiles; extra == "testing"
|
|
53
|
+
Requires-Dist: sdtfile; extra == "testing"
|
|
54
|
+
Requires-Dist: ptufile; extra == "testing"
|
|
55
|
+
|
|
56
|
+
# napari-phasors
|
|
57
|
+
|
|
58
|
+
[](https://github.com/napari-phasors/napari-phasors/raw/main/LICENSE)
|
|
59
|
+
[](https://pypi.org/project/napari-phasors)
|
|
60
|
+
[](https://python.org)
|
|
61
|
+
[](https://github.com/napari-phasors/napari-phasors/actions)
|
|
62
|
+
[](https://codecov.io/gh/napari-phasors/napari-phasors)
|
|
63
|
+
[](https://napari-hub.org/plugins/napari-phasors)
|
|
64
|
+
|
|
65
|
+
A simple plugin to do phasor analysis in napari. Based on the [phasorpy](https://www.phasorpy.org/) library.
|
|
66
|
+
|
|
67
|
+
[Jump to Intallation](#installation)
|
|
68
|
+
|
|
69
|
+
----------------------------------
|
|
70
|
+
|
|
71
|
+
<!--
|
|
72
|
+
Don't miss the full getting started guide to set up your new package:
|
|
73
|
+
https://github.com/napari/cookiecutter-napari-plugin#getting-started
|
|
74
|
+
|
|
75
|
+
and review the napari docs for plugin developers:
|
|
76
|
+
https://napari.org/stable/plugins/index.html
|
|
77
|
+
-->
|
|
78
|
+
|
|
79
|
+
## Usage
|
|
80
|
+
|
|
81
|
+
napari-phasors is composed of a few widgets that allow reading a few specific FLIM and hyperspectral file formats, perform phasor analysis, and display and export the results of manual phasor selections.
|
|
82
|
+
|
|
83
|
+
### Sample Data
|
|
84
|
+
|
|
85
|
+
Two sample datasets for FLIM are provided, along with their corresponding calibration images. Additionally, a paramecium image is included as sample data for hyperspectral analysis.
|
|
86
|
+
|
|
87
|
+

|
|
88
|
+
|
|
89
|
+
### Phasor Analysis
|
|
90
|
+
|
|
91
|
+
#### Plot FLIM Data
|
|
92
|
+
|
|
93
|
+
FLIM phasor data can be plotted as a 2D histogram or scatter plot. The colormap, the number of bins and the scale of the colors can be customized.
|
|
94
|
+
Filtering and thresholding can also be applied to process phasor data and the mean intensity image.
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
#### Plot Hyperspectral Data
|
|
99
|
+
|
|
100
|
+
Hyperspectral phasor data can also be plotted as a 2D histogram or scatter plot and visualized in the full universal circle.
|
|
101
|
+
|
|
102
|
+

|
|
103
|
+
|
|
104
|
+
### Apparent Lifetime Display
|
|
105
|
+
|
|
106
|
+
A FLIM image can be colormapped according to the phase or modulation apparent lifetime. A histogram is also created for visualization of the distribution of apparent lifetimes of the FLIM image.
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
### Phasor Calibration
|
|
111
|
+
|
|
112
|
+
FLIM images can be calibrated using a reference image acquired under the same experimental parameters. This reference image should consist of a homogeneous solution of a fluorophore with a known fluorescence lifetime and the laser frequency used in the experiment. This ensures accuracy and consistency in lifetime measurements.
|
|
113
|
+
|
|
114
|
+

|
|
115
|
+
|
|
116
|
+
### Phasor Custom Import
|
|
117
|
+
|
|
118
|
+
Supported file formats (`.tif`, `.ptu`, `.sdt`, `.fbd`, `.lsm`, `.ome.tif`) can be read and transformed to the phasor space. Additional options, such as the harmonics, channels and frames, can be specified depending on the file format to be read.
|
|
119
|
+
|
|
120
|
+

|
|
121
|
+
|
|
122
|
+
### Phasor Export
|
|
123
|
+
|
|
124
|
+
The average intensity image and the phasor coordinates can be exported as OME-TIF files that can be read by napari-phasors and PhasorPy. Alternatively, the phasor coordinates, as well as the selections (cursors) can be exported as a CSV file.
|
|
125
|
+
|
|
126
|
+

|
|
127
|
+
|
|
128
|
+
## Installation
|
|
129
|
+
|
|
130
|
+
You can install `napari-phasors` via [pip]. Follow these steps from a terminal.
|
|
131
|
+
|
|
132
|
+
We recommend using `miniforge` whenever possible. Click [here](https://github.com/conda-forge/miniforge?tab=readme-ov-file#miniforge) to choose the right download option for your OS.
|
|
133
|
+
**If you do not use `miniforge`, but rather Anaconda or Miniconda, replace the `mamba` term whenever you see it below with `conda`.**
|
|
134
|
+
|
|
135
|
+
Create a conda environment with napari by typing :
|
|
136
|
+
|
|
137
|
+
mamba create -n napari-phasors-env napari pyqt python=3.10
|
|
138
|
+
|
|
139
|
+
Activate the environment :
|
|
140
|
+
|
|
141
|
+
mamba activate napari-phasors-env
|
|
142
|
+
|
|
143
|
+
Install `napari-phasors` via [pip] :
|
|
144
|
+
|
|
145
|
+
pip install napari-phasors
|
|
146
|
+
|
|
147
|
+
Alternatively, install latest development version with :
|
|
148
|
+
|
|
149
|
+
pip install git+https://github.com/napari-phasors/napari-phasors.git
|
|
150
|
+
|
|
151
|
+
## Contributing
|
|
152
|
+
|
|
153
|
+
Contributions are very welcome. Tests can be run with [tox], please ensure
|
|
154
|
+
the coverage at least stays the same before you submit a pull request.
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
Distributed under the terms of the [BSD-3] license,
|
|
159
|
+
"napari-phasors" is free and open source software
|
|
160
|
+
|
|
161
|
+
## Issues
|
|
162
|
+
|
|
163
|
+
If you encounter any problems, please [file an issue] along with a detailed description.
|
|
164
|
+
|
|
165
|
+
[napari]: https://github.com/napari/napari
|
|
166
|
+
[Cookiecutter]: https://github.com/audreyr/cookiecutter
|
|
167
|
+
[@napari]: https://github.com/napari
|
|
168
|
+
[MIT]: http://opensource.org/licenses/MIT
|
|
169
|
+
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
|
|
170
|
+
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
|
|
171
|
+
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
172
|
+
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
|
|
173
|
+
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
|
|
174
|
+
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
|
|
175
|
+
|
|
176
|
+
[file an issue]: https://github.com/napari-phasors/napari-phasors/issues
|
|
177
|
+
|
|
178
|
+
[napari]: https://github.com/napari/napari
|
|
179
|
+
[tox]: https://tox.readthedocs.io/en/latest/
|
|
180
|
+
[pip]: https://pypi.org/project/pip/
|
|
181
|
+
[PyPI]: https://pypi.org/
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# napari-phasors
|
|
2
|
+
|
|
3
|
+
[](https://github.com/napari-phasors/napari-phasors/raw/main/LICENSE)
|
|
4
|
+
[](https://pypi.org/project/napari-phasors)
|
|
5
|
+
[](https://python.org)
|
|
6
|
+
[](https://github.com/napari-phasors/napari-phasors/actions)
|
|
7
|
+
[](https://codecov.io/gh/napari-phasors/napari-phasors)
|
|
8
|
+
[](https://napari-hub.org/plugins/napari-phasors)
|
|
9
|
+
|
|
10
|
+
A simple plugin to do phasor analysis in napari. Based on the [phasorpy](https://www.phasorpy.org/) library.
|
|
11
|
+
|
|
12
|
+
[Jump to Intallation](#installation)
|
|
13
|
+
|
|
14
|
+
----------------------------------
|
|
15
|
+
|
|
16
|
+
<!--
|
|
17
|
+
Don't miss the full getting started guide to set up your new package:
|
|
18
|
+
https://github.com/napari/cookiecutter-napari-plugin#getting-started
|
|
19
|
+
|
|
20
|
+
and review the napari docs for plugin developers:
|
|
21
|
+
https://napari.org/stable/plugins/index.html
|
|
22
|
+
-->
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
napari-phasors is composed of a few widgets that allow reading a few specific FLIM and hyperspectral file formats, perform phasor analysis, and display and export the results of manual phasor selections.
|
|
27
|
+
|
|
28
|
+
### Sample Data
|
|
29
|
+
|
|
30
|
+
Two sample datasets for FLIM are provided, along with their corresponding calibration images. Additionally, a paramecium image is included as sample data for hyperspectral analysis.
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
### Phasor Analysis
|
|
35
|
+
|
|
36
|
+
#### Plot FLIM Data
|
|
37
|
+
|
|
38
|
+
FLIM phasor data can be plotted as a 2D histogram or scatter plot. The colormap, the number of bins and the scale of the colors can be customized.
|
|
39
|
+
Filtering and thresholding can also be applied to process phasor data and the mean intensity image.
|
|
40
|
+
|
|
41
|
+

|
|
42
|
+
|
|
43
|
+
#### Plot Hyperspectral Data
|
|
44
|
+
|
|
45
|
+
Hyperspectral phasor data can also be plotted as a 2D histogram or scatter plot and visualized in the full universal circle.
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+
### Apparent Lifetime Display
|
|
50
|
+
|
|
51
|
+
A FLIM image can be colormapped according to the phase or modulation apparent lifetime. A histogram is also created for visualization of the distribution of apparent lifetimes of the FLIM image.
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
### Phasor Calibration
|
|
56
|
+
|
|
57
|
+
FLIM images can be calibrated using a reference image acquired under the same experimental parameters. This reference image should consist of a homogeneous solution of a fluorophore with a known fluorescence lifetime and the laser frequency used in the experiment. This ensures accuracy and consistency in lifetime measurements.
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
### Phasor Custom Import
|
|
62
|
+
|
|
63
|
+
Supported file formats (`.tif`, `.ptu`, `.sdt`, `.fbd`, `.lsm`, `.ome.tif`) can be read and transformed to the phasor space. Additional options, such as the harmonics, channels and frames, can be specified depending on the file format to be read.
|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
### Phasor Export
|
|
68
|
+
|
|
69
|
+
The average intensity image and the phasor coordinates can be exported as OME-TIF files that can be read by napari-phasors and PhasorPy. Alternatively, the phasor coordinates, as well as the selections (cursors) can be exported as a CSV file.
|
|
70
|
+
|
|
71
|
+

|
|
72
|
+
|
|
73
|
+
## Installation
|
|
74
|
+
|
|
75
|
+
You can install `napari-phasors` via [pip]. Follow these steps from a terminal.
|
|
76
|
+
|
|
77
|
+
We recommend using `miniforge` whenever possible. Click [here](https://github.com/conda-forge/miniforge?tab=readme-ov-file#miniforge) to choose the right download option for your OS.
|
|
78
|
+
**If you do not use `miniforge`, but rather Anaconda or Miniconda, replace the `mamba` term whenever you see it below with `conda`.**
|
|
79
|
+
|
|
80
|
+
Create a conda environment with napari by typing :
|
|
81
|
+
|
|
82
|
+
mamba create -n napari-phasors-env napari pyqt python=3.10
|
|
83
|
+
|
|
84
|
+
Activate the environment :
|
|
85
|
+
|
|
86
|
+
mamba activate napari-phasors-env
|
|
87
|
+
|
|
88
|
+
Install `napari-phasors` via [pip] :
|
|
89
|
+
|
|
90
|
+
pip install napari-phasors
|
|
91
|
+
|
|
92
|
+
Alternatively, install latest development version with :
|
|
93
|
+
|
|
94
|
+
pip install git+https://github.com/napari-phasors/napari-phasors.git
|
|
95
|
+
|
|
96
|
+
## Contributing
|
|
97
|
+
|
|
98
|
+
Contributions are very welcome. Tests can be run with [tox], please ensure
|
|
99
|
+
the coverage at least stays the same before you submit a pull request.
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
Distributed under the terms of the [BSD-3] license,
|
|
104
|
+
"napari-phasors" is free and open source software
|
|
105
|
+
|
|
106
|
+
## Issues
|
|
107
|
+
|
|
108
|
+
If you encounter any problems, please [file an issue] along with a detailed description.
|
|
109
|
+
|
|
110
|
+
[napari]: https://github.com/napari/napari
|
|
111
|
+
[Cookiecutter]: https://github.com/audreyr/cookiecutter
|
|
112
|
+
[@napari]: https://github.com/napari
|
|
113
|
+
[MIT]: http://opensource.org/licenses/MIT
|
|
114
|
+
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
|
|
115
|
+
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
|
|
116
|
+
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
117
|
+
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
|
|
118
|
+
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
|
|
119
|
+
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
|
|
120
|
+
|
|
121
|
+
[file an issue]: https://github.com/napari-phasors/napari-phasors/issues
|
|
122
|
+
|
|
123
|
+
[napari]: https://github.com/napari/napari
|
|
124
|
+
[tox]: https://tox.readthedocs.io/en/latest/
|
|
125
|
+
[pip]: https://pypi.org/project/pip/
|
|
126
|
+
[PyPI]: https://pypi.org/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=42.0.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[tool.black]
|
|
7
|
+
line-length = 79
|
|
8
|
+
target-version = ["py310"]
|
|
9
|
+
skip-string-normalization = true
|
|
10
|
+
|
|
11
|
+
[tool.isort]
|
|
12
|
+
profile = "black"
|
|
13
|
+
line_length = 79
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
[tool.ruff]
|
|
17
|
+
line-length = 79
|
|
18
|
+
lint.select = [
|
|
19
|
+
"E", "F", "W", #flake8
|
|
20
|
+
"UP", # pyupgrade
|
|
21
|
+
"I", # isort
|
|
22
|
+
"BLE", # flake8-blind-exception
|
|
23
|
+
"B", # flake8-bugbear
|
|
24
|
+
"A", # flake8-builtins
|
|
25
|
+
"C4", # flake8-comprehensions
|
|
26
|
+
"ISC", # flake8-implicit-str-concat
|
|
27
|
+
"G", # flake8-logging-format
|
|
28
|
+
"PIE", # flake8-pie
|
|
29
|
+
"SIM", # flake8-simplify
|
|
30
|
+
]
|
|
31
|
+
lint.ignore = [
|
|
32
|
+
"E501", # line too long. let black handle this
|
|
33
|
+
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
|
|
34
|
+
"SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
exclude = [
|
|
38
|
+
".bzr",
|
|
39
|
+
".direnv",
|
|
40
|
+
".eggs",
|
|
41
|
+
".git",
|
|
42
|
+
".mypy_cache",
|
|
43
|
+
".pants.d",
|
|
44
|
+
".ruff_cache",
|
|
45
|
+
".svn",
|
|
46
|
+
".tox",
|
|
47
|
+
".venv",
|
|
48
|
+
"__pypackages__",
|
|
49
|
+
"_build",
|
|
50
|
+
"buck-out",
|
|
51
|
+
"build",
|
|
52
|
+
"dist",
|
|
53
|
+
"node_modules",
|
|
54
|
+
"venv",
|
|
55
|
+
"*vendored*",
|
|
56
|
+
"*_vendor*",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
target-version = "py38"
|
|
60
|
+
fix = true
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
name = napari-phasors
|
|
3
|
+
version = attr: napari_phasors.__version__
|
|
4
|
+
description = A simple plugin to use phasor analysis
|
|
5
|
+
long_description = file: README.md
|
|
6
|
+
long_description_content_type = text/markdown
|
|
7
|
+
url = https://github.com/napari-phasors/napari-phasors
|
|
8
|
+
author = Bruno Pannunzio, Marcelo L. Zoccoler, Bruno Schuty
|
|
9
|
+
author_email = bpannunzio@pasteur.edu.uy, marzoccoler@gmail.com, schutyb@schutyb.com
|
|
10
|
+
license = BSD-3-Clause
|
|
11
|
+
license_files = LICENSE
|
|
12
|
+
classifiers =
|
|
13
|
+
Development Status :: 2 - Pre-Alpha
|
|
14
|
+
Framework :: napari
|
|
15
|
+
Intended Audience :: Developers
|
|
16
|
+
License :: OSI Approved :: BSD License
|
|
17
|
+
Operating System :: OS Independent
|
|
18
|
+
Programming Language :: Python
|
|
19
|
+
Programming Language :: Python :: 3
|
|
20
|
+
Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Programming Language :: Python :: 3.10
|
|
22
|
+
Programming Language :: Python :: 3.11
|
|
23
|
+
Programming Language :: Python :: 3.12
|
|
24
|
+
Topic :: Scientific/Engineering :: Image Processing
|
|
25
|
+
project_urls =
|
|
26
|
+
Bug Tracker = https://github.com/napari-phasors/napari-phasors/issues
|
|
27
|
+
Documentation = https://github.com/napari-phasors/napari-phasors#README.md
|
|
28
|
+
Source Code = https://github.com/napari-phasors/napari-phasors
|
|
29
|
+
User Support = https://github.com/napari-phasors/napari-phasors/issues
|
|
30
|
+
|
|
31
|
+
[options]
|
|
32
|
+
packages = find:
|
|
33
|
+
install_requires =
|
|
34
|
+
phasorpy
|
|
35
|
+
qtpy
|
|
36
|
+
scikit-image
|
|
37
|
+
biaplotter>=0.0.5a2
|
|
38
|
+
lfdfiles
|
|
39
|
+
sdtfile
|
|
40
|
+
ptufile
|
|
41
|
+
tifffile
|
|
42
|
+
pandas
|
|
43
|
+
python_requires = >=3.10
|
|
44
|
+
include_package_data = True
|
|
45
|
+
package_dir =
|
|
46
|
+
=src
|
|
47
|
+
|
|
48
|
+
[options.packages.find]
|
|
49
|
+
where = src
|
|
50
|
+
|
|
51
|
+
[options.entry_points]
|
|
52
|
+
napari.manifest =
|
|
53
|
+
napari-phasors = napari_phasors:napari.yaml
|
|
54
|
+
|
|
55
|
+
[options.extras_require]
|
|
56
|
+
testing =
|
|
57
|
+
tox
|
|
58
|
+
pytest # https://docs.pytest.org/en/latest/contents.html
|
|
59
|
+
pytest-cov # https://pytest-cov.readthedocs.io/en/latest/
|
|
60
|
+
pytest-qt # https://pytest-qt.readthedocs.io/en/latest/
|
|
61
|
+
napari
|
|
62
|
+
qtpy
|
|
63
|
+
scikit-image
|
|
64
|
+
biaplotter>=0.0.5a0
|
|
65
|
+
PyQt5
|
|
66
|
+
pandas
|
|
67
|
+
black
|
|
68
|
+
isort
|
|
69
|
+
phasorpy
|
|
70
|
+
tifffile
|
|
71
|
+
lfdfiles
|
|
72
|
+
sdtfile
|
|
73
|
+
ptufile
|
|
74
|
+
|
|
75
|
+
[options.package_data]
|
|
76
|
+
* = *.yaml
|
|
77
|
+
|
|
78
|
+
[egg_info]
|
|
79
|
+
tag_build =
|
|
80
|
+
tag_date = 0
|
|
81
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
__version__ = "0.0.1"
|
|
2
|
+
|
|
3
|
+
from ._reader import napari_get_reader
|
|
4
|
+
from ._sample_data import (
|
|
5
|
+
convallaria_FLIM_sample_data,
|
|
6
|
+
embryo_FLIM_sample_data,
|
|
7
|
+
paramecium_HSI_sample_data,
|
|
8
|
+
)
|
|
9
|
+
from ._widget import (
|
|
10
|
+
CalibrationWidget,
|
|
11
|
+
LifetimeWidget,
|
|
12
|
+
PhasorTransform,
|
|
13
|
+
WriterWidget,
|
|
14
|
+
)
|
|
15
|
+
from ._writer import write_ome_tiff
|
|
16
|
+
from .plotter import PlotterWidget
|
|
17
|
+
|
|
18
|
+
__all__ = (
|
|
19
|
+
"napari_get_reader",
|
|
20
|
+
"write_ome_tiff",
|
|
21
|
+
"convallaria_FLIM_sample_data",
|
|
22
|
+
"embryo_FLIM_sample_data",
|
|
23
|
+
"paramecium_HSI_sample_data",
|
|
24
|
+
"PhasorTransform",
|
|
25
|
+
"PlotterWidget",
|
|
26
|
+
"CalibrationWidget",
|
|
27
|
+
"WriterWidget",
|
|
28
|
+
"LifetimeWidget",
|
|
29
|
+
)
|