A plugin to lazily load multiscale whole-slide images with openslide and dask.
Project description
napari-lazy-openslide
An experimental plugin to lazily load multiscale whole-slide tiff images with openslide and dask.
This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.
Installation
Step 1.) Make sure you have OpenSlide installed. Download instructions here.
Step 2.) 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.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
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
Built Distribution
File details
Details for the file napari-lazy-openslide-0.1.2.tar.gz
.
File metadata
- Download URL: napari-lazy-openslide-0.1.2.tar.gz
- Upload date:
- Size: 9.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c46b1e3507d1439aee7f971285260c93c742dcf0c9779a0a57e8f5c3ce6773 |
|
MD5 | e6393fb4d07e56bbc34593f151b7aeda |
|
BLAKE2b-256 | a98d7115ec10a32cd0742e45a891652c482bd24f2f5d26ef9b5328cb198721ca |
File details
Details for the file napari_lazy_openslide-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: napari_lazy_openslide-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebeb15038fd28641842d0e0bce717cee16f8ec457548145e1a5ce54a12d8ebe1 |
|
MD5 | 10f203c040619275b1d5c8dd8fca862d |
|
BLAKE2b-256 | 39569ea4a2ddbbd49f98a5049155144114efc5dc834d66c09c0247abb2e61dfd |