A unified Python API for reading whole-slide images in digital pathology.
ASlide wraps OpenSlide-backed formats, vendor SDK-backed formats, and multiplex image containers behind one Slide(path) interface. It is designed for pathology preprocessing, tile extraction, viewer integration, and research workflows that need to handle multiple WSI vendors without rewriting reader code for every format.
- One
Slide(path)entry point across supported brightfield and multiplex formats - Runtime slide-family behavior for formats that can be brightfield or multiplex, such as QPTIFF and CZI
- DeepZoom DZI and tile generation through
DeepZoom - Biomarker-aware reads for multiplex containers and channel exports
- Registry-backed backend selection with capability metadata
- Runtime helpers for bundled native SDK libraries
pip install git+https://github.com/MrPeterJin/ASlide.gitFor optional readers:
pip install 'git+https://github.com/MrPeterJin/ASlide.git#egg=Aslide[bioformats]'
pip install 'git+https://github.com/MrPeterJin/ASlide.git#egg=Aslide[czi]'See Installation for platform requirements, optional extras, Java/Bio-Formats setup, and native-library runtime setup.
from Aslide import Slide
with Slide("sample.svs") as slide:
print(slide.dimensions)
region = slide.read_region((0, 0), 0, (512, 512))Multiplex slides use explicit biomarker reads:
from Aslide import Slide
with Slide("sample.qptiff") as slide:
biomarkers = slide.list_biomarkers()
region = slide.read_biomarker_region((0, 0), 0, (512, 512), biomarkers[0])ASlide supports OpenSlide formats such as SVS, NDPI, SCN, MRXS, VMS, and VMU; vendor/native formats such as KFB, SDPC/DYQX, TMAP, MDS/MDSX, TRON, iSyntax, DYJ, iBL, ZYP, and BIF; and multiplex formats such as QPTIFF, OME-like TIFF, HDF5/H5AD image-backed containers, IMS, MCD, CZI, and VSI.
The complete capability matrix is in Supported Formats.
- Documentation Home
- Installation
- Quick Start
- Supported Formats
- API Reference
- Brightfield Slides
- Multiplex Slides
- DeepZoom
- Backends and Registry
- Examples
- Troubleshooting
- Legal Notice and Acknowledgments
ASlide is distributed under the GPL 3.0 License. See Legal Notice and Acknowledgments and LICENSE for details.
- Author: MrPeterJin
- Email: petergamsing@gmail.com
- GitHub: @MrPeterJin