utility functions

Defines several general purpose functions that are used throughout findmycells (findmycells.utils)

source

list_dir_no_hidden

 list_dir_no_hidden (path:Union[pathlib.PosixPath,pathlib.WindowsPath],
                     only_dirs:Optional[bool]=False,
                     only_files:Optional[bool]=False)

source

load_zstack_as_array_from_single_planes

 load_zstack_as_array_from_single_planes
                                          (path:Union[pathlib.PosixPath,pa
                                          thlib.WindowsPath], file_id:str,
                                          minx:Optional[int]=None,
                                          maxx:Optional[int]=None,
                                          miny:Optional[int]=None,
                                          maxy:Optional[int]=None)

source

unpad_x_y_dims_in_3d_array

 unpad_x_y_dims_in_3d_array (padded_3d_array:numpy.ndarray, pad_width:int)

source

get_polygon_from_instance_segmentation

 get_polygon_from_instance_segmentation (single_plane:numpy.ndarray,
                                         label_id:int)

source

download_sample_data

 download_sample_data
                       (destination_dir_path:Union[pathlib.PosixPath,pathl
                       ib.WindowsPath])

Test data for findmycells can be found here: https://zenodo.org/record/7655292#.Y_LI1R-ZNhE DOI: 10.5281/zenodo.7655292