This release is a pre-release and may not be stable for production use.
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.
Metadata
Release files for slidl 0.1.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slidl-0.1.dev4.tar.gz | 27.2 MB | Without provenance | Details for slidl-0.1.dev4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slidl-0.1.dev4-py3-none-any.whl | Python 3 | none | any | Details for slidl-0.1.dev4-py3-none-any.whl |
Total release size: 53.7 MB
Release files / slidl-0.1.dev4.tar.gz
| Download URL | slidl-0.1.dev4.tar.gz |
|---|---|
| Size | 27.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
158130892662fdd223a34a81ada2cc1eca0ee09a6f42c768955a40970035f717
|
|
BLAKE2b-256 checksum How to use checksums |
2f664bea7bf7f75a87bffbf631746e2c65abed65e0aa5b7497147fa47f273c5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / slidl-0.1.dev4-py3-none-any.whl
| Download URL | slidl-0.1.dev4-py3-none-any.whl |
|---|---|
| Size | 26.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd2c59cdb8934b796763f76615dde45f7a73c467cdb9deb790fd3bf1ed7e7f35
|
|
BLAKE2b-256 checksum How to use checksums |
2b7e593b5ed4ca956cf82f72d64b9e5bdbfbf93f42301b09b8afac051a59bc6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for slidl 0.1.dev4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.