diff --git a/GettingStarted/result_caching.html b/GettingStarted/result_caching.html index 3bdd542..805c1b4 100644 --- a/GettingStarted/result_caching.html +++ b/GettingStarted/result_caching.html @@ -178,8 +178,8 @@

CachePointerresult = (im + 1) * 3 cache_path = cptr.subpath() if not cache_path.exists: - result.save(cache_path.abs_path) - return load(cache_path.abs_path) + result.save(cache_path.url) + return load(cache_path.url) # implementation 2 (functionally equivalent but creates two sub-directories) def compute(im, cptr): diff --git a/GettingStarted/segmentation_pipeline.html b/GettingStarted/segmentation_pipeline.html index 8f7a009..7c1865c 100644 --- a/GettingStarted/segmentation_pipeline.html +++ b/GettingStarted/segmentation_pipeline.html @@ -190,15 +190,15 @@

Extending the Pipelineforward() method, you should use self.tmpdir.cache() and self.tmpdir.cache_im() to create cache files:

class ExampleSegProcess(SegProcess):
-    def forward(self, im, cptr: CachePointer, viewer: napari.Viewer = None):
+    async def forward(self, im, cptr: CachePointer, viewer: napari.Viewer = None):
         cache_path = cptr.subpath()
 
-        # in the case cache does not exists, cache_path.abs_path is an empty path we can create a folder in:
+        # in the case cache does not exists, cache_path.url is an empty path we can create a folder in:
         if not cache_path.exists:
-            os.makedirs(cache_path.abs_path)
+            os.makedirs(cache_path.url)
             result = compute_result(im)
-            save(cache_path.abs_path, result)
-        result = load(cache_path.abs_path)
+            save(cache_path.url, result)
+        result = load(cache_path.url)
         return result
 
@@ -208,11 +208,11 @@

Extending the Pipelineviewer.add_labels(), lc_interpretable_napari() or temp_directory.cache_im() while passing in viewer_args argument to display your results:

viewer_args is a parameter that allows us to visualize the saved results as part of the caching @@ -258,7 +258,7 @@

Running the Pipelineprocess.set_tmpdir(temp_directory) viewer = napari.Viewer() viewer_args = dict(viewer=viewer) - process.forward(im, cid='cell_count_cache', viewer_args=viewer_args) + await process.forward(im, cid='cell_count_cache', viewer_args=viewer_args) client.close() viewer.show(block=True) diff --git a/GettingStarted/setting_up_the_script.html b/GettingStarted/setting_up_the_script.html index 0acdcbb..87cde5e 100644 --- a/GettingStarted/setting_up_the_script.html +++ b/GettingStarted/setting_up_the_script.html @@ -221,22 +221,22 @@

CacheDirectory# Use case #1. Create a data directory for caching computation results cache_path = temp_directory.cache_subpath(cid='some_cache_path') if not cache_path.exists: - os.makedirs(cache_path.abs_path, exists_ok=True) - # PUT CODE HERE: Now write your data into cache_path.abs_path and load it back later + os.makedirs(cache_path.url, exists_ok=True) + # PUT CODE HERE: Now write your data into cache_path.url and load it back later # Use case #2. Create a sub-directory and pass it to other processes for caching def multi_step_computation(cache_at: imfs.CacheDirectory): cache_path = cache_at.cache_subpath(cid='A') if not cache_path.exists: A = computeA() - save(cache_path.abs_path, A) - A = load(cache_path.abs_path) + save(cache_path.url, A) + A = load(cache_path.url) cache_path_B = cache_at.cache_subpath(cid='B') if not cache_path_B.exists: B = computeBFromA() - save(cache_path_B.abs_path, B) - B = load(cache_path_B.abs_path) + save(cache_path_B.url, B) + B = load(cache_path_B.url) return B sub_temp_directory = temp_directory.cache_subdir(cid='mult_step_cache') diff --git a/_sources/GettingStarted/result_caching.rst.txt b/_sources/GettingStarted/result_caching.rst.txt index 3720671..d2d2fa8 100644 --- a/_sources/GettingStarted/result_caching.rst.txt +++ b/_sources/GettingStarted/result_caching.rst.txt @@ -102,8 +102,8 @@ function where the caller does not need to care whether you want a leaf node or result = (im + 1) * 3 cache_path = cptr.subpath() if not cache_path.exists: - result.save(cache_path.abs_path) - return load(cache_path.abs_path) + result.save(cache_path.url) + return load(cache_path.url) # implementation 2 (functionally equivalent but creates two sub-directories) def compute(im, cptr): diff --git a/_sources/GettingStarted/segmentation_pipeline.rst.txt b/_sources/GettingStarted/segmentation_pipeline.rst.txt index a478812..bf509c3 100644 --- a/_sources/GettingStarted/segmentation_pipeline.rst.txt +++ b/_sources/GettingStarted/segmentation_pipeline.rst.txt @@ -120,15 +120,15 @@ and two optional parameters: cid and viewer_args. .. code-block:: Python class ExampleSegProcess(SegProcess): - def forward(self, im, cptr: CachePointer, viewer: napari.Viewer = None): + async def forward(self, im, cptr: CachePointer, viewer: napari.Viewer = None): cache_path = cptr.subpath() - # in the case cache does not exists, cache_path.abs_path is an empty path we can create a folder in: + # in the case cache does not exists, cache_path.url is an empty path we can create a folder in: if not cache_path.exists: - os.makedirs(cache_path.abs_path) + os.makedirs(cache_path.url) result = compute_result(im) - save(cache_path.abs_path, result) - result = load(cache_path.abs_path) + save(cache_path.url, result) + result = load(cache_path.url) return result - The :code:`viewer_args` parameter specifies the napari viewer to display the intermediate results. If not provided @@ -139,11 +139,11 @@ and two optional parameters: cid and viewer_args. .. code-block:: Python class ExampleSegProcess(SegProcess): - def forward(self, im, cptr: CachePointer, viewer_args: dict = None): + async def forward(self, im, cptr: CachePointer, viewer_args: dict = None): if viewer_args is None: viewer_args = {} result = compute_result(im) - result = cptr.im(lambda: result, viewer_args=viewer_args) # caching result at location pointed by cptr + result = await cptr.im(lambda: result, viewer_args=viewer_args) # caching result at location pointed by cptr return result # ... viewer = napari.Viewer(ndisplay=2) @@ -154,7 +154,7 @@ and two optional parameters: cid and viewer_args. multiscale=4 if viewer else 0, # maximum downsampling level of ome zarr files, necessary for very large images ) process = ExampleSegProcess() - process.forward(im, cptr = root_dir.cache(cid='compute'), viewer_args=viewer_args) + await process.forward(im, cptr = root_dir.cache(cid='compute'), viewer_args=viewer_args) :code:`viewer_args` is a parameter that allows us to visualize the saved results as part of the caching function. The reason we need this is that displaying the saved result often requires a different (flatter) @@ -191,7 +191,7 @@ to segment an input dataset. Note we need a dask cluster and a temporary directo process.set_tmpdir(temp_directory) viewer = napari.Viewer() viewer_args = dict(viewer=viewer) - process.forward(im, cid='cell_count_cache', viewer_args=viewer_args) + await process.forward(im, cid='cell_count_cache', viewer_args=viewer_args) client.close() viewer.show(block=True) diff --git a/_sources/GettingStarted/setting_up_the_script.rst.txt b/_sources/GettingStarted/setting_up_the_script.rst.txt index 00cfbf9..88060e3 100644 --- a/_sources/GettingStarted/setting_up_the_script.rst.txt +++ b/_sources/GettingStarted/setting_up_the_script.rst.txt @@ -149,22 +149,22 @@ which there are intermediate files. To create a cache directory, we write # Use case #1. Create a data directory for caching computation results cache_path = temp_directory.cache_subpath(cid='some_cache_path') if not cache_path.exists: - os.makedirs(cache_path.abs_path, exists_ok=True) - # PUT CODE HERE: Now write your data into cache_path.abs_path and load it back later + os.makedirs(cache_path.url, exists_ok=True) + # PUT CODE HERE: Now write your data into cache_path.url and load it back later # Use case #2. Create a sub-directory and pass it to other processes for caching def multi_step_computation(cache_at: imfs.CacheDirectory): cache_path = cache_at.cache_subpath(cid='A') if not cache_path.exists: A = computeA() - save(cache_path.abs_path, A) - A = load(cache_path.abs_path) + save(cache_path.url, A) + A = load(cache_path.url) cache_path_B = cache_at.cache_subpath(cid='B') if not cache_path_B.exists: B = computeBFromA() - save(cache_path_B.abs_path, B) - B = load(cache_path_B.abs_path) + save(cache_path_B.url, B) + B = load(cache_path_B.url) return B sub_temp_directory = temp_directory.cache_subdir(cid='mult_step_cache') diff --git a/searchindex.js b/searchindex.js index 0141ff3..aef476c 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["API/algs", "API/imfs", "API/napari_zarr", "API/ndblock", "API/ome_zarr_io", "API/seg_process", "GettingStarted/ome_zarr", "GettingStarted/result_caching", "GettingStarted/segmentation_pipeline", "GettingStarted/setting_up_the_script", "index"], "filenames": ["API/algs.rst", "API/imfs.rst", "API/napari_zarr.rst", "API/ndblock.rst", "API/ome_zarr_io.rst", "API/seg_process.rst", "GettingStarted/ome_zarr.rst", "GettingStarted/result_caching.rst", "GettingStarted/segmentation_pipeline.rst", "GettingStarted/setting_up_the_script.rst", "index.rst"], "titles": ["cvpl_tools/im/algs", "cvpl_tools/im/fs.py", "cvpl_tools/ome_zarr/napari/add.py", "cvpl_tools/im/ndblock.py", "cvpl_tools/ome_zarr/io.py", "cvpl_tools/im/seg_process.py", "OME_ZARR", "Result Caching", "Segmentation Pipeline", "Setting Up the Script", "Introduction - cvpl_tools documentation"], "terms": {"thi": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10], "subdirectori": [0, 8], "defin": [0, 5, 8, 9, 10], "relev": 0, "algorithm": [0, 5, 7, 8], "parallel": [0, 8], "process": [0, 5, 7, 8, 9, 10], "nd": 0, "imag": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "api": [0, 1, 2, 3, 4, 5, 6, 8, 9], "dask_label": 0, "label": [0, 2, 4, 5, 6, 10], "ndarrai": [0, 1, 3, 5], "ani": [0, 1, 3, 5, 6, 9], "dtype": [0, 3, 5, 9], "_scalartype_co": [0, 3, 5], "arrai": [0, 1, 3, 4, 5, 6, 8, 9], "ndblock": [0, 1, 5, 8, 10], "cptr": [0, 5, 7, 8], "cachepoint": [0, 1, 5, 8, 10], "output_dtyp": 0, "none": [0, 1, 3, 4, 5, 6, 8, 9], "viewer_arg": [0, 1, 5, 8, 9], "dict": [0, 1, 3, 4, 5, 6, 8, 9], "return": [0, 1, 3, 4, 5, 7, 8, 9], "lbl_im": 0, "nlbl": 0, "where": [0, 1, 5, 6, 7, 8, 9], "i": [0, 1, 3, 4, 5, 6, 7, 8, 9], "global": 0, "same": [0, 1, 3, 5, 6, 7, 9, 10], "type": [0, 1, 3, 4, 5, 6, 8], "chunk": [0, 1, 3, 5, 6, 7, 8, 9], "size": [0, 1, 3, 5, 8], "input": [0, 3, 5, 6, 8, 9], "view": [1, 2, 3, 4, 5, 10], "sourc": [1, 2, 3, 4, 5], "save": [1, 3, 6, 7, 8, 9, 10], "file": [1, 2, 3, 4, 8, 9, 10], "str": [1, 3, 4, 5], "storage_opt": [1, 3, 4], "an": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "object": [1, 3, 5, 6, 7, 9, 10], "given": [1, 3, 5], "path": [1, 2, 3, 4, 7, 8, 9, 10], "support": [1, 4, 6, 7, 8, 9], "np": [1, 5, 8, 9], "dask": [1, 3, 4, 5, 6, 7, 8, 10], "storag": [1, 3, 6], "option": [1, 3, 4, 6, 8], "preferred_chunks": [1, 8], "tupl": [1, 3, 5, 9], "int": [1, 3, 4, 5], "rechunk": [1, 7], "differ": [1, 3, 4, 5, 8, 9], "from": [1, 3, 4, 5, 6, 7, 8, 9], "current": [1, 3, 5, 9], "onli": [1, 3, 4, 6, 7, 8, 9], "appli": [1, 3, 5], "multiscal": [1, 3, 6, 8, 9], "0": [1, 3, 4, 5, 6, 8], "The": [1, 3, 4, 5, 6, 7, 9, 10], "number": [1, 3, 5, 7, 8, 9], "downsampl": [1, 5, 6, 8], "layer": [1, 4, 5, 6], "om": [1, 2, 4, 7, 8, 9, 10], "zarr": [1, 2, 4, 7, 8, 9, 10], "compressor": [1, 3], "us": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "compress": [1, 3], "paramet": [1, 3, 4, 5, 8], "full": 1, "rel": [1, 8], "directori": [1, 4, 5, 6, 7, 8, 10], "specifi": [1, 3, 4, 5, 7, 8, 10], "method": [1, 3, 8], "format": [1, 3, 6, 7, 8], "load": [1, 3, 4, 6, 7, 8, 9, 10], "one": [1, 3, 4, 5, 6, 7, 8, 9, 10], "read": [1, 4, 7, 10], "recreat": 1, "attempt": 1, "keep": 1, "meta": [1, 5, 6, 9], "content": [1, 3], "stai": 1, "when": [1, 3, 4, 5, 6, 7, 8, 9], "thei": [1, 3, 5, 7, 8, 9], "ar": [1, 3, 5, 6, 7, 8, 9, 10], "displai": [1, 5, 6, 7, 8, 9, 10], "viewer": [1, 5, 6, 7, 8, 9, 10], "numpi": [1, 3, 4, 5, 6, 8, 9, 10], "contain": [1, 3, 5, 6, 7, 9], "argument": [1, 3, 5, 6, 8], "pass": [1, 3, 4, 6, 8, 9], "": [1, 2, 3, 5, 6, 7, 8, 9], "add": [1, 5, 6, 8, 9, 10], "function": [1, 3, 4, 5, 6, 7, 8, 9], "class": [1, 3, 5, 6, 7, 9, 10], "cachepath": [1, 7, 10], "root": [1, 6, 7, 8, 9], "cacherootdirectori": [1, 8, 9, 10], "path_seg": 1, "parent": [1, 7, 9], "cachedirectori": [1, 8, 10], "exist": [1, 7, 8, 9], "bool": [1, 3, 4, 5], "fals": [1, 3, 4, 5, 6, 7, 8, 9], "rdirfilesystem": 1, "A": [1, 3, 5, 6, 7, 10], "pointer": [1, 7], "cach": [1, 5, 8, 9, 10], "locat": [1, 3, 5, 6, 7, 8], "within": [1, 8], "hierarch": [1, 8, 9], "structur": [1, 6, 9], "two": [1, 3, 5, 6, 7, 8, 9], "implement": [1, 6, 7, 8], "program": [1, 7, 9], "pattern": 1, "subclass": [1, 5, 7, 8, 9], "zero": [1, 3, 7, 9], "more": [1, 5, 6, 7, 8, 9], "its": [1, 6, 7], "children": [1, 7], "To": [1, 6, 7, 8, 9], "creat": [1, 4, 6, 7, 8, 9], "alloc": 1, "new": [1, 6, 7, 8], "find": [1, 8, 10], "name": [1, 3, 4, 5, 6, 7], "suggest": 1, "folder": [1, 4, 6, 7, 8], "associ": [1, 2, 5], "automat": [1, 7, 9], "properti": [1, 3], "abs_path": [1, 7, 8, 9], "obtain": [1, 8], "absolut": [1, 6], "first": [1, 3, 5, 6, 7, 8], "time": [1, 6, 7, 8, 9], "url": 1, "suppos": 1, "empti": [1, 8, 9], "can": [1, 2, 3, 4, 6, 7, 8, 9, 10], "address": [1, 8], "store": [1, 4, 6, 8], "afterward": 1, "next": [1, 7, 8], "app": 1, "start": [1, 3, 4, 7, 9], "filenam": 1, "last": [1, 7], "segment": [1, 5, 6, 9, 10], "typic": [1, 9], "cid": [1, 5, 7, 8, 9], "prepend": 1, "is_dir": [1, 7], "is_tmp": [1, 7], "inform": [1, 5], "do": [1, 5, 6, 8, 9], "call": [1, 2, 8, 9], "static": [1, 3], "filename_form_meta": 1, "dictionari": [1, 6], "string": [1, 4, 6], "true": [1, 3, 4, 5, 6, 7, 8, 9], "instead": [1, 4, 5, 6, 7], "In": [1, 3, 4, 7, 8, 9], "other": [1, 5, 9, 10], "word": 1, "leaf": [1, 7], "node": [1, 7], "meta_from_filenam": 1, "return_none_if_malform": 1, "retriev": [1, 3], "plan": [1, 8], "If": [1, 2, 3, 4, 5, 6, 8, 9, 10], "throw": 1, "error": [1, 7], "malform": 1, "rel_path": 1, "o": [1, 8, 9], "remove_when_don": [1, 7, 8, 9], "read_if_exist": [1, 7, 8, 9], "correspond": [1, 4, 5], "similar": [1, 3, 4, 6], "_create_cach": 1, "intermedi": [1, 7, 8, 9], "offset": 1, "decis": [1, 7], "often": [1, 7, 8], "we": [1, 3, 4, 6, 7, 8, 9], "which": [1, 3, 4, 5, 6, 7, 8, 9], "result": [1, 3, 5, 6, 8, 9, 10], "singl": [1, 2, 3, 5, 6, 7, 8], "prefer": [1, 8], "make": [1, 5, 7, 8, 9], "befor": [1, 5, 6, 8, 9], "inappropri": 1, "avoid": [1, 7], "struct": [1, 7], "desir": 1, "either": [1, 3, 4, 6, 8], "itself": [1, 9], "cache_im": [1, 8], "fn": [1, 3], "cache_level": 1, "float": [1, 5, 8], "comput": [1, 3, 5, 6, 7, 8, 9], "alreadi": [1, 3], "id": [1, 5, 9], "level": [1, 4, 6, 8], "oper": 1, "note": [1, 3, 6, 7, 8, 10], "even": [1, 7, 9], "skip": [1, 8, 9], "avail": [1, 9], "disk": [1, 4, 7, 9], "still": 1, "cache_subdir": [1, 7, 9], "wrapper": [1, 5], "see": [1, 6, 8, 9], "doc": 1, "cache_subpath": [1, 7, 9], "children_from_path": 1, "prefix_path_seg": 1, "examin": 1, "recurs": [1, 7], "all": [1, 3, 7, 8, 9], "prefix": 1, "found": [1, 5, 8, 9], "under": [1, 4, 5, 7, 8, 9], "json": 1, "map": [1, 3, 10], "determin": [1, 4, 7, 9], "remove_tmp": 1, "travers": 1, "subnod": 1, "self": [1, 5, 8], "remov": [1, 7, 8], "those": [1, 9], "For": [2, 3, 4, 5, 7, 8, 9], "subarray_from_path": 2, "gener": [2, 3, 5, 7], "ha": [2, 3, 6, 8], "image_ome_zarr": 2, "label_nam": [2, 6], "open": [2, 4, 6, 9], "togeth": [2, 5], "group_from_path": 2, "arr": [3, 9], "repres": [3, 7, 8], "n": [3, 5, 8], "dimension": [3, 8], "grid": 3, "each": [3, 5, 6, 7, 8], "block": [3, 5, 8, 9], "arbitrari": [3, 8], "shape": [3, 4, 5, 6], "1": [3, 4, 5, 6, 7, 8, 9], "ax": 3, "match": [3, 7, 8], "case": [3, 4, 5, 6, 7, 8, 9], "vari": 3, "e": [3, 4, 8], "g": [3, 4, 6, 8], "2": [3, 4, 5, 6, 7, 8, 9], "mai": [3, 5, 6, 7, 8, 9], "neighbor": [3, 5], "5": [3, 5], "10": [3, 5], "assum": [3, 4], "block_index": [3, 5], "list": [3, 5], "alwai": [3, 7], "order": [3, 5, 7, 9], "m": 3, "increas": 3, "side": [3, 8], "tail": 3, "as_dask_arrai": 3, "get": [3, 5, 7, 8, 9], "copi": [3, 4], "valu": [3, 6, 9], "persist": [3, 7, 8, 9], "convert": [3, 5, 8], "get_chunks": 3, "axi": [3, 6], "length": [3, 5], "ndim": [3, 5], "is_numpi": 3, "besid": 3, "reprformat": [3, 10], "dict_block_index_slic": 3, "have": [3, 4, 6, 7, 8, 9], "delai": 3, "former": 3, "latter": 3, "opiton": 3, "includ": 3, "port_protocol": 3, "guarante": 3, "map_ndblock": 3, "sequenc": [3, 5, 8], "callabl": [3, 5], "out_dtyp": [3, 5], "use_input_index_as_arrloc": 3, "new_slic": 3, "fn_arg": 3, "da": [3, 8, 9], "map_block": [3, 9], "work": [3, 5, 6, 7, 8, 9], "block_info": [3, 5, 9], "provid": [3, 4, 5, 6, 8, 9, 10], "kei": 3, "must": 3, "indic": [3, 7], "over": [3, 8], "slice": [3, 4, 10], "well": [3, 6, 8], "output": [3, 4, 5, 7, 8, 9], "slices_list": 3, "ignor": 3, "variabl": [3, 6, 9], "replac": 3, "attribut": [3, 6, 7, 8], "extra": [3, 5, 6], "client": [3, 8, 9], "reload": 3, "done": [3, 4, 6, 8], "directli": [3, 4, 6, 7, 8], "reduc": [3, 5, 7], "force_numpi": 3, "concaten": 3, "forc": 3, "analysi": [3, 8], "requir": [3, 4, 7, 8, 9, 10], "previou": 3, "Will": 3, "immedi": 3, "write": [3, 4, 7, 8, 9, 10], "multilevel": 3, "non": [3, 7], "select_column": 3, "col": 3, "perform": [3, 8], "column": 3, "select": 3, "2d": [3, 5, 7], "sum": [3, 9], "keepdim": 3, "to_dask_arrai": 3, "represent": 3, "to_dict_block_index_slic": 3, "to_numpy_arrai": 3, "modul": [3, 8, 9], "qualnam": 3, "boundari": [3, 5], "possibl": 3, "numpy_arrai": 3, "dask_arrai": 3, "load_dask_array_from_path": [4, 6, 10], "altern": 4, "load_zarr_group_from_path": [4, 6, 10], "group": [4, 6], "mode": [4, 6, 9], "from_zarr": 4, "you": [4, 5, 6, 7, 8, 9, 10], "would": [4, 8, 9], "like": [4, 5, 6, 7, 9], "zip": [4, 6], "write_ome_zarr_imag": [4, 6, 10], "onto": [4, 7], "use_zip": [4, 6], "r": [4, 6], "treat": [4, 5, 8], "default": [4, 8, 9], "entir": [4, 6], "compar": 4, "allow": [4, 6, 8, 9], "channel": [4, 6], "queri": 4, "syntax": [4, 6], "idea": [4, 6, 8], "thank": 4, "davi": [4, 6], "bennett": [4, 6], "thread": [4, 8, 9], "http": 4, "forum": 4, "sc": 4, "t": [4, 8], "97798": 4, "exampl": [4, 8, 9], "200": [4, 6], "1000": [4, 6], "arr_origin": [4, 6], "arr1": [4, 6], "arr2": [4, 6], "100": [4, 5, 6], "arr3": [4, 6], "500": [4, 6], "essenti": 4, "python": [4, 6, 9], "multi": [4, 6, 8, 9], "index": [4, 5], "effect": 4, "torch": [4, 6], "out_ome_zarr_path": 4, "tmp_path": [4, 8, 9], "da_arr": 4, "lbl_arr": 4, "lbl_name": 4, "make_zip": 4, "max_lay": 4, "log": [4, 7, 10], "lbl_storage_opt": 4, "due": [4, 5, 6], "doe": [4, 5, 6, 7, 8, 9], "temp": 4, "after": [4, 6, 7, 8, 9], "why": [4, 5, 6, 7], "target": [4, 6], "temporari": [4, 6, 7, 8, 10], "base": [4, 5, 8, 9], "suffix": [4, 6], "maximum": [4, 6, 8], "down": [4, 5, 8, 9], "sampl": [4, 5], "print": [4, 9], "messag": [4, 9], "job": 4, "end": [4, 6, 8], "q": 5, "baseclass": 5, "segprocess": [5, 9, 10], "blocktoblockprocess": [5, 10], "my": [5, 9], "own": 5, "pipelin": [5, 9, 10], "should": [5, 6, 8, 9], "around": 5, "code": [5, 6, 8, 9], "whose": 5, "centroid": [5, 8], "abstract": [5, 8], "forward": [5, 8], "arg": 5, "kwarg": [5, 6], "just": [5, 7, 8], "step": [5, 7, 8, 9], "visual": [5, 8, 10], "underli": [5, 6], "mechan": [5, 7], "napari": [5, 6, 7, 8, 9, 10], "interpret": [5, 8], "debug": [5, 7, 8, 9], "purpos": 5, "is_label": [5, 6, 8], "compute_chunk_s": 5, "lc_interpretable_napari": [5, 8, 10], "layer_nam": 5, "lc": 5, "extra_featur": 5, "text_color": 5, "green": 5, "featur": [5, 6, 9], "point": [5, 7, 8], "row": 5, "nextra": 5, "dimens": 5, "text": [5, 7, 9], "color": [5, 6], "built": [5, 10], "gaussianblur": [5, 10], "sigma": 5, "bspredictor": [5, 10], "pred_fn": 5, "simplethreshold": [5, 10], "threshold": [5, 8], "blobdog": [5, 10], "min_sigma": 5, "max_sigma": 5, "float32": [5, 8], "sumscaledintens": [5, 10], "scale": 5, "008": 5, "min_thr": 5, "spatial_box_width": 5, "binaryandcentroidlisttoinst": [5, 10], "maxsplit": 5, "instanc": [5, 6, 7, 8], "take": [5, 7, 8, 9], "binari": [5, 8], "mask": [5, 6, 8], "detect": 5, "Then": [5, 8], "split": 5, "pixel": [5, 8], "fine": 5, "closer": 5, "correctli": 5, "bacl_forward": 5, "b": [5, 8, 9], "uint8": [5, 8, 9], "float64": [5, 8], "int32": [5, 8], "ordin": [5, 8], "section": [5, 8], "integ": [5, 6], "directbstoo": 5, "is_glob": 5, "watershed3sizesbstoo": 5, "size_thr": 5, "60": 5, "dist_thr": 5, "rst": 5, "size_thres2": 5, "dist_thres2": 5, "rst2": 5, "cell": [5, 7, 10], "count": [5, 10], "describ": [5, 7, 9], "about": [5, 6, 7], "summar": 5, "statist": 5, "countlcbys": 5, "size_threshold": 5, "25": 5, "volume_weight": 5, "006": 5, "border_param": 5, "3": [5, 6, 7, 8, 9], "min_siz": 5, "sever": [5, 8], "below": [5, 7, 8, 9], "contour": [5, 8], "part": [5, 7, 8], "abov": [5, 6, 7, 9], "seen": 5, "cluster": [5, 8, 10], "estim": [5, 8], "volum": [5, 8], "ncell": 5, "penal": 5, "accord": 5, "distanc": 5, "between": [5, 8], "voxel": 5, "touch": 5, "edg": 5, "penalti": 5, "4": [5, 6, 8], "simpli": [5, 8], "discard": [5, 7, 9], "becaus": [5, 7], "artifact": 5, "cc_list": 5, "os_shap": 5, "assumpt": 5, "nvoxel": 5, "edge_contact": 5, "countlcedgepen": 5, "calcul": 5, "need": [5, 6, 7, 8, 9], "image_shap": 5, "fact": 5, "suffici": 5, "far": 5, "divisor": 5, "becom": [5, 8], "decreas": 5, "toward": 5, "sinc": [5, 8, 9], "doubl": [5, 6], "tripl": 5, "corner": [5, 6], "etc": [5, 8], "d": 5, "element": 5, "scalar": 5, "np_featur": 5, "concat": 5, "left": [5, 6], "oridn": 5, "countosbys": 5, "directostolc": 5, "ex_statist": 5, "origin": [5, 6], "come": [5, 7, 8], "so": [5, 7, 9], "aggregate_by_id": 5, "aggreg": 5, "_ndblock": 5, "adapt": 5, "data": [5, 8, 9], "adequ": 5, "classif": 5, "downsamplingbyintfactor": 5, "factor": 5, "deprec": 5, "alg": [5, 10], "dask_ndinterp": 5, "scale_nearest": 5, "sure": [5, 8, 9], "set": [5, 6, 8, 10], "bright": [5, 8], "rgb": 5, "want": [5, 6, 7, 8, 9], "correspondingli": 5, "tmp": [5, 9], "upsamplingbyintfactor": 5, "upsampl": 5, "up": [5, 7, 8, 10], "np_forward": 5, "command": [6, 9], "widget": 6, "button": 6, "bottom": 6, "window": [6, 9], "invok": 6, "wai": [6, 7, 8], "cvpl_tool": [6, 8, 9], "import": [6, 8, 9], "napari_add_ome_zarr": 6, "subarrai": 6, "your": [6, 8, 9], "displayed_name_in_ui": 6, "add_imag": [6, 8], "regardless": [6, 9], "both": [6, 7, 9], "standard": 6, "cvpl_zarr": 6, "add_ome_zarr_group_from_path": 6, "addit": 6, "googl": 6, "cloud": [6, 10], "follow": [6, 7, 8, 9], "gcsf": 6, "gf": 6, "gcsfilesystem": 6, "token": 6, "get_mapp": 6, "path_to_your": 6, "zarr_group": 6, "via": 6, "boolean": 6, "whether": [6, 7], "add_label": [6, 8], "segmentaion": 6, "distinct": 6, "similarli": [6, 7], "multipl": 6, "talk": 6, "understand": [6, 7, 8], "basic": [6, 7, 8], "what": [6, 7, 8], "look": [6, 7, 8, 9], "linux": 6, "x": 6, "zarrai": 6, "smallest": 6, "zattr": 6, "zgroup": 6, "denot": [6, 8], "collaps": 6, "expand": 6, "few": [6, 8], "thing": 6, "here": [6, 7, 8, 9], "multisc": 6, "confus": 6, "crash": 6, "forget": 6, "subfold": [6, 7], "except": [6, 9], "zipstor": 6, "individu": 6, "without": [6, 7, 9], "unpack": 6, "howev": [6, 9], "lack": [6, 8], "librari": [6, 7, 8, 9], "hpc": [6, 9], "system": [6, 7, 9], "canada": [6, 9], "better": [6, 8], "larg": [6, 8, 9], "than": [6, 8], "mani": [6, 7, 8, 9], "small": [6, 8], "thu": 6, "somewher": 6, "As": [6, 8], "2024": 6, "8": 6, "14": 6, "writer": 6, "issu": [6, 7, 8, 9], "patch": 6, "our": [6, 8, 9], "ve": [6, 9], "ad": [6, 8, 9], "also": [6, 8, 9], "page": [6, 8, 9], "io": [6, 10], "py": [6, 9, 10], "how": [6, 8, 9, 10], "task": [6, 9], "respect": 6, "y": 6, "z": 6, "conveni": [6, 8, 9], "load_ome_zarr_array_from_path": 6, "much": [6, 9], "discuss": [6, 8], "commonli": 6, "script": [6, 8, 10], "run": [6, 7, 9, 10], "in_channel": 6, "With": [6, 9], "sub": [6, 7, 9], "region": [6, 7, 8], "crop": 6, "some": [7, 8, 9], "onc": [7, 8, 9], "think": 7, "encount": [7, 9], "long": [7, 8], "workflow": [7, 8], "densiti": [7, 8], "scan": 7, "expect": [7, 8], "heatmap": 7, "graphic": 7, "show": [7, 8, 9], "final": [7, 8, 9], "got": 7, "consol": 7, "redo": [7, 9], "occur": 7, "out": [7, 8], "caus": [7, 8, 9], "rather": 7, "difficult": 7, "went": 7, "wrong": 7, "aid": 7, "veri": [7, 8], "help": [7, 8], "identifi": [7, 8], "friendli": 7, "headach": 7, "risk": 7, "unknown": 7, "difficulti": 7, "distribut": [7, 8, 9], "environ": 7, "strategi": [7, 9], "overcom": 7, "insid": [7, 9], "tree": 7, "txt": [7, 9], "graph": 7, "plot": 7, "interfac": 7, "detail": 7, "everi": [7, 9], "imf": [7, 8, 9], "f": [7, 8, 9, 10], "temp_directori": [7, 8, 9], "cache_dir": 7, "test": [7, 8], "dir_cache_test": 7, "dir": [7, 9], "ones": 7, "pure": 7, "delet": 7, "finish": [7, 8], "otherwis": 7, "know": [7, 8, 9, 10], "anew": 7, "sub_cache_path": 7, "subpath1": 7, "sub_cache_dir": 7, "subdir1": 7, "though": [7, 9], "most": [7, 8], "refer": 7, "design": [7, 8], "flexibl": 7, "decid": 7, "equival": 7, "subpath2": 7, "subpath": [7, 8], "subdir2": 7, "subdir": 7, "It": [7, 8], "seem": [7, 9], "unnecessari": 7, "defer": 7, "child": 7, "handi": 7, "caller": 7, "care": 7, "def": [7, 8, 9], "im": [7, 8, 9, 10], "cache_path": [7, 8, 9], "im2": 7, "plus_on": 7, "im3": 7, "times_thre": 7, "input_im": 7, "second": [7, 9], "cacherootdirecotri": 7, "_": 7, "There": [7, 8], "noth": [7, 8], "fanci": 7, "happen": [7, 9], "quit": 7, "simpl": [7, 8, 9], "place": [7, 8, 10], "were": 7, "manual": 7, "dure": 7, "re": [7, 9], "chang": [7, 8, 9], "again": [7, 8], "recomput": 7, "them": [7, 8, 9], "receiv": 7, "bring": 7, "calle": 7, "separ": [7, 8, 9], "duplic": 7, "twice": 7, "speedup": 7, "readabl": 7, "flat": [7, 8], "scheme": 7, "suitabl": [7, 8], "back": [7, 8, 9], "memori": [7, 9], "slower": 7, "usual": [7, 9], "big": 7, "lightsheet": [8, 9], "microscopi": 8, "mous": [8, 9], "brain": 8, "produc": [8, 9], "hundr": 8, "gb": 8, "necessari": 8, "trackabl": 8, "choos": 8, "project": 8, "research": 8, "autom": 8, "visibl": 8, "give": [8, 9], "accur": 8, "incom": 8, "abl": 8, "quickli": 8, "On": 8, "consist": 8, "dataset": 8, "larger": 8, "hard": 8, "ten": 8, "minut": 8, "hour": 8, "rerun": 8, "seg_process": [8, 9, 10], "u": 8, "consid": 8, "3d": 8, "cell_count": 8, "block3d": 8, "mark": 8, "inst": 8, "instance_segment": 8, "cell_cnt": 8, "count_inst": 8, "bug": 8, "unexpectedli": 8, "problem": [8, 9], "don": 8, "three": 8, "did": 8, "reason": 8, "ideal": 8, "costli": 8, "integr": 8, "cvpl": 8, "particular": 8, "By": 8, "easier": 8, "now": [8, 9, 10], "build": 8, "break": 8, "IN": [8, 9], "cc": 8, "min": 8, "max": 8, "choic": 8, "One": 8, "rest": [8, 9], "background": 8, "anoth": 8, "train": 8, "machin": 8, "learn": [8, 10], "connect": 8, "watersh": 8, "finner": 8, "perhap": 8, "seper": 8, "best": 8, "four": 8, "reus": 8, "variat": 8, "model_predict": 8, "direct_inst_segment": 8, "watershed_inst_segment": 8, "cell_cnt_from_inst": 8, "go": [8, 10], "actual": 8, "recommend": 8, "although": 8, "argu": 8, "oop": 8, "mean": [8, 9], "set_tmpdir": 8, "close": [8, 9], "tmpdir": 8, "examplesegprocess": 8, "makedir": [8, 9], "compute_result": 8, "while": 8, "lambda": 8, "ndisplai": [8, 9], "4096": 8, "chunksiz": 8, "els": 8, "root_dir": 8, "flatter": 8, "fast": 8, "cross": 8, "zoom": 8, "boilerpl": 8, "setup": [8, 10], "__name__": [8, 9], "__main__": [8, 9], "main": [8, 9], "worker": [8, 9], "config": [8, 9], "temporary_directori": [8, 9], "threads_per_work": [8, 9], "12": [8, 9], "n_worker": [8, 9], "load_im": 8, "cell_count_cach": 8, "At": 8, "through": 8, "__init__": 8, "relat": 8, "faster": 8, "configur": 9, "util": 9, "brief": 9, "descript": 9, "multithread": 9, "fit": 9, "written": 9, "scratch": 9, "enough": 9, "quickstart": 9, "post": 9, "initi": 9, "modifi": 9, "simplest": 9, "guid": 9, "TO": 9, "FOR": 9, "6": 9, "item": 9, "9": 9, "line": 9, "ensur": 9, "execut": 9, "creation": 9, "spawn": 9, "exactli": 9, "top": [9, 10], "guard": 9, "statement": 9, "present": 9, "lead": 9, "infinit": 9, "loop": 9, "complic": 9, "stem": 9, "add_ome_zarr_array_from_path": 9, "fetch": 9, "drag": 9, "navig": 9, "across": 9, "speed": 9, "slow": 9, "lag": 9, "solut": 9, "solv": 9, "too": 9, "resourc": 9, "freed": 9, "had": 9, "right": 9, "echo": 9, "stdout": 9, "stderr": 9, "logfil": 9, "accident": 9, "dprint": 9, "logfile_stdout": 9, "log_stdout": 9, "w": 9, "logfile_stderr": 9, "log_stderr": 9, "sy": 9, "multioutputstream": 9, "map_fn": 9, "access": 9, "later": 9, "fix": 9, "manag": 9, "assign": 9, "belong": 9, "act": 9, "model": 9, "some_cache_path": 9, "exists_ok": 9, "put": 9, "multi_step_comput": 9, "cache_at": 9, "computea": 9, "cache_path_b": 9, "computebfroma": 9, "sub_temp_directori": 9, "mult_step_cach": 9, "sort": 9, "complex": 9, "broken": 9, "smaller": 9, "simpler": 9, "amount": 9, "tear": 9, "bother": 9, "quick": 9, "local": [9, 10], "pretti": 9, "bare": 9, "bone": 9, "custom": 9, "qsetup": 9, "captur": 9, "c": 9, "programmingtool": 9, "computervis": 9, "robartsresearch": 9, "plcompon": 9, "client_arg": 9, "use_view": 9, "plc": 9, "AND": 9, "anyon": 9, "witht": 9, "pleas": 9, "let": [9, 10], "me": [9, 10], "tool": 10, "scipi": 10, "scikit": 10, "These": 10, "pip": 10, "depend": 10, "version": 10, "spimquant": 10, "conflict": 10, "instal": 10, "pyqt": 10, "pyside2": 10, "gettingstart": 10, "ome_zarr": 10, "quicker": 10, "motiv": 10, "microscop": 10, "atla": 10, "extend": 10, "overview": 10, "tip": 10, "bs_to_o": 10, "lc_to_cc": 10, "os_to_cc": 10, "os_to_lc": 10, "any_to_ani": 10}, "objects": {"cvpl_tools.im.algs.dask_label": [[0, 0, 1, "", "label"]], "cvpl_tools.im.fs": [[1, 1, 1, "", "CacheDirectory"], [1, 1, 1, "", "CachePath"], [1, 1, 1, "", "CacheRootDirectory"], [1, 0, 1, "", "display"], [1, 0, 1, "", "load"], [1, 0, 1, "", "save"]], "cvpl_tools.im.fs.CacheDirectory": [[1, 2, 1, "", "cache"], [1, 2, 1, "", "cache_im"], [1, 2, 1, "", "cache_subdir"], [1, 2, 1, "", "cache_subpath"], [1, 2, 1, "", "children_from_path"], [1, 2, 1, "", "remove_tmp"]], "cvpl_tools.im.fs.CachePath": [[1, 3, 1, "", "abs_path"], [1, 3, 1, "", "filename"], [1, 2, 1, "", "filename_form_meta"], [1, 3, 1, "", "is_dir"], [1, 2, 1, "", "meta_from_filename"], [1, 3, 1, "", "rel_path"], [1, 3, 1, "", "url"]], "cvpl_tools.im.ndblock": [[3, 1, 1, "", "NDBlock"], [3, 1, 1, "", "ReprFormat"]], "cvpl_tools.im.ndblock.NDBlock": [[3, 2, 1, "", "as_dask_array"], [3, 2, 1, "", "get_chunksize"], [3, 2, 1, "", "is_numpy"], [3, 2, 1, "", "load"], [3, 2, 1, "", "map_ndblocks"], [3, 2, 1, "", "persist"], [3, 2, 1, "", "reduce"], [3, 2, 1, "", "save"], [3, 2, 1, "", "select_columns"], [3, 2, 1, "", "sum"], [3, 2, 1, "", "to_dask_array"], [3, 2, 1, "", "to_dict_block_index_slices"], [3, 2, 1, "", "to_numpy_array"]], "cvpl_tools.im.process.any_to_any": [[5, 1, 1, "", "DownsamplingByIntFactor"], [5, 1, 1, "", "UpsamplingByIntFactor"]], "cvpl_tools.im.process.any_to_any.DownsamplingByIntFactor": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor": [[5, 2, 1, "", "forward"], [5, 2, 1, "", "np_forward"]], "cvpl_tools.im.process.bs_to_os": [[5, 1, 1, "", "DirectBSToOS"], [5, 1, 1, "", "Watershed3SizesBSToOS"]], "cvpl_tools.im.process.bs_to_os.DirectBSToOS": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.process.lc_to_cc": [[5, 1, 1, "", "CountLCBySize"], [5, 1, 1, "", "CountLCEdgePenalized"]], "cvpl_tools.im.process.lc_to_cc.CountLCBySize": [[5, 2, 1, "", "cc_list"], [5, 2, 1, "", "forward"]], "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized": [[5, 2, 1, "", "cc_list"], [5, 2, 1, "", "forward"], [5, 2, 1, "", "np_features"]], "cvpl_tools.im.process.os_to_cc": [[5, 1, 1, "", "CountOSBySize"]], "cvpl_tools.im.process.os_to_cc.CountOSBySize": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.process.os_to_lc": [[5, 1, 1, "", "DirectOSToLC"]], "cvpl_tools.im.process.os_to_lc.DirectOSToLC": [[5, 2, 1, "", "aggregate_by_id"], [5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process": [[5, 1, 1, "", "BSPredictor"], [5, 1, 1, "", "BinaryAndCentroidListToInstance"], [5, 1, 1, "", "BlobDog"], [5, 1, 1, "", "BlockToBlockProcess"], [5, 1, 1, "", "GaussianBlur"], [5, 1, 1, "", "SegProcess"], [5, 1, 1, "", "SimpleThreshold"], [5, 1, 1, "", "SumScaledIntensity"], [5, 0, 1, "", "lc_interpretable_napari"]], "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance": [[5, 2, 1, "", "bacl_forward"], [5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.BlobDog": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.BlockToBlockProcess": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.SegProcess": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.SumScaledIntensity": [[5, 2, 1, "", "forward"]], "cvpl_tools.ome_zarr.io": [[4, 0, 1, "", "load_dask_array_from_path"], [4, 0, 1, "", "load_zarr_group_from_path"], [4, 0, 1, "", "write_ome_zarr_image"]]}, "objtypes": {"0": "py:function", "1": "py:class", "2": "py:method", "3": "py:property"}, "objnames": {"0": ["py", "function", "Python function"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "property", "Python property"]}, "titleterms": {"cvpl_tool": [0, 1, 2, 3, 4, 5, 10], "im": [0, 1, 3, 5], "alg": 0, "f": 1, "py": [1, 2, 3, 4, 5], "ome_zarr": [2, 4, 6], "napari": 2, "add": 2, "ndblock": 3, "io": 4, "seg_process": 5, "bs_to_o": 5, "lc_to_cc": 5, "os_to_cc": 5, "os_to_lc": 5, "any_to_ani": 5, "view": 6, "om": 6, "zarr": 6, "file": [6, 7], "read": 6, "write": 6, "specifi": 6, "slice": 6, "path": 6, "result": 7, "cach": 7, "overview": 7, "cacherootdirectori": 7, "cachedirectori": [7, 9], "cachepoint": 7, "find": 7, "tip": 7, "segment": 8, "pipelin": 8, "motiv": 8, "microscop": 8, "cell": 8, "count": 8, "atla": 8, "map": 8, "object": 8, "The": 8, "segprocess": 8, "class": 8, "extend": 8, "run": 8, "set": 9, "up": 9, "script": 9, "dask": 9, "cluster": 9, "temporari": 9, "directori": 9, "log": 9, "setup": 9, "A": 9, "quicker": 9, "introduct": 10, "document": 10, "content": 10, "api": 10, "refer": 10}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 58}, "alltitles": {"cvpl_tools/im/algs": [[0, "cvpl-tools-im-algs"]], "cvpl_tools/im/fs.py": [[1, "cvpl-tools-im-fs-py"]], "cvpl_tools/ome_zarr/napari/add.py": [[2, "cvpl-tools-ome-zarr-napari-add-py"]], "cvpl_tools/im/ndblock.py": [[3, "cvpl-tools-im-ndblock-py"]], "cvpl_tools/ome_zarr/io.py": [[4, "cvpl-tools-ome-zarr-io-py"]], "cvpl_tools/im/seg_process.py": [[5, "cvpl-tools-im-seg-process-py"]], "bs_to_os": [[5, "bs-to-os"]], "lc_to_cc": [[5, "lc-to-cc"]], "os_to_cc": [[5, "os-to-cc"]], "os_to_lc": [[5, "os-to-lc"]], "any_to_any": [[5, "any-to-any"]], "OME_ZARR": [[6, "ome-zarr"]], "Viewing of ome zarr file": [[6, "viewing-of-ome-zarr-file"]], "Reading and Writing ome zarr files": [[6, "reading-and-writing-ome-zarr-files"]], "Specifying slices in path": [[6, "specifying-slices-in-path"]], "Result Caching": [[7, "result-caching"]], "Overview": [[7, "overview"]], "CacheRootDirectory": [[7, "cacherootdirectory"]], "CacheDirectory": [[7, "cachedirectory"], [9, "cachedirectory"]], "CachePointer": [[7, "cachepointer"]], "Finding Cached Files": [[7, "finding-cached-files"]], "Tips": [[7, "tips"]], "Segmentation Pipeline": [[8, "segmentation-pipeline"]], "Motivation: Microscope, Cell Counting, Atlas map and Object Segmentation": [[8, "motivation-microscope-cell-counting-atlas-map-and-object-segmentation"]], "The SegProcess Class": [[8, "the-segprocess-class"]], "Extending the Pipeline": [[8, "extending-the-pipeline"]], "Running the Pipeline": [[8, "running-the-pipeline"]], "Setting Up the Script": [[9, "setting-up-the-script"]], "Dask Cluster and temporary directory": [[9, "dask-cluster-and-temporary-directory"]], "Dask Logging Setup": [[9, "dask-logging-setup"]], "A Quicker Setup": [[9, "a-quicker-setup"]], "Introduction - cvpl_tools documentation": [[10, "introduction-cvpl-tools-documentation"]], "Contents:": [[10, null]], "API Reference": [[10, null]]}, "indexentries": {"label() (in module cvpl_tools.im.algs.dask_label)": [[0, "cvpl_tools.im.algs.dask_label.label"]], "cachedirectory (class in cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.CacheDirectory"]], "cachepath (class in cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.CachePath"]], "cacherootdirectory (class in cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.CacheRootDirectory"]], "abs_path (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.abs_path"]], "cache() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache"]], "cache_im() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache_im"]], "cache_subdir() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache_subdir"]], "cache_subpath() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache_subpath"]], "children_from_path() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.children_from_path"]], "display() (in module cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.display"]], "filename (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.filename"]], "filename_form_meta() (cvpl_tools.im.fs.cachepath static method)": [[1, "cvpl_tools.im.fs.CachePath.filename_form_meta"]], "is_dir (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.is_dir"]], "load() (in module cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.load"]], "meta_from_filename() (cvpl_tools.im.fs.cachepath static method)": [[1, "cvpl_tools.im.fs.CachePath.meta_from_filename"]], "rel_path (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.rel_path"]], "remove_tmp() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.remove_tmp"]], "save() (in module cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.save"]], "url (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.url"]], "ndblock (class in cvpl_tools.im.ndblock)": [[3, "cvpl_tools.im.ndblock.NDBlock"]], "reprformat (class in cvpl_tools.im.ndblock)": [[3, "cvpl_tools.im.ndblock.ReprFormat"]], "as_dask_array() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.as_dask_array"]], "get_chunksize() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.get_chunksize"]], "is_numpy() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.is_numpy"]], "load() (cvpl_tools.im.ndblock.ndblock static method)": [[3, "cvpl_tools.im.ndblock.NDBlock.load"]], "map_ndblocks() (cvpl_tools.im.ndblock.ndblock static method)": [[3, "cvpl_tools.im.ndblock.NDBlock.map_ndblocks"]], "persist() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.persist"]], "reduce() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.reduce"]], "save() (cvpl_tools.im.ndblock.ndblock static method)": [[3, "cvpl_tools.im.ndblock.NDBlock.save"]], "select_columns() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.select_columns"]], "sum() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.sum"]], "to_dask_array() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.to_dask_array"]], "to_dict_block_index_slices() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.to_dict_block_index_slices"]], "to_numpy_array() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.to_numpy_array"]], "load_dask_array_from_path() (in module cvpl_tools.ome_zarr.io)": [[4, "cvpl_tools.ome_zarr.io.load_dask_array_from_path"]], "load_zarr_group_from_path() (in module cvpl_tools.ome_zarr.io)": [[4, "cvpl_tools.ome_zarr.io.load_zarr_group_from_path"]], "write_ome_zarr_image() (in module cvpl_tools.ome_zarr.io)": [[4, "cvpl_tools.ome_zarr.io.write_ome_zarr_image"]], "bspredictor (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BSPredictor"]], "binaryandcentroidlisttoinstance (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance"]], "blobdog (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BlobDog"]], "blocktoblockprocess (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BlockToBlockProcess"]], "countlcbysize (class in cvpl_tools.im.process.lc_to_cc)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCBySize"]], "countlcedgepenalized (class in cvpl_tools.im.process.lc_to_cc)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized"]], "countosbysize (class in cvpl_tools.im.process.os_to_cc)": [[5, "cvpl_tools.im.process.os_to_cc.CountOSBySize"]], "directbstoos (class in cvpl_tools.im.process.bs_to_os)": [[5, "cvpl_tools.im.process.bs_to_os.DirectBSToOS"]], "directostolc (class in cvpl_tools.im.process.os_to_lc)": [[5, "cvpl_tools.im.process.os_to_lc.DirectOSToLC"]], "downsamplingbyintfactor (class in cvpl_tools.im.process.any_to_any)": [[5, "cvpl_tools.im.process.any_to_any.DownsamplingByIntFactor"]], "gaussianblur (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.GaussianBlur"]], "segprocess (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.SegProcess"]], "simplethreshold (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.SimpleThreshold"]], "sumscaledintensity (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.SumScaledIntensity"]], "upsamplingbyintfactor (class in cvpl_tools.im.process.any_to_any)": [[5, "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor"]], "watershed3sizesbstoos (class in cvpl_tools.im.process.bs_to_os)": [[5, "cvpl_tools.im.process.bs_to_os.Watershed3SizesBSToOS"]], "aggregate_by_id() (cvpl_tools.im.process.os_to_lc.directostolc method)": [[5, "cvpl_tools.im.process.os_to_lc.DirectOSToLC.aggregate_by_id"]], "bacl_forward() (cvpl_tools.im.seg_process.binaryandcentroidlisttoinstance method)": [[5, "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance.bacl_forward"]], "cc_list() (cvpl_tools.im.process.lc_to_cc.countlcbysize method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCBySize.cc_list"]], "cc_list() (cvpl_tools.im.process.lc_to_cc.countlcedgepenalized method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized.cc_list"]], "forward() (cvpl_tools.im.process.any_to_any.downsamplingbyintfactor method)": [[5, "cvpl_tools.im.process.any_to_any.DownsamplingByIntFactor.forward"]], "forward() (cvpl_tools.im.process.any_to_any.upsamplingbyintfactor method)": [[5, "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor.forward"]], "forward() (cvpl_tools.im.process.bs_to_os.directbstoos method)": [[5, "cvpl_tools.im.process.bs_to_os.DirectBSToOS.forward"]], "forward() (cvpl_tools.im.process.lc_to_cc.countlcbysize method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCBySize.forward"]], "forward() (cvpl_tools.im.process.lc_to_cc.countlcedgepenalized method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized.forward"]], "forward() (cvpl_tools.im.process.os_to_cc.countosbysize method)": [[5, "cvpl_tools.im.process.os_to_cc.CountOSBySize.forward"]], "forward() (cvpl_tools.im.process.os_to_lc.directostolc method)": [[5, "cvpl_tools.im.process.os_to_lc.DirectOSToLC.forward"]], "forward() (cvpl_tools.im.seg_process.binaryandcentroidlisttoinstance method)": [[5, "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance.forward"]], "forward() (cvpl_tools.im.seg_process.blobdog method)": [[5, "cvpl_tools.im.seg_process.BlobDog.forward"]], "forward() (cvpl_tools.im.seg_process.blocktoblockprocess method)": [[5, "cvpl_tools.im.seg_process.BlockToBlockProcess.forward"]], "forward() (cvpl_tools.im.seg_process.segprocess method)": [[5, "cvpl_tools.im.seg_process.SegProcess.forward"]], "forward() (cvpl_tools.im.seg_process.sumscaledintensity method)": [[5, "cvpl_tools.im.seg_process.SumScaledIntensity.forward"]], "lc_interpretable_napari() (in module cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.lc_interpretable_napari"]], "np_features() (cvpl_tools.im.process.lc_to_cc.countlcedgepenalized method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized.np_features"]], "np_forward() (cvpl_tools.im.process.any_to_any.upsamplingbyintfactor method)": [[5, "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor.np_forward"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["API/algs", "API/imfs", "API/napari_zarr", "API/ndblock", "API/ome_zarr_io", "API/seg_process", "GettingStarted/ome_zarr", "GettingStarted/result_caching", "GettingStarted/segmentation_pipeline", "GettingStarted/setting_up_the_script", "index"], "filenames": ["API/algs.rst", "API/imfs.rst", "API/napari_zarr.rst", "API/ndblock.rst", "API/ome_zarr_io.rst", "API/seg_process.rst", "GettingStarted/ome_zarr.rst", "GettingStarted/result_caching.rst", "GettingStarted/segmentation_pipeline.rst", "GettingStarted/setting_up_the_script.rst", "index.rst"], "titles": ["cvpl_tools/im/algs", "cvpl_tools/im/fs.py", "cvpl_tools/ome_zarr/napari/add.py", "cvpl_tools/im/ndblock.py", "cvpl_tools/ome_zarr/io.py", "cvpl_tools/im/seg_process.py", "OME_ZARR", "Result Caching", "Segmentation Pipeline", "Setting Up the Script", "Introduction - cvpl_tools documentation"], "terms": {"thi": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10], "subdirectori": [0, 8], "defin": [0, 5, 8, 9, 10], "relev": 0, "algorithm": [0, 5, 7, 8], "parallel": [0, 8], "process": [0, 5, 7, 8, 9, 10], "nd": 0, "imag": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "api": [0, 1, 2, 3, 4, 5, 6, 8, 9], "dask_label": 0, "label": [0, 2, 4, 5, 6, 10], "ndarrai": [0, 1, 3, 5], "ani": [0, 1, 3, 5, 6, 9], "dtype": [0, 3, 5, 9], "_scalartype_co": [0, 3, 5], "arrai": [0, 1, 3, 4, 5, 6, 8, 9], "ndblock": [0, 1, 5, 8, 10], "cptr": [0, 5, 7, 8], "cachepoint": [0, 1, 5, 8, 10], "output_dtyp": 0, "none": [0, 1, 3, 4, 5, 6, 8, 9], "viewer_arg": [0, 1, 5, 8, 9], "dict": [0, 1, 3, 4, 5, 6, 8, 9], "return": [0, 1, 3, 4, 5, 7, 8, 9], "lbl_im": 0, "nlbl": 0, "where": [0, 1, 5, 6, 7, 8, 9], "i": [0, 1, 3, 4, 5, 6, 7, 8, 9], "global": 0, "same": [0, 1, 3, 5, 6, 7, 9, 10], "type": [0, 1, 3, 4, 5, 6, 8], "chunk": [0, 1, 3, 5, 6, 7, 8, 9], "size": [0, 1, 3, 5, 8], "input": [0, 3, 5, 6, 8, 9], "view": [1, 2, 3, 4, 5, 10], "sourc": [1, 2, 3, 4, 5], "save": [1, 3, 6, 7, 8, 9, 10], "file": [1, 2, 3, 4, 8, 9, 10], "str": [1, 3, 4, 5], "storage_opt": [1, 3, 4], "an": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "object": [1, 3, 5, 6, 7, 9, 10], "given": [1, 3, 5], "path": [1, 2, 3, 4, 7, 8, 9, 10], "support": [1, 4, 6, 7, 8, 9], "np": [1, 5, 8, 9], "dask": [1, 3, 4, 5, 6, 7, 8, 10], "storag": [1, 3, 6], "option": [1, 3, 4, 6, 8], "preferred_chunks": [1, 8], "tupl": [1, 3, 5, 9], "int": [1, 3, 4, 5], "rechunk": [1, 7], "differ": [1, 3, 4, 5, 8, 9], "from": [1, 3, 4, 5, 6, 7, 8, 9], "current": [1, 3, 5, 9], "onli": [1, 3, 4, 6, 7, 8, 9], "appli": [1, 3, 5], "multiscal": [1, 3, 6, 8, 9], "0": [1, 3, 4, 5, 6, 8], "The": [1, 3, 4, 5, 6, 7, 9, 10], "number": [1, 3, 5, 7, 8, 9], "downsampl": [1, 5, 6, 8], "layer": [1, 4, 5, 6], "om": [1, 2, 4, 7, 8, 9, 10], "zarr": [1, 2, 4, 7, 8, 9, 10], "compressor": [1, 3], "us": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "compress": [1, 3], "paramet": [1, 3, 4, 5, 8], "full": 1, "rel": [1, 8], "directori": [1, 4, 5, 6, 7, 8, 10], "specifi": [1, 3, 4, 5, 7, 8, 10], "method": [1, 3, 8], "format": [1, 3, 6, 7, 8], "load": [1, 3, 4, 6, 7, 8, 9, 10], "one": [1, 3, 4, 5, 6, 7, 8, 9, 10], "read": [1, 4, 7, 10], "recreat": 1, "attempt": 1, "keep": 1, "meta": [1, 5, 6, 9], "content": [1, 3], "stai": 1, "when": [1, 3, 4, 5, 6, 7, 8, 9], "thei": [1, 3, 5, 7, 8, 9], "ar": [1, 3, 5, 6, 7, 8, 9, 10], "displai": [1, 5, 6, 7, 8, 9, 10], "viewer": [1, 5, 6, 7, 8, 9, 10], "numpi": [1, 3, 4, 5, 6, 8, 9, 10], "contain": [1, 3, 5, 6, 7, 9], "argument": [1, 3, 5, 6, 8], "pass": [1, 3, 4, 6, 8, 9], "": [1, 2, 3, 5, 6, 7, 8, 9], "add": [1, 5, 6, 8, 9, 10], "function": [1, 3, 4, 5, 6, 7, 8, 9], "class": [1, 3, 5, 6, 7, 9, 10], "cachepath": [1, 7, 10], "root": [1, 6, 7, 8, 9], "cacherootdirectori": [1, 8, 9, 10], "path_seg": 1, "parent": [1, 7, 9], "cachedirectori": [1, 8, 10], "exist": [1, 7, 8, 9], "bool": [1, 3, 4, 5], "fals": [1, 3, 4, 5, 6, 7, 8, 9], "rdirfilesystem": 1, "A": [1, 3, 5, 6, 7, 10], "pointer": [1, 7], "cach": [1, 5, 8, 9, 10], "locat": [1, 3, 5, 6, 7, 8], "within": [1, 8], "hierarch": [1, 8, 9], "structur": [1, 6, 9], "two": [1, 3, 5, 6, 7, 8, 9], "implement": [1, 6, 7, 8], "program": [1, 7, 9], "pattern": 1, "subclass": [1, 5, 7, 8, 9], "zero": [1, 3, 7, 9], "more": [1, 5, 6, 7, 8, 9], "its": [1, 6, 7], "children": [1, 7], "To": [1, 6, 7, 8, 9], "creat": [1, 4, 6, 7, 8, 9], "alloc": 1, "new": [1, 6, 7, 8], "find": [1, 8, 10], "name": [1, 3, 4, 5, 6, 7], "suggest": 1, "folder": [1, 4, 6, 7, 8], "associ": [1, 2, 5], "automat": [1, 7, 9], "properti": [1, 3], "abs_path": 1, "obtain": [1, 8], "absolut": [1, 6], "first": [1, 3, 5, 6, 7, 8], "time": [1, 6, 7, 8, 9], "url": [1, 7, 8, 9], "suppos": 1, "empti": [1, 8, 9], "can": [1, 2, 3, 4, 6, 7, 8, 9, 10], "address": [1, 8], "store": [1, 4, 6, 8], "afterward": 1, "next": [1, 7, 8], "app": 1, "start": [1, 3, 4, 7, 9], "filenam": 1, "last": [1, 7], "segment": [1, 5, 6, 9, 10], "typic": [1, 9], "cid": [1, 5, 7, 8, 9], "prepend": 1, "is_dir": [1, 7], "is_tmp": [1, 7], "inform": [1, 5], "do": [1, 5, 6, 8, 9], "call": [1, 2, 8, 9], "static": [1, 3], "filename_form_meta": 1, "dictionari": [1, 6], "string": [1, 4, 6], "true": [1, 3, 4, 5, 6, 7, 8, 9], "instead": [1, 4, 5, 6, 7], "In": [1, 3, 4, 7, 8, 9], "other": [1, 5, 9, 10], "word": 1, "leaf": [1, 7], "node": [1, 7], "meta_from_filenam": 1, "return_none_if_malform": 1, "retriev": [1, 3], "plan": [1, 8], "If": [1, 2, 3, 4, 5, 6, 8, 9, 10], "throw": 1, "error": [1, 7], "malform": 1, "rel_path": 1, "o": [1, 8, 9], "remove_when_don": [1, 7, 8, 9], "read_if_exist": [1, 7, 8, 9], "correspond": [1, 4, 5], "similar": [1, 3, 4, 6], "_create_cach": 1, "intermedi": [1, 7, 8, 9], "offset": 1, "decis": [1, 7], "often": [1, 7, 8], "we": [1, 3, 4, 6, 7, 8, 9], "which": [1, 3, 4, 5, 6, 7, 8, 9], "result": [1, 3, 5, 6, 8, 9, 10], "singl": [1, 2, 3, 5, 6, 7, 8], "prefer": [1, 8], "make": [1, 5, 7, 8, 9], "befor": [1, 5, 6, 8, 9], "inappropri": 1, "avoid": [1, 7], "struct": [1, 7], "desir": 1, "either": [1, 3, 4, 6, 8], "itself": [1, 9], "cache_im": [1, 8], "fn": [1, 3], "cache_level": 1, "float": [1, 5, 8], "comput": [1, 3, 5, 6, 7, 8, 9], "alreadi": [1, 3], "id": [1, 5, 9], "level": [1, 4, 6, 8], "oper": 1, "note": [1, 3, 6, 7, 8, 10], "even": [1, 7, 9], "skip": [1, 8, 9], "avail": [1, 9], "disk": [1, 4, 7, 9], "still": 1, "cache_subdir": [1, 7, 9], "wrapper": [1, 5], "see": [1, 6, 8, 9], "doc": 1, "cache_subpath": [1, 7, 9], "children_from_path": 1, "prefix_path_seg": 1, "examin": 1, "recurs": [1, 7], "all": [1, 3, 7, 8, 9], "prefix": 1, "found": [1, 5, 8, 9], "under": [1, 4, 5, 7, 8, 9], "json": 1, "map": [1, 3, 10], "determin": [1, 4, 7, 9], "remove_tmp": 1, "travers": 1, "subnod": 1, "self": [1, 5, 8], "remov": [1, 7, 8], "those": [1, 9], "For": [2, 3, 4, 5, 7, 8, 9], "subarray_from_path": 2, "gener": [2, 3, 5, 7], "ha": [2, 3, 6, 8], "image_ome_zarr": 2, "label_nam": [2, 6], "open": [2, 4, 6, 9], "togeth": [2, 5], "group_from_path": 2, "arr": [3, 9], "repres": [3, 7, 8], "n": [3, 5, 8], "dimension": [3, 8], "grid": 3, "each": [3, 5, 6, 7, 8], "block": [3, 5, 8, 9], "arbitrari": [3, 8], "shape": [3, 4, 5, 6], "1": [3, 4, 5, 6, 7, 8, 9], "ax": 3, "match": [3, 7, 8], "case": [3, 4, 5, 6, 7, 8, 9], "vari": 3, "e": [3, 4, 8], "g": [3, 4, 6, 8], "2": [3, 4, 5, 6, 7, 8, 9], "mai": [3, 5, 6, 7, 8, 9], "neighbor": [3, 5], "5": [3, 5], "10": [3, 5], "assum": [3, 4], "block_index": [3, 5], "list": [3, 5], "alwai": [3, 7], "order": [3, 5, 7, 9], "m": 3, "increas": 3, "side": [3, 8], "tail": 3, "as_dask_arrai": 3, "get": [3, 5, 7, 8, 9], "copi": [3, 4], "valu": [3, 6, 9], "persist": [3, 7, 8, 9], "convert": [3, 5, 8], "get_chunks": 3, "axi": [3, 6], "length": [3, 5], "ndim": [3, 5], "is_numpi": 3, "besid": 3, "reprformat": [3, 10], "dict_block_index_slic": 3, "have": [3, 4, 6, 7, 8, 9], "delai": 3, "former": 3, "latter": 3, "opiton": 3, "includ": 3, "port_protocol": 3, "guarante": 3, "map_ndblock": 3, "sequenc": [3, 5, 8], "callabl": [3, 5], "out_dtyp": [3, 5], "use_input_index_as_arrloc": 3, "new_slic": 3, "fn_arg": 3, "da": [3, 8, 9], "map_block": [3, 9], "work": [3, 5, 6, 7, 8, 9], "block_info": [3, 5, 9], "provid": [3, 4, 5, 6, 8, 9, 10], "kei": 3, "must": 3, "indic": [3, 7], "over": [3, 8], "slice": [3, 4, 10], "well": [3, 6, 8], "output": [3, 4, 5, 7, 8, 9], "slices_list": 3, "ignor": 3, "variabl": [3, 6, 9], "replac": 3, "attribut": [3, 6, 7, 8], "extra": [3, 5, 6], "client": [3, 8, 9], "reload": 3, "done": [3, 4, 6, 8], "directli": [3, 4, 6, 7, 8], "reduc": [3, 5, 7], "force_numpi": 3, "concaten": 3, "forc": 3, "analysi": [3, 8], "requir": [3, 4, 7, 8, 9, 10], "previou": 3, "Will": 3, "immedi": 3, "write": [3, 4, 7, 8, 9, 10], "multilevel": 3, "non": [3, 7], "select_column": 3, "col": 3, "perform": [3, 8], "column": 3, "select": 3, "2d": [3, 5, 7], "sum": [3, 9], "keepdim": 3, "to_dask_arrai": 3, "represent": 3, "to_dict_block_index_slic": 3, "to_numpy_arrai": 3, "modul": [3, 8, 9], "qualnam": 3, "boundari": [3, 5], "possibl": 3, "numpy_arrai": 3, "dask_arrai": 3, "load_dask_array_from_path": [4, 6, 10], "altern": 4, "load_zarr_group_from_path": [4, 6, 10], "group": [4, 6], "mode": [4, 6, 9], "from_zarr": 4, "you": [4, 5, 6, 7, 8, 9, 10], "would": [4, 8, 9], "like": [4, 5, 6, 7, 9], "zip": [4, 6], "write_ome_zarr_imag": [4, 6, 10], "onto": [4, 7], "use_zip": [4, 6], "r": [4, 6], "treat": [4, 5, 8], "default": [4, 8, 9], "entir": [4, 6], "compar": 4, "allow": [4, 6, 8, 9], "channel": [4, 6], "queri": 4, "syntax": [4, 6], "idea": [4, 6, 8], "thank": 4, "davi": [4, 6], "bennett": [4, 6], "thread": [4, 8, 9], "http": 4, "forum": 4, "sc": 4, "t": [4, 8], "97798": 4, "exampl": [4, 8, 9], "200": [4, 6], "1000": [4, 6], "arr_origin": [4, 6], "arr1": [4, 6], "arr2": [4, 6], "100": [4, 5, 6], "arr3": [4, 6], "500": [4, 6], "essenti": 4, "python": [4, 6, 9], "multi": [4, 6, 8, 9], "index": [4, 5], "effect": 4, "torch": [4, 6], "out_ome_zarr_path": 4, "tmp_path": [4, 8, 9], "da_arr": 4, "lbl_arr": 4, "lbl_name": 4, "make_zip": 4, "max_lay": 4, "log": [4, 7, 10], "lbl_storage_opt": 4, "due": [4, 5, 6], "doe": [4, 5, 6, 7, 8, 9], "temp": 4, "after": [4, 6, 7, 8, 9], "why": [4, 5, 6, 7], "target": [4, 6], "temporari": [4, 6, 7, 8, 10], "base": [4, 5, 8, 9], "suffix": [4, 6], "maximum": [4, 6, 8], "down": [4, 5, 8, 9], "sampl": [4, 5], "print": [4, 9], "messag": [4, 9], "job": 4, "end": [4, 6, 8], "q": 5, "baseclass": 5, "segprocess": [5, 9, 10], "blocktoblockprocess": [5, 10], "my": [5, 9], "own": 5, "pipelin": [5, 9, 10], "should": [5, 6, 8, 9], "around": 5, "code": [5, 6, 8, 9], "whose": 5, "centroid": [5, 8], "abstract": [5, 8], "forward": [5, 8], "arg": 5, "kwarg": [5, 6], "just": [5, 7, 8], "step": [5, 7, 8, 9], "visual": [5, 8, 10], "underli": [5, 6], "mechan": [5, 7], "napari": [5, 6, 7, 8, 9, 10], "interpret": [5, 8], "debug": [5, 7, 8, 9], "purpos": 5, "is_label": [5, 6, 8], "compute_chunk_s": 5, "lc_interpretable_napari": [5, 8, 10], "layer_nam": 5, "lc": 5, "extra_featur": 5, "text_color": 5, "green": 5, "featur": [5, 6, 9], "point": [5, 7, 8], "row": 5, "nextra": 5, "dimens": 5, "text": [5, 7, 9], "color": [5, 6], "built": [5, 10], "gaussianblur": [5, 10], "sigma": 5, "bspredictor": [5, 10], "pred_fn": 5, "simplethreshold": [5, 10], "threshold": [5, 8], "blobdog": [5, 10], "min_sigma": 5, "max_sigma": 5, "float32": [5, 8], "sumscaledintens": [5, 10], "scale": 5, "008": 5, "min_thr": 5, "spatial_box_width": 5, "binaryandcentroidlisttoinst": [5, 10], "maxsplit": 5, "instanc": [5, 6, 7, 8], "take": [5, 7, 8, 9], "binari": [5, 8], "mask": [5, 6, 8], "detect": 5, "Then": [5, 8], "split": 5, "pixel": [5, 8], "fine": 5, "closer": 5, "correctli": 5, "bacl_forward": 5, "b": [5, 8, 9], "uint8": [5, 8, 9], "float64": [5, 8], "int32": [5, 8], "ordin": [5, 8], "section": [5, 8], "integ": [5, 6], "directbstoo": 5, "is_glob": 5, "watershed3sizesbstoo": 5, "size_thr": 5, "60": 5, "dist_thr": 5, "rst": 5, "size_thres2": 5, "dist_thres2": 5, "rst2": 5, "cell": [5, 7, 10], "count": [5, 10], "describ": [5, 7, 9], "about": [5, 6, 7], "summar": 5, "statist": 5, "countlcbys": 5, "size_threshold": 5, "25": 5, "volume_weight": 5, "006": 5, "border_param": 5, "3": [5, 6, 7, 8, 9], "min_siz": 5, "sever": [5, 8], "below": [5, 7, 8, 9], "contour": [5, 8], "part": [5, 7, 8], "abov": [5, 6, 7, 9], "seen": 5, "cluster": [5, 8, 10], "estim": [5, 8], "volum": [5, 8], "ncell": 5, "penal": 5, "accord": 5, "distanc": 5, "between": [5, 8], "voxel": 5, "touch": 5, "edg": 5, "penalti": 5, "4": [5, 6, 8], "simpli": [5, 8], "discard": [5, 7, 9], "becaus": [5, 7], "artifact": 5, "cc_list": 5, "os_shap": 5, "assumpt": 5, "nvoxel": 5, "edge_contact": 5, "countlcedgepen": 5, "calcul": 5, "need": [5, 6, 7, 8, 9], "image_shap": 5, "fact": 5, "suffici": 5, "far": 5, "divisor": 5, "becom": [5, 8], "decreas": 5, "toward": 5, "sinc": [5, 8, 9], "doubl": [5, 6], "tripl": 5, "corner": [5, 6], "etc": [5, 8], "d": 5, "element": 5, "scalar": 5, "np_featur": 5, "concat": 5, "left": [5, 6], "oridn": 5, "countosbys": 5, "directostolc": 5, "ex_statist": 5, "origin": [5, 6], "come": [5, 7, 8], "so": [5, 7, 9], "aggregate_by_id": 5, "aggreg": 5, "_ndblock": 5, "adapt": 5, "data": [5, 8, 9], "adequ": 5, "classif": 5, "downsamplingbyintfactor": 5, "factor": 5, "deprec": 5, "alg": [5, 10], "dask_ndinterp": 5, "scale_nearest": 5, "sure": [5, 8, 9], "set": [5, 6, 8, 10], "bright": [5, 8], "rgb": 5, "want": [5, 6, 7, 8, 9], "correspondingli": 5, "tmp": [5, 9], "upsamplingbyintfactor": 5, "upsampl": 5, "up": [5, 7, 8, 10], "np_forward": 5, "command": [6, 9], "widget": 6, "button": 6, "bottom": 6, "window": [6, 9], "invok": 6, "wai": [6, 7, 8], "cvpl_tool": [6, 8, 9], "import": [6, 8, 9], "napari_add_ome_zarr": 6, "subarrai": 6, "your": [6, 8, 9], "displayed_name_in_ui": 6, "add_imag": [6, 8], "regardless": [6, 9], "both": [6, 7, 9], "standard": 6, "cvpl_zarr": 6, "add_ome_zarr_group_from_path": 6, "addit": 6, "googl": 6, "cloud": [6, 10], "follow": [6, 7, 8, 9], "gcsf": 6, "gf": 6, "gcsfilesystem": 6, "token": 6, "get_mapp": 6, "path_to_your": 6, "zarr_group": 6, "via": 6, "boolean": 6, "whether": [6, 7], "add_label": [6, 8], "segmentaion": 6, "distinct": 6, "similarli": [6, 7], "multipl": 6, "talk": 6, "understand": [6, 7, 8], "basic": [6, 7, 8], "what": [6, 7, 8], "look": [6, 7, 8, 9], "linux": 6, "x": 6, "zarrai": 6, "smallest": 6, "zattr": 6, "zgroup": 6, "denot": [6, 8], "collaps": 6, "expand": 6, "few": [6, 8], "thing": 6, "here": [6, 7, 8, 9], "multisc": 6, "confus": 6, "crash": 6, "forget": 6, "subfold": [6, 7], "except": [6, 9], "zipstor": 6, "individu": 6, "without": [6, 7, 9], "unpack": 6, "howev": [6, 9], "lack": [6, 8], "librari": [6, 7, 8, 9], "hpc": [6, 9], "system": [6, 7, 9], "canada": [6, 9], "better": [6, 8], "larg": [6, 8, 9], "than": [6, 8], "mani": [6, 7, 8, 9], "small": [6, 8], "thu": 6, "somewher": 6, "As": [6, 8], "2024": 6, "8": 6, "14": 6, "writer": 6, "issu": [6, 7, 8, 9], "patch": 6, "our": [6, 8, 9], "ve": [6, 9], "ad": [6, 8, 9], "also": [6, 8, 9], "page": [6, 8, 9], "io": [6, 10], "py": [6, 9, 10], "how": [6, 8, 9, 10], "task": [6, 9], "respect": 6, "y": 6, "z": 6, "conveni": [6, 8, 9], "load_ome_zarr_array_from_path": 6, "much": [6, 9], "discuss": [6, 8], "commonli": 6, "script": [6, 8, 10], "run": [6, 7, 9, 10], "in_channel": 6, "With": [6, 9], "sub": [6, 7, 9], "region": [6, 7, 8], "crop": 6, "some": [7, 8, 9], "onc": [7, 8, 9], "think": 7, "encount": [7, 9], "long": [7, 8], "workflow": [7, 8], "densiti": [7, 8], "scan": 7, "expect": [7, 8], "heatmap": 7, "graphic": 7, "show": [7, 8, 9], "final": [7, 8, 9], "got": 7, "consol": 7, "redo": [7, 9], "occur": 7, "out": [7, 8], "caus": [7, 8, 9], "rather": 7, "difficult": 7, "went": 7, "wrong": 7, "aid": 7, "veri": [7, 8], "help": [7, 8], "identifi": [7, 8], "friendli": 7, "headach": 7, "risk": 7, "unknown": 7, "difficulti": 7, "distribut": [7, 8, 9], "environ": 7, "strategi": [7, 9], "overcom": 7, "insid": [7, 9], "tree": 7, "txt": [7, 9], "graph": 7, "plot": 7, "interfac": 7, "detail": 7, "everi": [7, 9], "imf": [7, 8, 9], "f": [7, 8, 9, 10], "temp_directori": [7, 8, 9], "cache_dir": 7, "test": [7, 8], "dir_cache_test": 7, "dir": [7, 9], "ones": 7, "pure": 7, "delet": 7, "finish": [7, 8], "otherwis": 7, "know": [7, 8, 9, 10], "anew": 7, "sub_cache_path": 7, "subpath1": 7, "sub_cache_dir": 7, "subdir1": 7, "though": [7, 9], "most": [7, 8], "refer": 7, "design": [7, 8], "flexibl": 7, "decid": 7, "equival": 7, "subpath2": 7, "subpath": [7, 8], "subdir2": 7, "subdir": 7, "It": [7, 8], "seem": [7, 9], "unnecessari": 7, "defer": 7, "child": 7, "handi": 7, "caller": 7, "care": 7, "def": [7, 8, 9], "im": [7, 8, 9, 10], "cache_path": [7, 8, 9], "im2": 7, "plus_on": 7, "im3": 7, "times_thre": 7, "input_im": 7, "second": [7, 9], "cacherootdirecotri": 7, "_": 7, "There": [7, 8], "noth": [7, 8], "fanci": 7, "happen": [7, 9], "quit": 7, "simpl": [7, 8, 9], "place": [7, 8, 10], "were": 7, "manual": 7, "dure": 7, "re": [7, 9], "chang": [7, 8, 9], "again": [7, 8], "recomput": 7, "them": [7, 8, 9], "receiv": 7, "bring": 7, "calle": 7, "separ": [7, 8, 9], "duplic": 7, "twice": 7, "speedup": 7, "readabl": 7, "flat": [7, 8], "scheme": 7, "suitabl": [7, 8], "back": [7, 8, 9], "memori": [7, 9], "slower": 7, "usual": [7, 9], "big": 7, "lightsheet": [8, 9], "microscopi": 8, "mous": [8, 9], "brain": 8, "produc": [8, 9], "hundr": 8, "gb": 8, "necessari": 8, "trackabl": 8, "choos": 8, "project": 8, "research": 8, "autom": 8, "visibl": 8, "give": [8, 9], "accur": 8, "incom": 8, "abl": 8, "quickli": 8, "On": 8, "consist": 8, "dataset": 8, "larger": 8, "hard": 8, "ten": 8, "minut": 8, "hour": 8, "rerun": 8, "seg_process": [8, 9, 10], "u": 8, "consid": 8, "3d": 8, "cell_count": 8, "block3d": 8, "mark": 8, "inst": 8, "instance_segment": 8, "cell_cnt": 8, "count_inst": 8, "bug": 8, "unexpectedli": 8, "problem": [8, 9], "don": 8, "three": 8, "did": 8, "reason": 8, "ideal": 8, "costli": 8, "integr": 8, "cvpl": 8, "particular": 8, "By": 8, "easier": 8, "now": [8, 9, 10], "build": 8, "break": 8, "IN": [8, 9], "cc": 8, "min": 8, "max": 8, "choic": 8, "One": 8, "rest": [8, 9], "background": 8, "anoth": 8, "train": 8, "machin": 8, "learn": [8, 10], "connect": 8, "watersh": 8, "finner": 8, "perhap": 8, "seper": 8, "best": 8, "four": 8, "reus": 8, "variat": 8, "model_predict": 8, "direct_inst_segment": 8, "watershed_inst_segment": 8, "cell_cnt_from_inst": 8, "go": [8, 10], "actual": 8, "recommend": 8, "although": 8, "argu": 8, "oop": 8, "mean": [8, 9], "set_tmpdir": 8, "close": [8, 9], "tmpdir": 8, "examplesegprocess": 8, "async": 8, "makedir": [8, 9], "compute_result": 8, "while": 8, "await": 8, "lambda": 8, "ndisplai": [8, 9], "4096": 8, "chunksiz": 8, "els": 8, "root_dir": 8, "flatter": 8, "fast": 8, "cross": 8, "zoom": 8, "boilerpl": 8, "setup": [8, 10], "__name__": [8, 9], "__main__": [8, 9], "main": [8, 9], "worker": [8, 9], "config": [8, 9], "temporary_directori": [8, 9], "threads_per_work": [8, 9], "12": [8, 9], "n_worker": [8, 9], "load_im": 8, "cell_count_cach": 8, "At": 8, "through": 8, "__init__": 8, "relat": 8, "faster": 8, "configur": 9, "util": 9, "brief": 9, "descript": 9, "multithread": 9, "fit": 9, "written": 9, "scratch": 9, "enough": 9, "quickstart": 9, "post": 9, "initi": 9, "modifi": 9, "simplest": 9, "guid": 9, "TO": 9, "FOR": 9, "6": 9, "item": 9, "9": 9, "line": 9, "ensur": 9, "execut": 9, "creation": 9, "spawn": 9, "exactli": 9, "top": [9, 10], "guard": 9, "statement": 9, "present": 9, "lead": 9, "infinit": 9, "loop": 9, "complic": 9, "stem": 9, "add_ome_zarr_array_from_path": 9, "fetch": 9, "drag": 9, "navig": 9, "across": 9, "speed": 9, "slow": 9, "lag": 9, "solut": 9, "solv": 9, "too": 9, "resourc": 9, "freed": 9, "had": 9, "right": 9, "echo": 9, "stdout": 9, "stderr": 9, "logfil": 9, "accident": 9, "dprint": 9, "logfile_stdout": 9, "log_stdout": 9, "w": 9, "logfile_stderr": 9, "log_stderr": 9, "sy": 9, "multioutputstream": 9, "map_fn": 9, "access": 9, "later": 9, "fix": 9, "manag": 9, "assign": 9, "belong": 9, "act": 9, "model": 9, "some_cache_path": 9, "exists_ok": 9, "put": 9, "multi_step_comput": 9, "cache_at": 9, "computea": 9, "cache_path_b": 9, "computebfroma": 9, "sub_temp_directori": 9, "mult_step_cach": 9, "sort": 9, "complex": 9, "broken": 9, "smaller": 9, "simpler": 9, "amount": 9, "tear": 9, "bother": 9, "quick": 9, "local": [9, 10], "pretti": 9, "bare": 9, "bone": 9, "custom": 9, "qsetup": 9, "captur": 9, "c": 9, "programmingtool": 9, "computervis": 9, "robartsresearch": 9, "plcompon": 9, "client_arg": 9, "use_view": 9, "plc": 9, "AND": 9, "anyon": 9, "witht": 9, "pleas": 9, "let": [9, 10], "me": [9, 10], "tool": 10, "scipi": 10, "scikit": 10, "These": 10, "pip": 10, "depend": 10, "version": 10, "spimquant": 10, "conflict": 10, "instal": 10, "pyqt": 10, "pyside2": 10, "gettingstart": 10, "ome_zarr": 10, "quicker": 10, "motiv": 10, "microscop": 10, "atla": 10, "extend": 10, "overview": 10, "tip": 10, "bs_to_o": 10, "lc_to_cc": 10, "os_to_cc": 10, "os_to_lc": 10, "any_to_ani": 10}, "objects": {"cvpl_tools.im.algs.dask_label": [[0, 0, 1, "", "label"]], "cvpl_tools.im.fs": [[1, 1, 1, "", "CacheDirectory"], [1, 1, 1, "", "CachePath"], [1, 1, 1, "", "CacheRootDirectory"], [1, 0, 1, "", "display"], [1, 0, 1, "", "load"], [1, 0, 1, "", "save"]], "cvpl_tools.im.fs.CacheDirectory": [[1, 2, 1, "", "cache"], [1, 2, 1, "", "cache_im"], [1, 2, 1, "", "cache_subdir"], [1, 2, 1, "", "cache_subpath"], [1, 2, 1, "", "children_from_path"], [1, 2, 1, "", "remove_tmp"]], "cvpl_tools.im.fs.CachePath": [[1, 3, 1, "", "abs_path"], [1, 3, 1, "", "filename"], [1, 2, 1, "", "filename_form_meta"], [1, 3, 1, "", "is_dir"], [1, 2, 1, "", "meta_from_filename"], [1, 3, 1, "", "rel_path"], [1, 3, 1, "", "url"]], "cvpl_tools.im.ndblock": [[3, 1, 1, "", "NDBlock"], [3, 1, 1, "", "ReprFormat"]], "cvpl_tools.im.ndblock.NDBlock": [[3, 2, 1, "", "as_dask_array"], [3, 2, 1, "", "get_chunksize"], [3, 2, 1, "", "is_numpy"], [3, 2, 1, "", "load"], [3, 2, 1, "", "map_ndblocks"], [3, 2, 1, "", "persist"], [3, 2, 1, "", "reduce"], [3, 2, 1, "", "save"], [3, 2, 1, "", "select_columns"], [3, 2, 1, "", "sum"], [3, 2, 1, "", "to_dask_array"], [3, 2, 1, "", "to_dict_block_index_slices"], [3, 2, 1, "", "to_numpy_array"]], "cvpl_tools.im.process.any_to_any": [[5, 1, 1, "", "DownsamplingByIntFactor"], [5, 1, 1, "", "UpsamplingByIntFactor"]], "cvpl_tools.im.process.any_to_any.DownsamplingByIntFactor": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor": [[5, 2, 1, "", "forward"], [5, 2, 1, "", "np_forward"]], "cvpl_tools.im.process.bs_to_os": [[5, 1, 1, "", "DirectBSToOS"], [5, 1, 1, "", "Watershed3SizesBSToOS"]], "cvpl_tools.im.process.bs_to_os.DirectBSToOS": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.process.lc_to_cc": [[5, 1, 1, "", "CountLCBySize"], [5, 1, 1, "", "CountLCEdgePenalized"]], "cvpl_tools.im.process.lc_to_cc.CountLCBySize": [[5, 2, 1, "", "cc_list"], [5, 2, 1, "", "forward"]], "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized": [[5, 2, 1, "", "cc_list"], [5, 2, 1, "", "forward"], [5, 2, 1, "", "np_features"]], "cvpl_tools.im.process.os_to_cc": [[5, 1, 1, "", "CountOSBySize"]], "cvpl_tools.im.process.os_to_cc.CountOSBySize": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.process.os_to_lc": [[5, 1, 1, "", "DirectOSToLC"]], "cvpl_tools.im.process.os_to_lc.DirectOSToLC": [[5, 2, 1, "", "aggregate_by_id"], [5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process": [[5, 1, 1, "", "BSPredictor"], [5, 1, 1, "", "BinaryAndCentroidListToInstance"], [5, 1, 1, "", "BlobDog"], [5, 1, 1, "", "BlockToBlockProcess"], [5, 1, 1, "", "GaussianBlur"], [5, 1, 1, "", "SegProcess"], [5, 1, 1, "", "SimpleThreshold"], [5, 1, 1, "", "SumScaledIntensity"], [5, 0, 1, "", "lc_interpretable_napari"]], "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance": [[5, 2, 1, "", "bacl_forward"], [5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.BlobDog": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.BlockToBlockProcess": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.SegProcess": [[5, 2, 1, "", "forward"]], "cvpl_tools.im.seg_process.SumScaledIntensity": [[5, 2, 1, "", "forward"]], "cvpl_tools.ome_zarr.io": [[4, 0, 1, "", "load_dask_array_from_path"], [4, 0, 1, "", "load_zarr_group_from_path"], [4, 0, 1, "", "write_ome_zarr_image"]]}, "objtypes": {"0": "py:function", "1": "py:class", "2": "py:method", "3": "py:property"}, "objnames": {"0": ["py", "function", "Python function"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "property", "Python property"]}, "titleterms": {"cvpl_tool": [0, 1, 2, 3, 4, 5, 10], "im": [0, 1, 3, 5], "alg": 0, "f": 1, "py": [1, 2, 3, 4, 5], "ome_zarr": [2, 4, 6], "napari": 2, "add": 2, "ndblock": 3, "io": 4, "seg_process": 5, "bs_to_o": 5, "lc_to_cc": 5, "os_to_cc": 5, "os_to_lc": 5, "any_to_ani": 5, "view": 6, "om": 6, "zarr": 6, "file": [6, 7], "read": 6, "write": 6, "specifi": 6, "slice": 6, "path": 6, "result": 7, "cach": 7, "overview": 7, "cacherootdirectori": 7, "cachedirectori": [7, 9], "cachepoint": 7, "find": 7, "tip": 7, "segment": 8, "pipelin": 8, "motiv": 8, "microscop": 8, "cell": 8, "count": 8, "atla": 8, "map": 8, "object": 8, "The": 8, "segprocess": 8, "class": 8, "extend": 8, "run": 8, "set": 9, "up": 9, "script": 9, "dask": 9, "cluster": 9, "temporari": 9, "directori": 9, "log": 9, "setup": 9, "A": 9, "quicker": 9, "introduct": 10, "document": 10, "content": 10, "api": 10, "refer": 10}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 58}, "alltitles": {"cvpl_tools/im/algs": [[0, "cvpl-tools-im-algs"]], "cvpl_tools/im/fs.py": [[1, "cvpl-tools-im-fs-py"]], "cvpl_tools/ome_zarr/napari/add.py": [[2, "cvpl-tools-ome-zarr-napari-add-py"]], "cvpl_tools/im/ndblock.py": [[3, "cvpl-tools-im-ndblock-py"]], "cvpl_tools/ome_zarr/io.py": [[4, "cvpl-tools-ome-zarr-io-py"]], "cvpl_tools/im/seg_process.py": [[5, "cvpl-tools-im-seg-process-py"]], "bs_to_os": [[5, "bs-to-os"]], "lc_to_cc": [[5, "lc-to-cc"]], "os_to_cc": [[5, "os-to-cc"]], "os_to_lc": [[5, "os-to-lc"]], "any_to_any": [[5, "any-to-any"]], "OME_ZARR": [[6, "ome-zarr"]], "Viewing of ome zarr file": [[6, "viewing-of-ome-zarr-file"]], "Reading and Writing ome zarr files": [[6, "reading-and-writing-ome-zarr-files"]], "Specifying slices in path": [[6, "specifying-slices-in-path"]], "Result Caching": [[7, "result-caching"]], "Overview": [[7, "overview"]], "CacheRootDirectory": [[7, "cacherootdirectory"]], "CacheDirectory": [[7, "cachedirectory"], [9, "cachedirectory"]], "CachePointer": [[7, "cachepointer"]], "Finding Cached Files": [[7, "finding-cached-files"]], "Tips": [[7, "tips"]], "Segmentation Pipeline": [[8, "segmentation-pipeline"]], "Motivation: Microscope, Cell Counting, Atlas map and Object Segmentation": [[8, "motivation-microscope-cell-counting-atlas-map-and-object-segmentation"]], "The SegProcess Class": [[8, "the-segprocess-class"]], "Extending the Pipeline": [[8, "extending-the-pipeline"]], "Running the Pipeline": [[8, "running-the-pipeline"]], "Setting Up the Script": [[9, "setting-up-the-script"]], "Dask Cluster and temporary directory": [[9, "dask-cluster-and-temporary-directory"]], "Dask Logging Setup": [[9, "dask-logging-setup"]], "A Quicker Setup": [[9, "a-quicker-setup"]], "Introduction - cvpl_tools documentation": [[10, "introduction-cvpl-tools-documentation"]], "Contents:": [[10, null]], "API Reference": [[10, null]]}, "indexentries": {"label() (in module cvpl_tools.im.algs.dask_label)": [[0, "cvpl_tools.im.algs.dask_label.label"]], "cachedirectory (class in cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.CacheDirectory"]], "cachepath (class in cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.CachePath"]], "cacherootdirectory (class in cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.CacheRootDirectory"]], "abs_path (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.abs_path"]], "cache() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache"]], "cache_im() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache_im"]], "cache_subdir() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache_subdir"]], "cache_subpath() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.cache_subpath"]], "children_from_path() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.children_from_path"]], "display() (in module cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.display"]], "filename (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.filename"]], "filename_form_meta() (cvpl_tools.im.fs.cachepath static method)": [[1, "cvpl_tools.im.fs.CachePath.filename_form_meta"]], "is_dir (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.is_dir"]], "load() (in module cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.load"]], "meta_from_filename() (cvpl_tools.im.fs.cachepath static method)": [[1, "cvpl_tools.im.fs.CachePath.meta_from_filename"]], "rel_path (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.rel_path"]], "remove_tmp() (cvpl_tools.im.fs.cachedirectory method)": [[1, "cvpl_tools.im.fs.CacheDirectory.remove_tmp"]], "save() (in module cvpl_tools.im.fs)": [[1, "cvpl_tools.im.fs.save"]], "url (cvpl_tools.im.fs.cachepath property)": [[1, "cvpl_tools.im.fs.CachePath.url"]], "ndblock (class in cvpl_tools.im.ndblock)": [[3, "cvpl_tools.im.ndblock.NDBlock"]], "reprformat (class in cvpl_tools.im.ndblock)": [[3, "cvpl_tools.im.ndblock.ReprFormat"]], "as_dask_array() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.as_dask_array"]], "get_chunksize() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.get_chunksize"]], "is_numpy() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.is_numpy"]], "load() (cvpl_tools.im.ndblock.ndblock static method)": [[3, "cvpl_tools.im.ndblock.NDBlock.load"]], "map_ndblocks() (cvpl_tools.im.ndblock.ndblock static method)": [[3, "cvpl_tools.im.ndblock.NDBlock.map_ndblocks"]], "persist() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.persist"]], "reduce() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.reduce"]], "save() (cvpl_tools.im.ndblock.ndblock static method)": [[3, "cvpl_tools.im.ndblock.NDBlock.save"]], "select_columns() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.select_columns"]], "sum() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.sum"]], "to_dask_array() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.to_dask_array"]], "to_dict_block_index_slices() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.to_dict_block_index_slices"]], "to_numpy_array() (cvpl_tools.im.ndblock.ndblock method)": [[3, "cvpl_tools.im.ndblock.NDBlock.to_numpy_array"]], "load_dask_array_from_path() (in module cvpl_tools.ome_zarr.io)": [[4, "cvpl_tools.ome_zarr.io.load_dask_array_from_path"]], "load_zarr_group_from_path() (in module cvpl_tools.ome_zarr.io)": [[4, "cvpl_tools.ome_zarr.io.load_zarr_group_from_path"]], "write_ome_zarr_image() (in module cvpl_tools.ome_zarr.io)": [[4, "cvpl_tools.ome_zarr.io.write_ome_zarr_image"]], "bspredictor (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BSPredictor"]], "binaryandcentroidlisttoinstance (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance"]], "blobdog (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BlobDog"]], "blocktoblockprocess (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.BlockToBlockProcess"]], "countlcbysize (class in cvpl_tools.im.process.lc_to_cc)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCBySize"]], "countlcedgepenalized (class in cvpl_tools.im.process.lc_to_cc)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized"]], "countosbysize (class in cvpl_tools.im.process.os_to_cc)": [[5, "cvpl_tools.im.process.os_to_cc.CountOSBySize"]], "directbstoos (class in cvpl_tools.im.process.bs_to_os)": [[5, "cvpl_tools.im.process.bs_to_os.DirectBSToOS"]], "directostolc (class in cvpl_tools.im.process.os_to_lc)": [[5, "cvpl_tools.im.process.os_to_lc.DirectOSToLC"]], "downsamplingbyintfactor (class in cvpl_tools.im.process.any_to_any)": [[5, "cvpl_tools.im.process.any_to_any.DownsamplingByIntFactor"]], "gaussianblur (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.GaussianBlur"]], "segprocess (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.SegProcess"]], "simplethreshold (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.SimpleThreshold"]], "sumscaledintensity (class in cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.SumScaledIntensity"]], "upsamplingbyintfactor (class in cvpl_tools.im.process.any_to_any)": [[5, "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor"]], "watershed3sizesbstoos (class in cvpl_tools.im.process.bs_to_os)": [[5, "cvpl_tools.im.process.bs_to_os.Watershed3SizesBSToOS"]], "aggregate_by_id() (cvpl_tools.im.process.os_to_lc.directostolc method)": [[5, "cvpl_tools.im.process.os_to_lc.DirectOSToLC.aggregate_by_id"]], "bacl_forward() (cvpl_tools.im.seg_process.binaryandcentroidlisttoinstance method)": [[5, "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance.bacl_forward"]], "cc_list() (cvpl_tools.im.process.lc_to_cc.countlcbysize method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCBySize.cc_list"]], "cc_list() (cvpl_tools.im.process.lc_to_cc.countlcedgepenalized method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized.cc_list"]], "forward() (cvpl_tools.im.process.any_to_any.downsamplingbyintfactor method)": [[5, "cvpl_tools.im.process.any_to_any.DownsamplingByIntFactor.forward"]], "forward() (cvpl_tools.im.process.any_to_any.upsamplingbyintfactor method)": [[5, "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor.forward"]], "forward() (cvpl_tools.im.process.bs_to_os.directbstoos method)": [[5, "cvpl_tools.im.process.bs_to_os.DirectBSToOS.forward"]], "forward() (cvpl_tools.im.process.lc_to_cc.countlcbysize method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCBySize.forward"]], "forward() (cvpl_tools.im.process.lc_to_cc.countlcedgepenalized method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized.forward"]], "forward() (cvpl_tools.im.process.os_to_cc.countosbysize method)": [[5, "cvpl_tools.im.process.os_to_cc.CountOSBySize.forward"]], "forward() (cvpl_tools.im.process.os_to_lc.directostolc method)": [[5, "cvpl_tools.im.process.os_to_lc.DirectOSToLC.forward"]], "forward() (cvpl_tools.im.seg_process.binaryandcentroidlisttoinstance method)": [[5, "cvpl_tools.im.seg_process.BinaryAndCentroidListToInstance.forward"]], "forward() (cvpl_tools.im.seg_process.blobdog method)": [[5, "cvpl_tools.im.seg_process.BlobDog.forward"]], "forward() (cvpl_tools.im.seg_process.blocktoblockprocess method)": [[5, "cvpl_tools.im.seg_process.BlockToBlockProcess.forward"]], "forward() (cvpl_tools.im.seg_process.segprocess method)": [[5, "cvpl_tools.im.seg_process.SegProcess.forward"]], "forward() (cvpl_tools.im.seg_process.sumscaledintensity method)": [[5, "cvpl_tools.im.seg_process.SumScaledIntensity.forward"]], "lc_interpretable_napari() (in module cvpl_tools.im.seg_process)": [[5, "cvpl_tools.im.seg_process.lc_interpretable_napari"]], "np_features() (cvpl_tools.im.process.lc_to_cc.countlcedgepenalized method)": [[5, "cvpl_tools.im.process.lc_to_cc.CountLCEdgePenalized.np_features"]], "np_forward() (cvpl_tools.im.process.any_to_any.upsamplingbyintfactor method)": [[5, "cvpl_tools.im.process.any_to_any.UpsamplingByIntFactor.np_forward"]]}}) \ No newline at end of file