If not of depth three, tree will be filled with Nones.
If not of depth three, tree will be filled with None.
sub_bg: set
sub_bg: set
multichannel_ops: dict
multichannel_ops: dict
"""
"""
...
@@ -66,7 +66,7 @@ class ExtractorParameters(ParametersABC):
...
@@ -66,7 +66,7 @@ class ExtractorParameters(ParametersABC):
@staticmethod
@staticmethod
defguess_from_meta(store_name:str,suffix="fast"):
defguess_from_meta(store_name:str,suffix="fast"):
"""
"""
Find the microscope used from the h5 metadata
Find the microscope used from the h5 metadata.
Parameters
Parameters
----------
----------
...
@@ -91,25 +91,28 @@ class ExtractorParameters(ParametersABC):
...
@@ -91,25 +91,28 @@ class ExtractorParameters(ParametersABC):
classExtractor(ProcessABC):
classExtractor(ProcessABC):
"""
"""
The Extractor applies a metric, such as area or median, to cells identified in the image tiles using the cell masks.
Apply a metric to cells identified in the tiles.
Its methods therefore require both tile images and masks.
Using the cell masks, the Extractor applies a metric, such as area or median, to cells identified in the image tiles.
Usually one metric is applied to the masked area in a tile, but there are metrics that depend on the whole tile.
Its methods require both tile images and masks.
Extraction follows a three-level tree structure. Channels, such as GFP, are the root level; the second level is the reduction algorithm, such as maximum projection; the last level is the metric - the specific operation to apply to the cells in the image identified by the mask, such as median, which is the median value of the pixels in each cell.
Usually the metric is applied to only a tile's masked area, but some metrics depend on the whole tile.
Extraction follows a three-level tree structure. Channels, such as GFP, are the root level; the reduction algorithm, such as maximum projection, is the second level; the specific metric, or operation, to apply to the masks is the third level.
Parameters
Parameters
----------
----------
parameters: core.extractor Parameters
parameters: core.extractor Parameters
Parameters that include with channels, reduction and
Parameters that include the channels, and reduction and
extraction functions to use.
extraction functions.
store: str
store: str
Path to hdf5 storage file. Must contain cell outlines.
Path to the h5 file, which must contain the cell masks.
tiler: pipeline-core.core.segmentation tiler
tiler: pipeline-core.core.segmentation tiler
Class that contains or fetches the image to be used for segmentation.
Class that contains or fetches the images used for segmentation.
"""
"""
# Alan: should this data be stored here or all such data in a separate file
default_meta={
default_meta={
"pixel_size":0.236,
"pixel_size":0.236,
"z_size":0.6,
"z_size":0.6,
...
@@ -150,7 +153,7 @@ class Extractor(ProcessABC):
...
@@ -150,7 +153,7 @@ class Extractor(ProcessABC):
store:str,
store:str,
tiler:Tiler,
tiler:Tiler,
):
):
# initate from tiler
"""Initiate from a tiler instance."""
returncls(parameters,store=store,tiler=tiler)
returncls(parameters,store=store,tiler=tiler)
@classmethod
@classmethod
...
@@ -160,12 +163,12 @@ class Extractor(ProcessABC):
...
@@ -160,12 +163,12 @@ class Extractor(ProcessABC):