This is a Python toolkit for working with whole slide images in digital pathology, the kind of gigapixel H&E or IHC stained tissue scans you get from microscopy. It handles the annoying parts: loading various WSI formats (SVS, TIFF, NDPI), automatically detecting tissue regions versus background, and extracting tiles in sensible ways (random sampling, grid coverage, or scored by nuclei density). The tile extraction strategies are well thought out. RandomTiler for quick sampling, GridTiler for full coverage, ScoreTiler when you want the most informative regions based on cellular content. If you're building computational pathology datasets or preprocessing slides for deep learning pipelines, this handles the boilerplate so you can focus on the actual analysis.

skills.sh installs
217
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill histolab --agent claude-code

Installs into .claude/skills of the current project.

Files

Histolab

Overview

Histolab is a Python library for processing whole slide images (WSI) in digital pathology. It automates tissue detection, extracts informative tiles from gigapixel images, and prepares datasets for deep learning pipelines. The library handles multiple WSI formats, implements sophisticated tissue segmentation, and provides flexible tile extraction strategies.

Installation

uv pip install histolab

Quick Start

Basic workflow for extracting tiles from a whole slide image:

from histolab.slide import Slide
from histolab.tiler import RandomTiler

# Load slide
slide = Slide("slide.svs", processed_path="output/")

# Configure tiler
tiler = RandomTiler(
    tile_size=(512, 512),
    n_tiles=100,
    level=0,
    seed=42
)

# Preview tile locations
tiler.locate_tiles(slide, n_tiles=20)

# Extract tiles
tiler.extract(slide)

Core Capabilities

1. Slide Management

Load, inspect, and work with whole slide images in various formats.

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Office & Documents
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1manojbajaj95 avatarreferral-programmanojbajaj95/claude-gtm-pluginWhen the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy. Also use when the user mentions 'referral,214skills.sh installs
2markdown-viewer avatarfloor-planmarkdown-viewer/skillsCreate architectural floor plans and interior layouts using drawio XML format with building-standard symbols. Best for office layouts, home floor plans, evacuat213skills.sh installs
3davila7 avataretetoolkitdavila7/claude-code-templatesPhylogenetic tree toolkit (ETE). Tree manipulation (Newick/NHX), evolutionary event detection, orthology/paralogy, NCBI taxonomy, visualization (PDF/SVG), for p212skills.sh installs
4nexu-io avatarreplit-decknexu-io/open-designSingle-file horizontal-swipe HTML deck in the style of Replit Slides's landing-page template gallery. Eight distinct themes (helix, holm, vance, bevel, world-da209skills.sh installs
5csfuwwc avatarvideo-downloadcsfuwwc/md-skillsCanonical social-video download skill for all supported platforms and table workflows. Always use this skill as the single download entrypoint when handling WeC208skills.sh installs
6tw93 avatarwazatw93/wazaEngineering skills for Claude: think (architecture), design (UI), check (code review), hunt (debugging), write (prose), learn (research), read (URL/PDF fetch), 208skills.sh installs