CellProfiler-nightly 5.0.0.dev324__py3-none-any.whl → 5.0.0.dev332__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.
- cellprofiler/_version.py +2 -2
- cellprofiler/modules/dilateimage.py +2 -4
- cellprofiler/modules/erodeobjects.py +8 -22
- {cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/METADATA +1 -1
- {cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/RECORD +9 -9
- {cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/WHEEL +0 -0
- {cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/entry_points.txt +0 -0
- {cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/licenses/LICENSE +0 -0
- {cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/top_level.txt +0 -0
cellprofiler/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '5.0.0.
|
|
32
|
-
__version_tuple__ = version_tuple = (5, 0, 0, '
|
|
31
|
+
__version__ = version = '5.0.0.dev332'
|
|
32
|
+
__version_tuple__ = version_tuple = (5, 0, 0, 'dev332')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -17,9 +17,8 @@ YES YES NO
|
|
|
17
17
|
from cellprofiler_core.module import ImageProcessing
|
|
18
18
|
from cellprofiler_core.setting import StructuringElement
|
|
19
19
|
|
|
20
|
-
import cellprofiler.utilities.morphology
|
|
21
20
|
from ._help import HELP_FOR_STREL
|
|
22
|
-
|
|
21
|
+
from cellprofiler_library.modules._dilateimage import dilate_image
|
|
23
22
|
|
|
24
23
|
class DilateImage(ImageProcessing):
|
|
25
24
|
category = "Advanced"
|
|
@@ -46,6 +45,5 @@ class DilateImage(ImageProcessing):
|
|
|
46
45
|
return __settings__ + [self.structuring_element]
|
|
47
46
|
|
|
48
47
|
def run(self, workspace):
|
|
49
|
-
self.function =
|
|
50
|
-
|
|
48
|
+
self.function = dilate_image
|
|
51
49
|
super(DilateImage, self).run(workspace)
|
|
@@ -23,16 +23,12 @@ YES YES NO
|
|
|
23
23
|
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
|
-
import numpy
|
|
27
|
-
import scipy.ndimage
|
|
28
|
-
import skimage.measure
|
|
29
|
-
import skimage.morphology
|
|
30
26
|
from cellprofiler_core.module.image_segmentation import ObjectProcessing
|
|
31
27
|
from cellprofiler_core.object import Objects
|
|
32
28
|
from cellprofiler_core.setting import StructuringElement, Binary
|
|
33
29
|
|
|
34
|
-
import cellprofiler.utilities.morphology
|
|
35
30
|
from cellprofiler.modules._help import HELP_FOR_STREL
|
|
31
|
+
from cellprofiler_library.modules._erodeobjects import erode_objects
|
|
36
32
|
|
|
37
33
|
|
|
38
34
|
class ErodeObjects(ObjectProcessing):
|
|
@@ -94,24 +90,14 @@ label numbers.""",
|
|
|
94
90
|
y_name = self.y_name.value
|
|
95
91
|
objects = workspace.object_set
|
|
96
92
|
x = objects.get_objects(x_name)
|
|
97
|
-
dimensions = x.dimensions
|
|
98
93
|
x_data = x.segmented
|
|
99
94
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
y_data += x_data * numpy.isin(x_data, missing_labels)
|
|
107
|
-
else:
|
|
108
|
-
for label in missing_labels:
|
|
109
|
-
binary = x_data == label
|
|
110
|
-
midpoint = scipy.ndimage.morphology.distance_transform_edt(binary)
|
|
111
|
-
y_data[midpoint == numpy.max(midpoint)] = label
|
|
112
|
-
|
|
113
|
-
if self.relabel_objects.value:
|
|
114
|
-
y_data = skimage.morphology.label(y_data)
|
|
95
|
+
y_data = erode_objects(
|
|
96
|
+
labels=x_data,
|
|
97
|
+
structuring_element=self.structuring_element.value,
|
|
98
|
+
preserve_midpoints=self.preserve_midpoints.value,
|
|
99
|
+
relabel_objects=self.relabel_objects.value
|
|
100
|
+
)
|
|
115
101
|
|
|
116
102
|
y = Objects()
|
|
117
103
|
y.segmented = y_data
|
|
@@ -122,4 +108,4 @@ label numbers.""",
|
|
|
122
108
|
if self.show_window:
|
|
123
109
|
workspace.display_data.x_data = x_data
|
|
124
110
|
workspace.display_data.y_data = y_data
|
|
125
|
-
workspace.display_data.dimensions = dimensions
|
|
111
|
+
workspace.display_data.dimensions = x.dimensions
|
{cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: CellProfiler-nightly
|
|
3
|
-
Version: 5.0.0.
|
|
3
|
+
Version: 5.0.0.dev332
|
|
4
4
|
Summary: CellProfiler is a free open-source software designed to enable biologists without training in computer vision or programming to quantitatively measure phenotypes from thousands of images automatically.
|
|
5
5
|
Author: Anne Carpenter, Thouis (Ray) Jones, Lee Kamentsky, Vebjorn Ljosa, David Logan, Mark Bray, Madison Swain-Bowden, Allen Goodman, Claire McQuinn, Alice Lucas, Callum Tromans-Coia
|
|
6
6
|
Author-email: Beth Cimini <bcimini@broadinstitute.org>, David Stirling <dstirling@glencoesoftware.com>, Nodar Gogoberidze <ngogober@broadinstitute.org>
|
{cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
cellprofiler/__init__.py,sha256=AL2XeOBhIeYkBRyDd0QRgJan7j0DKjT1GD-RdzKvMUY,46
|
|
2
2
|
cellprofiler/__main__.py,sha256=uy78oz5c6NBGRwDZkZ2Gl4HfhbJZQH6K1n54Qfl2OFc,38075
|
|
3
|
-
cellprofiler/_version.py,sha256=
|
|
3
|
+
cellprofiler/_version.py,sha256=NfpldqGmqBug3AODFm5JWZ6AHxP27dqT2kCCX1xJJuI,721
|
|
4
4
|
cellprofiler/knime_bridge.py,sha256=T6Op-KO79oULx92nGXRQ6lHsEcTutx1Uep1L4ZOKJgc,27767
|
|
5
5
|
cellprofiler/misc.py,sha256=yqv873lP_mquxxkKcLgE_ZU4Hrc1trtuQ-NXLK2qQVc,553
|
|
6
6
|
cellprofiler/data/examples/ExampleFly/ExampleFly.cppipe,sha256=JGZK9IZuYlOHOI4hi6a3DK36IahY69cfeLEd7eJ_rO0,15409
|
|
@@ -292,7 +292,7 @@ cellprofiler/modules/correctilluminationcalculate.py,sha256=wJMCy3W9zK-xPI8PUvh2
|
|
|
292
292
|
cellprofiler/modules/createbatchfiles.py,sha256=a8R5PpbaQYqF8OIvWBuC0uh-yhjzBaU4Uni4m3MRLok,19512
|
|
293
293
|
cellprofiler/modules/crop.py,sha256=gnAHZNjPCNr-RLc7xQjZYViRpmKCTfJjuZ8MwHRiT1Y,34177
|
|
294
294
|
cellprofiler/modules/definegrid.py,sha256=tjYcrzHu6TV7rkh1l2T0pNqcjBLwCfz9BCqTPWhQr_A,47160
|
|
295
|
-
cellprofiler/modules/dilateimage.py,sha256=
|
|
295
|
+
cellprofiler/modules/dilateimage.py,sha256=b9VAqHtvynAKog-Zy7X8qapqqSaJzWuUQMiiNVtzrxY,1376
|
|
296
296
|
cellprofiler/modules/dilateobjects.py,sha256=lnipjKkd6A3hhY3G1ttU9ZlhsTZp3oVU-QnU7_ayWbE,1828
|
|
297
297
|
cellprofiler/modules/displaydataonimage.py,sha256=8WWaEniPbt9Z8zP_vzPyCHXjf9TMkPFyd3v3Agypcr4,22720
|
|
298
298
|
cellprofiler/modules/displaydensityplot.py,sha256=a2te0z0t76y_rN0FFWmk8eFpZYR-t0r1ohAl9mx5BIg,7531
|
|
@@ -303,7 +303,7 @@ cellprofiler/modules/editobjectsmanually.py,sha256=fkTFMTlrTfIiHNhhPzYsfFvZBSBDE
|
|
|
303
303
|
cellprofiler/modules/enhanceedges.py,sha256=bivBs2OMNYvNnJ7tYrs9yheJP9JGIkgJDQfB2u837HE,11398
|
|
304
304
|
cellprofiler/modules/enhanceorsuppressfeatures.py,sha256=vc_LLANt2gEsntqog9JwbzCVaaBQEM3ayvvY7CSJCF0,24062
|
|
305
305
|
cellprofiler/modules/erodeimage.py,sha256=GGO6EjgA_6A0pjrsATxcfs1a_QmZ1rS5Lec7Kkb21hw,1402
|
|
306
|
-
cellprofiler/modules/erodeobjects.py,sha256=
|
|
306
|
+
cellprofiler/modules/erodeobjects.py,sha256=vajQ5ikn0i6hw8PkqAGcuIjJCDdzHYv0AtP_A5TV_-U,3792
|
|
307
307
|
cellprofiler/modules/expandorshrinkobjects.py,sha256=fiFf4q2BplR4u6Cym-jdlOOdOKc6oZVtEkZE-O-Ansg,13911
|
|
308
308
|
cellprofiler/modules/exporttodatabase.py,sha256=Tb5Hf329m96zUNaxPStQoTkr_MV62HGNBetZL_Y1iyk,217927
|
|
309
309
|
cellprofiler/modules/exporttospreadsheet.py,sha256=ikY_XNGI7SZ-DyIIWcf5FCWzPqx1VZLOOJCsCk3zyTs,67607
|
|
@@ -374,9 +374,9 @@ cellprofiler/modules/plugins/segmentationtemplatewithdependencies.py,sha256=Sh76
|
|
|
374
374
|
cellprofiler/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
375
375
|
cellprofiler/utilities/morphology.py,sha256=8-81TrP8AmE3ETXIvQUKFD1vmKNBy2lfbc1QnM1eGIM,2685
|
|
376
376
|
cellprofiler/utilities/rules.py,sha256=NoIHwFTA37zGvIP7vcB-aYeys0MDYVYxspfhLJe00OU,8790
|
|
377
|
-
cellprofiler_nightly-5.0.0.
|
|
378
|
-
cellprofiler_nightly-5.0.0.
|
|
379
|
-
cellprofiler_nightly-5.0.0.
|
|
380
|
-
cellprofiler_nightly-5.0.0.
|
|
381
|
-
cellprofiler_nightly-5.0.0.
|
|
382
|
-
cellprofiler_nightly-5.0.0.
|
|
377
|
+
cellprofiler_nightly-5.0.0.dev332.dist-info/licenses/LICENSE,sha256=QLWaBS7kAioYx7PmJNXAMJaY8NODcFAag60YlUWuyz0,2276
|
|
378
|
+
cellprofiler_nightly-5.0.0.dev332.dist-info/METADATA,sha256=mbvouhW6H7MSYdw1LEqTVdjFYxUnrnvaxYf7Z0HQRV0,6063
|
|
379
|
+
cellprofiler_nightly-5.0.0.dev332.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
380
|
+
cellprofiler_nightly-5.0.0.dev332.dist-info/entry_points.txt,sha256=MNDCjguFW3dKiS5Pcdu1NfWo4I0HHI3DekJLUJ4AKkY,60
|
|
381
|
+
cellprofiler_nightly-5.0.0.dev332.dist-info/top_level.txt,sha256=bK7AacDeSj9qAmW8MGlO5wA79hDj6-ACt_mENUNKSIk,13
|
|
382
|
+
cellprofiler_nightly-5.0.0.dev332.dist-info/RECORD,,
|
{cellprofiler_nightly-5.0.0.dev324.dist-info → cellprofiler_nightly-5.0.0.dev332.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|