Skip to main content

A plugin to lazily load multiscale whole-slide images with openslide and dask.

Project description

napari-lazy-openslide

License PyPI Python Version tests

A plugin to lazily load multiscale whole-slide images with openslide and dask.


This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

Installation

You can install napari-lazy-openslide via pip:

pip install napari-lazy-openslide

Usage

This plugin tries to be conservative with what files it will attempt to provide a reader. It will only attempt to read .tif and .tiff files that openslide will open and are detected as multiscale (openslide.OpenSlide(file).level_count > 1). Under the hood, napari-lazy-openslide wraps the openslide reader with a valid zarr.Store where each each pyramidal level is exposed as a separate zarr.Array with shape (y,x,4).

The plugin is experimental and has only been tested with CAMELYON16 and CAMELYON17 datasets, which can be downloaded here.

$ napari tumor_004.tif

Interactive deep zoom of whole-slide image

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-lazy-openslide" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

napari-lazy-openslide-0.0.3.tar.gz (10.7 MB view details)

Uploaded Source

Built Distribution

napari_lazy_openslide-0.0.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file napari-lazy-openslide-0.0.3.tar.gz.

File metadata

  • Download URL: napari-lazy-openslide-0.0.3.tar.gz
  • Upload date:
  • Size: 10.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for napari-lazy-openslide-0.0.3.tar.gz
Algorithm Hash digest
SHA256 38172c9648f73fdb6952921a2c016a33693570b0f9be01686800628cc1d17ab4
MD5 f36d96473d5c1bf0f5d607f25dbeebde
BLAKE2b-256 f4b45a48a721ff17f5636cf678360817a4b7aafb21019ead6ff253bb69c5f41f

See more details on using hashes here.

File details

Details for the file napari_lazy_openslide-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: napari_lazy_openslide-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for napari_lazy_openslide-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d84c471e4d368fc080b5d95f97ca0695dcf73bbe2954c9353057addaba5f9cb
MD5 49158a27ab49139398a9bdaa5dbb0b0c
BLAKE2b-256 5a8d21d0211b95b01f350110ecc757f3e6fcfa66fe05085cb692eaa9e57f8a4a

See more details on using hashes here.

Supported by

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