sddb.loader#

The training-data path: adapters that bring a cohort member onto the loader contract (sddb.contract).

A member is opened as a LoaderItem and runs through a chain of adapters, by default default_chain(): Rasterize (resample to the target mpp, cell labels), Centroids, TissueMask and StainNormalize. Each step stays lazy and chunked.

This subpackage imports squidpy, dask-image and pydantic and is not imported by import sddb; install it with the loader extra.