Skip to main content

A Python package for preprocessing pathology whole slide images.

Project description


Logo

PySlide

PySlide is a comprehensive Python package for preprocessing pathology whole slide images (WSIs). Built as a wrapper around OpenSlide, it provides powerful, user-friendly functionality for working with high-resolution pathology images, making it ideal for researchers and data scientists in the medical imaging domain.

Features

  • WSI Handling: Supports large pathology slides and other WSI formats via OpenSlide.
  • Efficient Preprocessing: Streamline tasks like cropping, resizing, and filtering at high performance.
  • Annotation Support: Easily integrate and visualize annotations.
  • Tiling and Patching: Flexible tiling options for patch extraction, ideal for deep learning workflows.
  • Image Metadata Extraction: Retrieve and manage metadata from WSIs.

Installation

Install PySlide via PyPI:

pip install PySlide

Quick Start

from pyslide import SlideProcessor

# Initialize the processor with your WSI file
processor = SlideProcessor("path/to/your/slide.svs")

# Example: Extract a tile
tile = processor.get_tile(x=1000, y=2000, width=256, height=256)

# Example: Preprocess a slide
processed_slide = processor.preprocess_slide(parameters)

License

Distributed under the MIT License

Contact

gregory.verghese@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyslyde-0.1.0.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PySlyde-0.1.0-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file pyslyde-0.1.0.tar.gz.

File metadata

  • Download URL: pyslyde-0.1.0.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyslyde-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7edd43d70985a3b5a7bda5c12aaadf34f809f4e7c28f678a4ad2ceaf4c921f18
MD5 84805cbd271c093393771e50383607af
BLAKE2b-256 fcf976e205591c497f2828cab388ef17a0dc28d37851288c2bd22cfd031637ab

See more details on using hashes here.

File details

Details for the file PySlyde-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: PySlyde-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for PySlyde-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60f9f624845b82136849730acfb0652e642b719a16eaef6fe1c3a025d948edfc
MD5 68e08ae58797c71244070ed8f7d86a5f
BLAKE2b-256 beea5d5dc0965d450a1dc8c19d05624c56af9f1135c5cba170a307d655aa149b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page