cellcoloc 0.0.1__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.
cellcoloc/__init__.py ADDED
@@ -0,0 +1,111 @@
1
+ """Reusable core pipeline for interactive segmentation-based colocalization.
2
+
3
+ The package is intentionally structured so that project-specific user scripts
4
+ can stay small: they define settings, call the imported pipeline functions cell
5
+ by cell, and write all outputs to a standardized ``results`` directory located
6
+ next to the source dataset.
7
+
8
+ author: Fabrizio Musacchio
9
+ date: May/June 2026
10
+ """
11
+
12
+ from __future__ import annotations
13
+
14
+ from .runtime import get_runtime_cache_root, prepare_runtime_environment
15
+
16
+ prepare_runtime_environment()
17
+
18
+ from .analysis import (
19
+ analyze_existing_masks,
20
+ build_positive_cell_mask,
21
+ prepare_loaded_images_for_analysis,
22
+ refine_run_result_from_cellpose_cache,
23
+ run_roi_cellpose_colocalization,
24
+ )
25
+ from .config import (
26
+ CellposeModelConfig,
27
+ ChannelConfig,
28
+ ColocalizationConfig,
29
+ DisplayNames,
30
+ OptionalRegionSegmentationConfig,
31
+ RuntimeConfig,
32
+ )
33
+ from .io import (
34
+ build_results_paths,
35
+ export_analysis_outputs,
36
+ load_analysis_images,
37
+ load_roi_labels,
38
+ save_roi_labels,
39
+ try_load_roi_labels,
40
+ )
41
+ from .roi import (
42
+ create_full_image_roi_labels,
43
+ create_roi_drawing_viewer,
44
+ get_bbox_2d,
45
+ get_roi_label_points,
46
+ rasterize_shapes_to_labelmask,
47
+ save_roi_labels_from_shapes,
48
+ )
49
+ from .schemas import (
50
+ ColocalizationRunResult,
51
+ ColocalizationTables,
52
+ LoadedImageChannels,
53
+ OptionalRegionSegmentationResult,
54
+ ResultsPaths,
55
+ )
56
+ from .segmentation import (
57
+ create_cellpose_model,
58
+ create_cellpose_models_for_channels,
59
+ evaluate_cellpose_model,
60
+ filter_labels_by_size,
61
+ get_cellpose_major_version,
62
+ get_available_cellpose_model_names,
63
+ relabel_with_offset,
64
+ segment_optional_region,
65
+ )
66
+ from .visualization import show_analysis_results, show_optional_region_segmentation
67
+ from .visualization import extract_label_masks_from_viewer
68
+
69
+ __all__ = [
70
+ "CellposeModelConfig",
71
+ "ChannelConfig",
72
+ "ColocalizationConfig",
73
+ "DisplayNames",
74
+ "OptionalRegionSegmentationConfig",
75
+ "RuntimeConfig",
76
+ "ResultsPaths",
77
+ "LoadedImageChannels",
78
+ "OptionalRegionSegmentationResult",
79
+ "ColocalizationTables",
80
+ "ColocalizationRunResult",
81
+ "build_results_paths",
82
+ "load_analysis_images",
83
+ "save_roi_labels",
84
+ "load_roi_labels",
85
+ "try_load_roi_labels",
86
+ "export_analysis_outputs",
87
+ "analyze_existing_masks",
88
+ "prepare_loaded_images_for_analysis",
89
+ "prepare_runtime_environment",
90
+ "get_runtime_cache_root",
91
+ "create_full_image_roi_labels",
92
+ "rasterize_shapes_to_labelmask",
93
+ "create_roi_drawing_viewer",
94
+ "save_roi_labels_from_shapes",
95
+ "get_bbox_2d",
96
+ "get_roi_label_points",
97
+ "create_cellpose_model",
98
+ "create_cellpose_models_for_channels",
99
+ "evaluate_cellpose_model",
100
+ "relabel_with_offset",
101
+ "filter_labels_by_size",
102
+ "get_cellpose_major_version",
103
+ "get_available_cellpose_model_names",
104
+ "segment_optional_region",
105
+ "run_roi_cellpose_colocalization",
106
+ "refine_run_result_from_cellpose_cache",
107
+ "build_positive_cell_mask",
108
+ "extract_label_masks_from_viewer",
109
+ "show_optional_region_segmentation",
110
+ "show_analysis_results",
111
+ ]