Skip to main content

SliDL: a Python library of pre- and post-processing tools for applying deep learning to whole-slide images

Project description

SliDL: a Python library of pre- and post-processing tools for applying deep learning to whole-slide images

SliDL is a Python library for performing deep learning image analysis on whole-slide images (WSIs), including deep tissue, artefact, and background filtering, tile extraction, model inference, model evaluation and more.

Please see our tutorial repository to learn how to use SliDL on an example problem from start to finish.

Installing SliDL and its depedencies

Install SliDL by cloning its repository:

git clone https://github.com/markowetzlab/slidl

SliDL is best run inside an Anaconda environment. Once you have installed Anaconda, you can create slidl-env, a conda environment containing all of SliDL's dependencies, then activate that environment. Make sure to adjust the path to your local path to the slidl repository:

conda env create -f /path/to/slidl/slidl-environment.yml
conda activate slidl-env

Note that slidl-environment.yml installs Python version 3.7, PyTorch version 1.4, Torchvision version 0.5, and CUDA version 10.0. Stable versions above these should also work as long as the versions are cross-compatible. Be sure that the CUDA version matches the version installed on your GPU; if not, either update your GPU's CUDA or change the cudatoolkit line of slidl-environment.yml to match your GPU's version before creating slidl-env.

Some users have run into an error message saying that something from libvips is missing when SliDL tries to import pyvips. This is because on some operating systems, the pip install of pyvips performed in the conda env create command leads to a flawed pyvips build. To solve this issue, also install pyvips using conda in slidl-env:

conda install -c conda-forge pyvips

For users who don't wish to use conda, SliDL can also be installed via pip. To do so, navigate to to the slidl directory containing setup.py, and run the following command:

pip install -e .

Learning to use SliDL

See our extensive tutorial here.

Documentation

The complete documentation for SliDL including its API reference can be found here.

Disclaimer

Note that this is prerelease software. Please use accordingly.

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

slidl-0.1.dev4.tar.gz (27.2 MB view details)

Uploaded Source

Built Distribution

slidl-0.1.dev4-py3-none-any.whl (26.5 MB view details)

Uploaded Python 3

File details

Details for the file slidl-0.1.dev4.tar.gz.

File metadata

  • Download URL: slidl-0.1.dev4.tar.gz
  • Upload date:
  • Size: 27.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.1 importlib-metadata/4.5.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.10

File hashes

Hashes for slidl-0.1.dev4.tar.gz
Algorithm Hash digest
SHA256 158130892662fdd223a34a81ada2cc1eca0ee09a6f42c768955a40970035f717
MD5 2d32631b97c54e883031f221a22aaefb
BLAKE2b-256 2f664bea7bf7f75a87bffbf631746e2c65abed65e0aa5b7497147fa47f273c5f

See more details on using hashes here.

File details

Details for the file slidl-0.1.dev4-py3-none-any.whl.

File metadata

  • Download URL: slidl-0.1.dev4-py3-none-any.whl
  • Upload date:
  • Size: 26.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.1 importlib-metadata/4.5.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.10

File hashes

Hashes for slidl-0.1.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd2c59cdb8934b796763f76615dde45f7a73c467cdb9deb790fd3bf1ed7e7f35
MD5 bb4ab00e661843c9347bafecb6dc47d5
BLAKE2b-256 2b7e593b5ed4ca956cf82f72d64b9e5bdbfbf93f42301b09b8afac051a59bc6d

See more details on using hashes here.

Supported by

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