spacr 0.2.65__py3-none-any.whl → 0.2.66__py3-none-any.whl
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.
- spacr/__init__.py +0 -8
- spacr/gui.py +9 -0
- spacr/utils.py +11 -1
- {spacr-0.2.65.dist-info → spacr-0.2.66.dist-info}/METADATA +43 -41
- {spacr-0.2.65.dist-info → spacr-0.2.66.dist-info}/RECORD +9 -9
- {spacr-0.2.65.dist-info → spacr-0.2.66.dist-info}/WHEEL +1 -1
- {spacr-0.2.65.dist-info → spacr-0.2.66.dist-info}/LICENSE +0 -0
- {spacr-0.2.65.dist-info → spacr-0.2.66.dist-info}/entry_points.txt +0 -0
- {spacr-0.2.65.dist-info → spacr-0.2.66.dist-info}/top_level.txt +0 -0
spacr/__init__.py
CHANGED
@@ -51,13 +51,5 @@ __all__ = [
|
|
51
51
|
"logger"
|
52
52
|
]
|
53
53
|
|
54
|
-
# Check for CUDA GPU availability
|
55
|
-
if torch.cuda.is_available():
|
56
|
-
from . import graph_learning
|
57
|
-
__all__.append("graph_learning")
|
58
|
-
logging.info("CUDA GPU detected. Graph learning module loaded.")
|
59
|
-
else:
|
60
|
-
logging.info("No CUDA GPU detected. Graph learning module not loaded.")
|
61
|
-
|
62
54
|
logging.basicConfig(filename='spacr.log', level=logging.INFO,
|
63
55
|
format='%(asctime)s:%(levelname)s:%(message)s')
|
spacr/gui.py
CHANGED
@@ -7,6 +7,15 @@ from .gui_core import initiate_root
|
|
7
7
|
class MainApp(tk.Tk):
|
8
8
|
def __init__(self, default_app=None):
|
9
9
|
super().__init__()
|
10
|
+
|
11
|
+
# Initialize the window
|
12
|
+
self.geometry("100x100")
|
13
|
+
self.update_idletasks()
|
14
|
+
|
15
|
+
# Expand the window to fullscreen
|
16
|
+
self.attributes('-fullscreen', True)
|
17
|
+
self.update_idletasks()
|
18
|
+
|
10
19
|
width = self.winfo_screenwidth()
|
11
20
|
height = self.winfo_screenheight()
|
12
21
|
self.geometry(f"{width}x{height}")
|
spacr/utils.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import sys, os, re, sqlite3, torch, torchvision, random, string, shutil, cv2, tarfile, glob, psutil, platform, gzip
|
1
|
+
import sys, os, re, sqlite3, torch, torchvision, random, string, shutil, cv2, tarfile, glob, psutil, platform, gzip, subprocess
|
2
2
|
|
3
3
|
import numpy as np
|
4
4
|
from cellpose import models as cp_models
|
@@ -4433,3 +4433,13 @@ def count_reads_in_fastq(fastq_file):
|
|
4433
4433
|
for _ in f:
|
4434
4434
|
count += 1
|
4435
4435
|
return count // 4
|
4436
|
+
|
4437
|
+
|
4438
|
+
# Function to determine the CUDA version
|
4439
|
+
def get_cuda_version():
|
4440
|
+
try:
|
4441
|
+
output = subprocess.check_output(['nvcc', '--version'], stderr=subprocess.STDOUT).decode('utf-8')
|
4442
|
+
if 'release' in output:
|
4443
|
+
return output.split('release ')[1].split(',')[0].replace('.', '')
|
4444
|
+
except (subprocess.CalledProcessError, FileNotFoundError):
|
4445
|
+
return None
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: spacr
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.66
|
4
4
|
Summary: Spatial phenotype analysis of crisp screens (SpaCr)
|
5
5
|
Home-page: https://github.com/EinarOlafsson/spacr
|
6
6
|
Author: Einar Birnir Olafsson
|
@@ -9,49 +9,51 @@ Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
License-File: LICENSE
|
12
|
-
Requires-Dist: torch
|
13
|
-
Requires-Dist: torchvision
|
14
|
-
Requires-Dist: torch-geometric
|
15
|
-
Requires-Dist: numpy
|
16
|
-
Requires-Dist: pandas
|
17
|
-
Requires-Dist:
|
18
|
-
Requires-Dist:
|
19
|
-
Requires-Dist:
|
20
|
-
Requires-Dist:
|
21
|
-
Requires-Dist:
|
22
|
-
Requires-Dist:
|
23
|
-
Requires-Dist:
|
24
|
-
Requires-Dist:
|
25
|
-
Requires-Dist:
|
26
|
-
Requires-Dist:
|
27
|
-
Requires-Dist:
|
28
|
-
Requires-Dist:
|
29
|
-
Requires-Dist:
|
30
|
-
Requires-Dist:
|
31
|
-
Requires-Dist:
|
32
|
-
Requires-Dist:
|
33
|
-
Requires-Dist:
|
34
|
-
Requires-Dist:
|
35
|
-
Requires-Dist:
|
36
|
-
Requires-Dist:
|
37
|
-
Requires-Dist:
|
38
|
-
Requires-Dist:
|
39
|
-
Requires-Dist:
|
40
|
-
Requires-Dist:
|
41
|
-
Requires-Dist:
|
42
|
-
Requires-Dist:
|
43
|
-
Requires-Dist:
|
44
|
-
Requires-Dist:
|
45
|
-
Requires-Dist:
|
46
|
-
Requires-Dist:
|
47
|
-
Requires-Dist:
|
48
|
-
Requires-Dist:
|
12
|
+
Requires-Dist: torch<3.0,>=2.0
|
13
|
+
Requires-Dist: torchvision<1.0,>=0.1
|
14
|
+
Requires-Dist: torch-geometric<3.0,>=2.5
|
15
|
+
Requires-Dist: numpy<2.0,>=1.26.4
|
16
|
+
Requires-Dist: pandas<3.0,>=2.2.1
|
17
|
+
Requires-Dist: bottleneck<2.0,>=1.3.6
|
18
|
+
Requires-Dist: numexpr<3.0,>=2.8.4
|
19
|
+
Requires-Dist: statsmodels<1.0,>=0.14.1
|
20
|
+
Requires-Dist: scikit-image<1.0,>=0.22.0
|
21
|
+
Requires-Dist: scikit-learn<2.0,>=1.4.1
|
22
|
+
Requires-Dist: seaborn<1.0,>=0.13.2
|
23
|
+
Requires-Dist: matplotlib<4.0,>=3.8.3
|
24
|
+
Requires-Dist: shap<1.0,>=0.45.0
|
25
|
+
Requires-Dist: pillow<11.0,>=10.2.0
|
26
|
+
Requires-Dist: imageio<3.0,>=2.34.0
|
27
|
+
Requires-Dist: scipy<2.0,>=1.12.0
|
28
|
+
Requires-Dist: ipywidgets<9.0,>=8.1.2
|
29
|
+
Requires-Dist: mahotas<2.0,>=1.4.13
|
30
|
+
Requires-Dist: btrack<1.0,>=0.6.5
|
31
|
+
Requires-Dist: trackpy<1.0,>=0.6.2
|
32
|
+
Requires-Dist: cellpose<4.0,>=3.0.6
|
33
|
+
Requires-Dist: IPython<9.0,>=8.18.1
|
34
|
+
Requires-Dist: opencv-python-headless<5.0,>=4.9.0.80
|
35
|
+
Requires-Dist: umap-learn<1.0,>=0.5.6
|
36
|
+
Requires-Dist: ttkthemes<4.0,>=3.2.2
|
37
|
+
Requires-Dist: xgboost<3.0,>=2.0.3
|
38
|
+
Requires-Dist: PyWavelets<2.0,>=1.6.0
|
39
|
+
Requires-Dist: torchcam<1.0,>=0.4.0
|
40
|
+
Requires-Dist: ttf-opensans>=2020.10.30
|
41
|
+
Requires-Dist: customtkinter<6.0,>=5.2.2
|
42
|
+
Requires-Dist: biopython<2.0,>=1.80
|
43
|
+
Requires-Dist: lxml<6.0,>=5.1.0
|
44
|
+
Requires-Dist: psutil<6.0,>=5.9.8
|
45
|
+
Requires-Dist: gputil<2.0,>=1.4.0
|
46
|
+
Requires-Dist: gpustat<2.0,>=1.1.1
|
47
|
+
Requires-Dist: pyautogui<1.0,>=0.9.54
|
48
|
+
Requires-Dist: tables<4.0,>=3.8.0
|
49
|
+
Requires-Dist: rapidfuzz<4.0,>=3.9
|
50
|
+
Requires-Dist: huggingface-hub<0.25,>=0.24.0
|
49
51
|
Provides-Extra: dev
|
50
|
-
Requires-Dist: pytest
|
52
|
+
Requires-Dist: pytest<3.11,>=3.9; extra == "dev"
|
51
53
|
Provides-Extra: full
|
52
|
-
Requires-Dist: opencv-python
|
54
|
+
Requires-Dist: opencv-python; extra == "full"
|
53
55
|
Provides-Extra: headless
|
54
|
-
Requires-Dist: opencv-python-headless
|
56
|
+
Requires-Dist: opencv-python-headless; extra == "headless"
|
55
57
|
|
56
58
|
.. |Documentation Status| image:: https://readthedocs.org/projects/spacr/badge/?version=latest
|
57
59
|
:target: https://spacr.readthedocs.io/en/latest/?badge=latest
|
@@ -1,4 +1,4 @@
|
|
1
|
-
spacr/__init__.py,sha256=
|
1
|
+
spacr/__init__.py,sha256=8NZIlJOY2OzRCFjXvqusFL7BfyEJwNqB2lL8QNB-Kgo,1141
|
2
2
|
spacr/__main__.py,sha256=bkAJJD2kjIqOP-u1kLvct9jQQCeUXzlEjdgitwi1Lm8,75
|
3
3
|
spacr/app_annotate.py,sha256=nEIL7Fle9CDKGo3sucG_03DgjUQt5W1M1IHBIpVBr08,2171
|
4
4
|
spacr/app_classify.py,sha256=urTP_wlZ58hSyM5a19slYlBxN0PdC-9-ga0hvq8CGWc,165
|
@@ -11,7 +11,7 @@ spacr/chris.py,sha256=YlBjSgeZaY8HPy6jkrT_ISAnCMAKVfvCxF0I9eAZLFM,2418
|
|
11
11
|
spacr/core.py,sha256=IDme9j7eeC_49KGaNk_xPOKtpxdcXKMhYtoo3xhjQMM,146502
|
12
12
|
spacr/deep_spacr.py,sha256=a2YewgkQvLV-95NYJAutnojvJmX4S8z_wv6Tb-XIgUI,34484
|
13
13
|
spacr/graph_learning.py,sha256=1tR-ZxvXE3dBz1Saw7BeVFcrsUFu9OlUZeZVifih9eo,13070
|
14
|
-
spacr/gui.py,sha256=
|
14
|
+
spacr/gui.py,sha256=q8SBFiMeU6Sy3orpzHdsFxvURr5zv-S-9DOD3TEQ6ag,7445
|
15
15
|
spacr/gui_core.py,sha256=HXeMfvthY_G371o84Dcr59VLT6AOKQF8r_V9kVzg7h0,38745
|
16
16
|
spacr/gui_elements.py,sha256=7YLyIeK5JFqzevzEruvfQOrfDGOS9ZgD8ZE-dxywp3g,122706
|
17
17
|
spacr/gui_utils.py,sha256=1pZ9QAh6BCVb6BSXciU0V9qFWOSsTtCiC72iGXUdV0c,29941
|
@@ -24,7 +24,7 @@ spacr/settings.py,sha256=tDvTBWANeuI6YC_fH5vK2HOOuRgQXIkzyNKDmt1vL4c,67745
|
|
24
24
|
spacr/sim.py,sha256=FveaVgBi3eypO2oVB5Dx-v0CC1Ny7UPfXkJiiRRodAk,71212
|
25
25
|
spacr/sim_app.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
spacr/timelapse.py,sha256=KMYCgHzf9LTZe-lWl5mvH2EjbKRE6OhpwdY13wEumGc,39504
|
27
|
-
spacr/utils.py,sha256=
|
27
|
+
spacr/utils.py,sha256=R8PA8MyldBKQOvITo9f4oVFcKOMKv5gaD9T86T_LrEA,189120
|
28
28
|
spacr/version.py,sha256=axH5tnGwtgSnJHb5IDhiu4Zjk5GhLyAEDRe-rnaoFOA,409
|
29
29
|
spacr/resources/font/open_sans/OFL.txt,sha256=bGMoWBRrE2RcdzDiuYiB8A9OVFlJ0sA2imWwce2DAdo,4484
|
30
30
|
"spacr/resources/font/open_sans/OpenSans-Italic-VariableFont_wdth,wght.ttf",sha256=QSoWv9h46CRX_fdlqFM3O2d3-PF3R1srnb4zUezcLm0,580280
|
@@ -92,9 +92,9 @@ spacr/resources/icons/umap.png,sha256=dOLF3DeLYy9k0nkUybiZMe1wzHQwLJFRmgccppw-8b
|
|
92
92
|
spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model,sha256=z8BbHWZPRnE9D_BHO0fBREE85c1vkltDs-incs2ytXQ,26566572
|
93
93
|
spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model_settings.csv,sha256=fBAGuL_B8ERVdVizO3BHozTDSbZUh1yFzsYK3wkQN68,420
|
94
94
|
spacr/resources/models/cp/toxo_pv_lumen.CP_model,sha256=2y_CindYhmTvVwBH39SNILF3rI3x9SsRn6qrMxHy3l0,26562451
|
95
|
-
spacr-0.2.
|
96
|
-
spacr-0.2.
|
97
|
-
spacr-0.2.
|
98
|
-
spacr-0.2.
|
99
|
-
spacr-0.2.
|
100
|
-
spacr-0.2.
|
95
|
+
spacr-0.2.66.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
|
96
|
+
spacr-0.2.66.dist-info/METADATA,sha256=OFvnPazh5gN1lwOQNMGCca5fdhXteebOX26LnhaLui0,5291
|
97
|
+
spacr-0.2.66.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
98
|
+
spacr-0.2.66.dist-info/entry_points.txt,sha256=BMC0ql9aNNpv8lUZ8sgDLQMsqaVnX5L535gEhKUP5ho,296
|
99
|
+
spacr-0.2.66.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
|
100
|
+
spacr-0.2.66.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|