spacr 0.3.45__py3-none-any.whl → 0.3.46__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 +5 -5
- spacr/plot.py +11 -10
- {spacr-0.3.45.dist-info → spacr-0.3.46.dist-info}/METADATA +1 -1
- {spacr-0.3.45.dist-info → spacr-0.3.46.dist-info}/RECORD +8 -8
- {spacr-0.3.45.dist-info → spacr-0.3.46.dist-info}/LICENSE +0 -0
- {spacr-0.3.45.dist-info → spacr-0.3.46.dist-info}/WHEEL +0 -0
- {spacr-0.3.45.dist-info → spacr-0.3.46.dist-info}/entry_points.txt +0 -0
- {spacr-0.3.45.dist-info → spacr-0.3.46.dist-info}/top_level.txt +0 -0
spacr/__init__.py
CHANGED
@@ -63,10 +63,10 @@ __all__ = [
|
|
63
63
|
logging.basicConfig(filename='spacr.log', level=logging.INFO,
|
64
64
|
format='%(asctime)s:%(levelname)s:%(message)s')
|
65
65
|
|
66
|
-
from
|
66
|
+
from .utils import download_models
|
67
67
|
|
68
68
|
# Check if models already exist
|
69
|
-
models_dir = os.path.join(os.path.dirname(__file__), 'resources', 'models', 'cp')
|
70
|
-
if not os.path.exists(models_dir) or not os.listdir(models_dir):
|
71
|
-
print("Models not found, downloading...")
|
72
|
-
|
69
|
+
#models_dir = os.path.join(os.path.dirname(__file__), 'resources', 'models', 'cp')
|
70
|
+
#if not os.path.exists(models_dir) or not os.listdir(models_dir):
|
71
|
+
# print("Models not found, downloading...")
|
72
|
+
download_models()
|
spacr/plot.py
CHANGED
@@ -3103,6 +3103,7 @@ def plot_data_from_csv(settings):
|
|
3103
3103
|
save=settings['save'], # Whether to save the plot and results
|
3104
3104
|
y_lim=settings['y_lim'], # Starting point for y-axis (optional)
|
3105
3105
|
log_y=settings['log_y'], # Log-transform the y-axis
|
3106
|
+
log_x=settings['log_x'], # Log-transform the x-axis
|
3106
3107
|
error_bar_type='std', # Type of error bar ('std' or 'sem')
|
3107
3108
|
representation=settings['representation'],
|
3108
3109
|
theme=settings['theme'], # Seaborn color palette theme (e.g., 'pastel', 'muted')
|
@@ -3148,16 +3149,16 @@ def plot_region(settings):
|
|
3148
3149
|
fig_3 = plot_image_grid(image_paths=activation_paths, percentiles=settings['percentiles'])
|
3149
3150
|
fig_2 = plot_image_grid(image_paths=png_paths, percentiles=settings['percentiles'])
|
3150
3151
|
fig_1 = plot_image_mask_overlay(file=fov_path,
|
3151
|
-
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3152
|
+
channels=settings['channels'],
|
3153
|
+
cell_channel=settings['cell_channel'],
|
3154
|
+
nucleus_channel=settings['nucleus_channel'],
|
3155
|
+
pathogen_channel=settings['pathogen_channel'],
|
3156
|
+
figuresize=10,
|
3157
|
+
percentiles=settings['percentiles'],
|
3158
|
+
thickness=3,
|
3159
|
+
save_pdf=False,
|
3160
|
+
mode=settings['mode'],
|
3161
|
+
export_tiffs=settings['export_tiffs'])
|
3161
3162
|
|
3162
3163
|
dst = os.path.join(settings['src'], 'results', name)
|
3163
3164
|
save_figure_as_pdf(fig_1, os.path.join(dst, f"{name}_mask_overlay.pdf"))
|
@@ -1,4 +1,4 @@
|
|
1
|
-
spacr/__init__.py,sha256=
|
1
|
+
spacr/__init__.py,sha256=CZtAdU5etLcb9dVmz-4Y7Hjhw3ubjMzfjG0L5ybyFVA,1592
|
2
2
|
spacr/__main__.py,sha256=bkAJJD2kjIqOP-u1kLvct9jQQCeUXzlEjdgitwi1Lm8,75
|
3
3
|
spacr/app_annotate.py,sha256=zGmAJplDOckhaUZijkHgbFH9LJNbd6TolU2hamplOBc,2769
|
4
4
|
spacr/app_classify.py,sha256=urTP_wlZ58hSyM5a19slYlBxN0PdC-9-ga0hvq8CGWc,165
|
@@ -20,7 +20,7 @@ spacr/measure.py,sha256=KdboGXoi85BO5-_6er7932FgjFI7G7tuaQDnWSiEuew,54817
|
|
20
20
|
spacr/mediar.py,sha256=FwLvbLQW5LQzPgvJZG8Lw7GniA2vbZx6Jv6vIKu7I5c,14743
|
21
21
|
spacr/ml.py,sha256=bPcKVk1camnOhv8jQglj6EYyipAxxmiB1QJ2Fdo3dEM,50654
|
22
22
|
spacr/openai.py,sha256=5vBZ3Jl2llYcW3oaTEXgdyCB2aJujMUIO5K038z7w_A,1246
|
23
|
-
spacr/plot.py,sha256=
|
23
|
+
spacr/plot.py,sha256=r4kbrMA8iQ317f0lvIDj4wJDIDwDXXYHEgGtFJrO3-k,145387
|
24
24
|
spacr/sequencing.py,sha256=t18mgpK6rhWuB1LtFOsPxqgpFXxuUmrD06ecsaVQ0Gw,19655
|
25
25
|
spacr/settings.py,sha256=3ygnAY6uLtkzFQdK8TMBbWV6zXEX-G_wV19YLyjCBeM,77668
|
26
26
|
spacr/sim.py,sha256=1xKhXimNU3ukzIw-3l9cF3Znc_brW8h20yv8fSTzvss,71173
|
@@ -150,9 +150,9 @@ spacr/resources/icons/umap.png,sha256=dOLF3DeLYy9k0nkUybiZMe1wzHQwLJFRmgccppw-8b
|
|
150
150
|
spacr/resources/images/plate1_E01_T0001F001L01A01Z01C02.tif,sha256=Tl0ZUfZ_AYAbu0up_nO0tPRtF1BxXhWQ3T3pURBCCRo,7958528
|
151
151
|
spacr/resources/images/plate1_E01_T0001F001L01A02Z01C01.tif,sha256=m8N-V71rA1TT4dFlENNg8s0Q0YEXXs8slIn7yObmZJQ,7958528
|
152
152
|
spacr/resources/images/plate1_E01_T0001F001L01A03Z01C03.tif,sha256=Pbhk7xn-KUP6RSIhJsxQcrHFImBm3GEpLkzx7WOc-5M,7958528
|
153
|
-
spacr-0.3.
|
154
|
-
spacr-0.3.
|
155
|
-
spacr-0.3.
|
156
|
-
spacr-0.3.
|
157
|
-
spacr-0.3.
|
158
|
-
spacr-0.3.
|
153
|
+
spacr-0.3.46.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
|
154
|
+
spacr-0.3.46.dist-info/METADATA,sha256=rDVd_7S8qknwKjW3gzWpaC4FvKLLArfmA3xqGlby088,5949
|
155
|
+
spacr-0.3.46.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
156
|
+
spacr-0.3.46.dist-info/entry_points.txt,sha256=BMC0ql9aNNpv8lUZ8sgDLQMsqaVnX5L535gEhKUP5ho,296
|
157
|
+
spacr-0.3.46.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
|
158
|
+
spacr-0.3.46.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|