histolab: A Python library for reproducible Digital Pathology preprocessing with automated testing

Alessia Marcolini, Nicole Bussola, Ernesto Arbitrio, Mohamed Amgad, Giuseppe Jurman, Cesare Furlanello

SoftwareX · 2022 · 32 citations · 25 references

DOIFull text

Open access

Concepts

TL;DR

Deep learning is increasingly used in digital pathology, yet most workflows rely on custom preprocessing code that is error‑prone and difficult to review or test. This work introduces histolab, a Python package that standardizes whole‑slide image preprocessing in a reproducible setting with automated testing. histolab offers modular, extensible functions for building tile datasets, applying augmentation, morphological operations, tile scoring, and stain normalization, and integrates with OpenSlide and large_image backends while employing multiplatform automated testing and continuous integration to ensure robustness.

Abstract

Deep Learning (DL) is rapidly permeating the field of Digital Pathology with algorithms successfully applied to ease daily clinical practice and to discover novel associations. However, most DL workflows for Digital Pathology include custom code for data preprocessing, usually tailored to data and tasks of interest, resulting in software that is error-prone and hard to understand, peer-review, and test. In this work, we introduce histolab, a Python package designed to standardize the preprocessing of Whole Slide Images in a reproducible environment, supported by automated testing. In addition, the package provides functions for building datasets of WSI tiles, including augmentation and morphological operators, a tile scoring framework, and stain normalization methods. histolab is modular, extensible, and easily integrable into DL pipelines, with support of the OpenSlide and large_image backends. To guarantee robustness, histolab embraces software engineering best practices such as multiplatform automated testing and Continuous Integration.

References

25