Computational pathology toolkit: tiling, feature extraction, and annotation for whole-slide images using foundation models
https://pypi.org/project/mussel-pathology/ ↗// readme
Mussel
This is a fork of Faisal Mahmood’s CLAM repository (GPL v3 license), with a handful of modifications:
- Added additional foundation models for generating embeddings
- Added zero-shot tissue-type annotation of tiles
- Added caching of images for inference right on the tiles (rather than on embeddings)
- Added microns per pixel (mpp) as parameter for tiling, supported regardless of native slide resolution
- Made usable for job submission (one script run, one slide)
- Removed modeling
- Updated the tiling algorithm
Installation
System requirements
Supported systems:
- Mac OS (x86 and ARM) (cpu only)
- Linux (x86) (cpu and gpu)
Supported slide formats
Mussel reads whole-slide images via tiffslide (backed by tifffile). The following formats are supported:
| Extension | Format | Scanner / Vendor | Tiffslide support |
|---|---|---|---|
.svs | Aperio SVS | Leica (Aperio) | ✅ Full |
.scn | Leica SCN | Leica | ✅ Full |
.tif / .tiff | TIFF, BigTIFF, OME-TIFF | Generic / various | ✅ Full |