meerkat.cells package
Submodules
meerkat.cells.abstract module
meerkat.cells.spacy module
- class LazySpacyCell(text: str, nlp: spacy.language.Language, *args, **kwargs)[source]
Bases:
AbstractCell
meerkat.cells.volume module
- class MedicalVolumeCell(paths: Union[str, Path, PathLike, Sequence[Union[str, Path, PathLike]]], loader: Optional[Callable] = None, transform: Optional[Callable] = None, cache_metadata: bool = False, *args, **kwargs)[source]
Bases:
PathsMixin,AbstractCellInterface for loading medical volume data.
Examples
# Specify xray dicoms with default orientation
("SI", "AP"): >>> cell = MedicalVolumeCell(“/path/to/xray.dcm”, loader=DicomReader(group_by=None, default_ornt=(“SI”, “AP”))# Load multi-echo MRI volumes >>> cell = MedicalVolumeCell(“/path/to/mri/scan/dir”, loader=DicomReader(group_by=”EchoNumbers”))
- get(*args, cache_metadata: Optional[bool] = None, **kwargs)[source]
Get me the thing that this cell exists for.