theatrics 0.1.0__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.
- theatrics-0.1.0/LICENSE +28 -0
- theatrics-0.1.0/PKG-INFO +114 -0
- theatrics-0.1.0/README.md +64 -0
- theatrics-0.1.0/pyproject.toml +36 -0
- theatrics-0.1.0/setup.cfg +4 -0
- theatrics-0.1.0/src/theatrics/__init__.py +2 -0
- theatrics-0.1.0/src/theatrics/gui_app.py +2044 -0
- theatrics-0.1.0/src/theatrics/main.py +23 -0
- theatrics-0.1.0/src/theatrics/modules/SFCS_module.py +248 -0
- theatrics-0.1.0/src/theatrics/modules/export_rics.py +425 -0
- theatrics-0.1.0/src/theatrics/modules/inspect_metadata.py +45 -0
- theatrics-0.1.0/src/theatrics/modules/rics_fit.py +494 -0
- theatrics-0.1.0/src/theatrics/modules/simRICS.py +176 -0
- theatrics-0.1.0/src/theatrics/utils/__init__.py +2 -0
- theatrics-0.1.0/src/theatrics/utils/file_utils.py +9 -0
- theatrics-0.1.0/src/theatrics/utils/mp_utils.py +57 -0
- theatrics-0.1.0/src/theatrics/workers/__init__.py +2 -0
- theatrics-0.1.0/src/theatrics/workers/diffmap_worker.py +192 -0
- theatrics-0.1.0/src/theatrics/workers/export_worker.py +79 -0
- theatrics-0.1.0/src/theatrics/workers/fit_worker.py +211 -0
- theatrics-0.1.0/src/theatrics/workers/sfcs_worker.py +95 -0
- theatrics-0.1.0/src/theatrics/workers/sim_worker.py +130 -0
- theatrics-0.1.0/src/theatrics.egg-info/PKG-INFO +114 -0
- theatrics-0.1.0/src/theatrics.egg-info/SOURCES.txt +26 -0
- theatrics-0.1.0/src/theatrics.egg-info/dependency_links.txt +1 -0
- theatrics-0.1.0/src/theatrics.egg-info/entry_points.txt +2 -0
- theatrics-0.1.0/src/theatrics.egg-info/requires.txt +11 -0
- theatrics-0.1.0/src/theatrics.egg-info/top_level.txt +1 -0
theatrics-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Yusuf Qutbuddin
|
|
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
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. 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
|
+
3. Neither the name of the 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.
|
theatrics-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: theatrics
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: GUI for RICS and SFCS analysis
|
|
5
|
+
Author-email: Yusuf Qutbuddin <yusuf.qutbuddin@gmail.com>
|
|
6
|
+
License: BSD 3-Clause License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025, Yusuf Qutbuddin
|
|
9
|
+
|
|
10
|
+
Redistribution and use in source and binary forms, with or without
|
|
11
|
+
modification, are permitted provided that the following conditions are met:
|
|
12
|
+
|
|
13
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
14
|
+
list of conditions and the following disclaimer.
|
|
15
|
+
|
|
16
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
17
|
+
this list of conditions and the following disclaimer in the documentation
|
|
18
|
+
and/or other materials provided with the distribution.
|
|
19
|
+
|
|
20
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
21
|
+
contributors may be used to endorse or promote products derived from
|
|
22
|
+
this software without specific prior written permission.
|
|
23
|
+
|
|
24
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
25
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
26
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
27
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
28
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
29
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
30
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
31
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
32
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
|
+
|
|
35
|
+
Requires-Python: >=3.10
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
License-File: LICENSE
|
|
38
|
+
Requires-Dist: numpy
|
|
39
|
+
Requires-Dist: scipy
|
|
40
|
+
Requires-Dist: matplotlib
|
|
41
|
+
Requires-Dist: pandas
|
|
42
|
+
Requires-Dist: tifffile
|
|
43
|
+
Requires-Dist: tqdm
|
|
44
|
+
Requires-Dist: multipletau
|
|
45
|
+
Requires-Dist: sv-ttk
|
|
46
|
+
Requires-Dist: pylibCZIrw
|
|
47
|
+
Requires-Dist: scikit-image
|
|
48
|
+
Requires-Dist: lmfit
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
|
|
51
|
+
The software is being actively developed and currently has basic functionalities available, in case of any issues please contact yusufqq@biochem.mpg.de.
|
|
52
|
+
|
|
53
|
+
# Raster Image Correlation Spectroscopy simulation and analysis
|
|
54
|
+
A modular, extensible graphical user interface for performing and analyzing Raster Image Correlation Spectroscopy (RICS) experiments. This toolkit supports simulation, data import/export, and advanced analysis with a user-friendly workflow designed for membrane biophysics, imaging, and fluorescence correlation studies.
|
|
55
|
+
Currently the software is limited to Zeiss (.czi) files and TIFF files for the input image format for the raster scanned image. There will be a future update to involve other commonly used file types from other commercial microscope companies.
|
|
56
|
+
## Features
|
|
57
|
+
**Flexible RICS simulations**: Isotropic, anisotropic, and rotated diffusion models.
|
|
58
|
+
|
|
59
|
+
**Analysis**: Fit and analyze real or simulated image stacks. (Non-GUI batch analysis)
|
|
60
|
+
|
|
61
|
+
**Progress monitoring**: Responsive GUI with real-time progress and status bars.
|
|
62
|
+
|
|
63
|
+
**Modular design**: Easily extend with new simulation, import, or analysis modules.
|
|
64
|
+
|
|
65
|
+
**Visualization**: Integrated with Matplotlib for RICS map display and fitting results.
|
|
66
|
+
|
|
67
|
+
## Installation
|
|
68
|
+
|
|
69
|
+
The current version has been tested to work through a conda environment with some necessary modules, you can also download anaconda [here](https://www.anaconda.com/). You can use the environment.yaml file for setting up the environment.
|
|
70
|
+
|
|
71
|
+
**For Windows**: `conda env create --name <ENVNAME> --file environment_win.yml`
|
|
72
|
+
|
|
73
|
+
**For Linux**: `conda env create --name <ENVNAME> --file environment_lin.yml`
|
|
74
|
+
|
|
75
|
+
The software hasn't been tested for Mac but there is no particular reason why it shouldn't work. Once this test has been done, the environment file for Mac will also be uploaded.
|
|
76
|
+
|
|
77
|
+
## Use
|
|
78
|
+
|
|
79
|
+
Follow the simple steps to use the GUI.
|
|
80
|
+
|
|
81
|
+
1. Activate the environment: `conda activate <ENVNAME>`
|
|
82
|
+
2. Go to the correct installation directory and run `python theatRICS_gui.py`
|
|
83
|
+
|
|
84
|
+
This should launch the GUI with the following tabs loaded.
|
|
85
|
+
|
|
86
|
+
**1. Simulation tab**
|
|
87
|
+
|
|
88
|
+
The simulation tab contains the necessary parameters to use for simulating a raster scanned image for particles diffusing in 2D.
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
The simulation can be run for isotropic and anisotropic diffusion. For isotropic case, choose the same diffusion coefficient for x and y.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
**2. RICS export tab**
|
|
96
|
+
|
|
97
|
+
The window size is necessary for moving average correction, and **must** be an odd number.
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
**3. RICS fitting tab**
|
|
102
|
+
|
|
103
|
+
The fitting tab requires information of the PSF and the imaging parameters (these parameters can also be provided by uploading a czi file directly).
|
|
104
|
+
|
|
105
|
+

|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
**4. Results and log tab**
|
|
109
|
+
|
|
110
|
+
This is where the results and logging takes place.
|
|
111
|
+
|
|
112
|
+
## Contributions and Authors
|
|
113
|
+
|
|
114
|
+
The majority of the code and functionality is developed by Yusuf Qutbuddin (yusufqq@biochem.mpg.de) and the code and the method is inspired and follows similar algorithms as the [PAM](https://gitlab.com/PAM-PIE/PAM.git) software. Some functionalities have been derived from an earlier script by Jan-Hagen Krohn. Perplexity.ai has been used for debugging, annotation and file parsing algorithms and for searching and implementing tkinter.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
The software is being actively developed and currently has basic functionalities available, in case of any issues please contact yusufqq@biochem.mpg.de.
|
|
2
|
+
|
|
3
|
+
# Raster Image Correlation Spectroscopy simulation and analysis
|
|
4
|
+
A modular, extensible graphical user interface for performing and analyzing Raster Image Correlation Spectroscopy (RICS) experiments. This toolkit supports simulation, data import/export, and advanced analysis with a user-friendly workflow designed for membrane biophysics, imaging, and fluorescence correlation studies.
|
|
5
|
+
Currently the software is limited to Zeiss (.czi) files and TIFF files for the input image format for the raster scanned image. There will be a future update to involve other commonly used file types from other commercial microscope companies.
|
|
6
|
+
## Features
|
|
7
|
+
**Flexible RICS simulations**: Isotropic, anisotropic, and rotated diffusion models.
|
|
8
|
+
|
|
9
|
+
**Analysis**: Fit and analyze real or simulated image stacks. (Non-GUI batch analysis)
|
|
10
|
+
|
|
11
|
+
**Progress monitoring**: Responsive GUI with real-time progress and status bars.
|
|
12
|
+
|
|
13
|
+
**Modular design**: Easily extend with new simulation, import, or analysis modules.
|
|
14
|
+
|
|
15
|
+
**Visualization**: Integrated with Matplotlib for RICS map display and fitting results.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
The current version has been tested to work through a conda environment with some necessary modules, you can also download anaconda [here](https://www.anaconda.com/). You can use the environment.yaml file for setting up the environment.
|
|
20
|
+
|
|
21
|
+
**For Windows**: `conda env create --name <ENVNAME> --file environment_win.yml`
|
|
22
|
+
|
|
23
|
+
**For Linux**: `conda env create --name <ENVNAME> --file environment_lin.yml`
|
|
24
|
+
|
|
25
|
+
The software hasn't been tested for Mac but there is no particular reason why it shouldn't work. Once this test has been done, the environment file for Mac will also be uploaded.
|
|
26
|
+
|
|
27
|
+
## Use
|
|
28
|
+
|
|
29
|
+
Follow the simple steps to use the GUI.
|
|
30
|
+
|
|
31
|
+
1. Activate the environment: `conda activate <ENVNAME>`
|
|
32
|
+
2. Go to the correct installation directory and run `python theatRICS_gui.py`
|
|
33
|
+
|
|
34
|
+
This should launch the GUI with the following tabs loaded.
|
|
35
|
+
|
|
36
|
+
**1. Simulation tab**
|
|
37
|
+
|
|
38
|
+
The simulation tab contains the necessary parameters to use for simulating a raster scanned image for particles diffusing in 2D.
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
The simulation can be run for isotropic and anisotropic diffusion. For isotropic case, choose the same diffusion coefficient for x and y.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
**2. RICS export tab**
|
|
46
|
+
|
|
47
|
+
The window size is necessary for moving average correction, and **must** be an odd number.
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
**3. RICS fitting tab**
|
|
52
|
+
|
|
53
|
+
The fitting tab requires information of the PSF and the imaging parameters (these parameters can also be provided by uploading a czi file directly).
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
**4. Results and log tab**
|
|
59
|
+
|
|
60
|
+
This is where the results and logging takes place.
|
|
61
|
+
|
|
62
|
+
## Contributions and Authors
|
|
63
|
+
|
|
64
|
+
The majority of the code and functionality is developed by Yusuf Qutbuddin (yusufqq@biochem.mpg.de) and the code and the method is inspired and follows similar algorithms as the [PAM](https://gitlab.com/PAM-PIE/PAM.git) software. Some functionalities have been derived from an earlier script by Jan-Hagen Krohn. Perplexity.ai has been used for debugging, annotation and file parsing algorithms and for searching and implementing tkinter.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "theatrics"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "GUI for RICS and SFCS analysis"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = {file = "LICENSE"}
|
|
12
|
+
authors = [{name="Yusuf Qutbuddin", email="yusuf.qutbuddin@gmail.com"}]
|
|
13
|
+
|
|
14
|
+
dependencies = [
|
|
15
|
+
"numpy",
|
|
16
|
+
"scipy",
|
|
17
|
+
"matplotlib",
|
|
18
|
+
"pandas",
|
|
19
|
+
"tifffile",
|
|
20
|
+
"tqdm",
|
|
21
|
+
"multipletau",
|
|
22
|
+
"sv-ttk",
|
|
23
|
+
"pylibCZIrw",
|
|
24
|
+
"scikit-image",
|
|
25
|
+
"lmfit",
|
|
26
|
+
# plus any others you use (lmfit, etc.)
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
theatrics = "theatrics.main:main"
|
|
31
|
+
|
|
32
|
+
[tool.setuptools]
|
|
33
|
+
package-dir = {"" = "src"}
|
|
34
|
+
|
|
35
|
+
[tool.setuptools.packages.find]
|
|
36
|
+
where = ["src"]
|