fusion_tools package

fusion_tools.handler module

fusion_tools.tileserver module

Base classes for tools

fusion_tools.asyncio_db_loop(method)

Decorator for checking that an event loop is present for handling asynchronous callse

Parameters:

method (None) – Function which has asynchronous process

fusion_tools.dataset module

Dataset sub-module for fusion-tools

class fusion_tools.dataset.ClassificationDataset(slides: list = [], annotations: list | dict | None = None, label_property: list | str | None = None, transforms: None | Callable = None, label_transforms: None | Callable = None, patch_size: list = [256, 256], patch_mode: str = 'bbox', patch_region: str | list | dict = 'all', spatial_filters: list | None = None, property_filters: list | None = None, use_structures: str | list = 'all', use_cache: bool = True, shuffle: bool = True, seed_val: int = 1701, verbose: bool = False, use_parallel: bool = True, n_jobs: int = 1)

Bases: object

export_configs(save_path: str)
gen_slide_patches()
get_next_image(idx: int)
make_image_and_label(bbox: list, slide_idx: int, features: list)
make_patch(bbox: list, slide_idx: int, annotations: GeoDataFrame)
plant_seed(seed_val)
process_annotations()
class fusion_tools.dataset.FUSIONDataset(slides: list = [], annotations: list | dict | None = None, image_transforms: Callable | None = None, target_transforms: Callable | None = None, patch_size: list = [256, 256], patch_mode: str = 'bbox', patch_region: str | list | dict = 'all', overlap: float | None = None, spatial_filters: list | None = None, property_filters: list | None = None, use_cache: bool = False, shuffle: bool = True, seed_val: int = 1701, verbose: bool = False, use_parallel: bool = True, n_jobs: int = 1)

Bases: object

find_tissue()
gen_slide_patches()
plant_seed(seed_val)
process_annotations()
class fusion_tools.dataset.SegmentationDataset(slides: list = [], annotations: list | dict | None = None, transforms: None | Callable = None, target_transforms: None | Callable = None, mask_key: dict | None = None, patch_size: list = [256, 256], patch_mode: str = 'bbox', patch_region: str | list | dict = 'all', spatial_filters: list | None = None, property_filters: list | None = None, use_structures: str | list = 'all', use_cache: bool = True, shuffle: bool = True, seed_val: int = 1701, verbose: bool = False, use_parallel: bool = True, n_jobs: int = 1)

Bases: object

export_configs(save_path: str)
find_tissue(slide_tile_source, slide_metadata)
gen_slide_patches()
get_next_image(idx: int)
make_image_and_mask(bbox: list, slide_idx: int, features: list)
make_patch(bbox: list, slide_idx: int, annotations: GeoDataFrame)
plant_seed(seed_val)
process_annotations()

fusion_tools.feature_extraction module