A Python toolkit for Histopathology Image Analysis
Project description
HistomicsTK is a Python package for the analysis of digital pathology images. It can function as a stand-alone library, or as a Digital Slide Archive plugin that allows users to invoke image analysis jobs through HistomicsUI. The functionality offered by HistomicsTK can be extended using slicer cli web which allows developers to integrate their image analysis algorithms into DSA for dissemination through HistomicsUI.
Whole-slide imaging captures the histologic details of tissues in large multiresolution images. Improvements in imaging technology, decreases in storage costs, and regulatory approval of digital pathology for primary diagnosis have resulted in an explosion of whole-slide imaging data. Digitization enables the application of computational image analysis and machine learning algorithms to characterize the contents of these images, and to understand the relationships between histology, clinical outcomes, and molecular data from genomic platforms. Compared to the related areas of radiology and genomics, open-source tools for the management, visualization, and analysis of digital pathology has lagged. To address this we have developed HistomicsTK in coordination with the Digital Slide Archive (DSA), a platform for managing and sharing digital pathology images in a centralized web-accessible server, and HistomicsUI, a specialized user interface for annotation and markup of whole-slide images and for running image analysis tools and for scalable visualizing of dense outputs from image analysis algorithms. HistomicsTK aims to serve the needs of both pathologists/biologists interested in using state-of-the-art algorithms to analyze their data, and algorithm researchers interested in developing new/improved algorithms and disseminate them for wider use by the community.
HistomicsTK can be used in two ways:
As a pure Python package: enables application of image analysis algorithms to data independent of the Digital Slide Archive (DSA). HistomicsTK provides a collection of fundamental algorithms for tasks such as color normalization, color deconvolution, nuclei segmentation, and feature extraction. Read more about these capabilities here: api-docs and examples for more information.
Installation instructions on Linux:
To install HistomicsTK using PyPI:
$ python -m pip install histomicstk --find-links https://girder.github.io/large_image_wheels
To install HistomicsTK from source:
$ git clone https://github.com/DigitalSlideArchive/HistomicsTK/ $ cd HistomicsTK/ $ python -m pip install setuptools-scm "Cython>=0.25.2" "scikit-build>=0.8.1" "cmake>=0.6.0" "numpy>=1.12.1" $ python -m pip install -e .
HistomicsTK uses the large_image library to read content from whole-slide and microscopy image formats. Depending on your exact system, installing the necessary libraries to support these formats can be complex. There are some non-official prebuilt libraries available for Linux that can be included as part of the installation by specifying pip install histomicstk --find-links https://girder.github.io/large_image_wheels. Note that if you previously installed HistomicsTK or large_image without these, you may need to add --force-reinstall --no-cache-dir to the pip install command to force it to use the find-links option.
The system version of various libraries are used if the --find-links option is not specified. You will need to use your package manager to install appropriate libraries (on Ubuntu, for instance, you’ll need libopenslide-dev and libtiff-dev).
To install from source on Windows:
1- Run the following:
$ pip install large-image $ pip install cmake $ git clone https://github.com/DigitalSlideArchive/HistomicsTK/ $ cd HistomicsTK/ $ python -m pip install setuptools-scm "Cython>=0.25.2" "scikit-build>=0.8.1" "cmake>=0.6.0" "numpy>=1.12.1"
2- Run pip install libtiff
3- Run pip install large-image-source-tiff to install typical tile sources. You may need other sources, which would require other libraries.
4- Install Visual Studio 15 2017 Community Version
5- Install C++ build tools. Under Tools > Get Tools and Features … > Desktop Development with C++, ensure that the first 8 boxes are checked.
6- Run this:
$ python -m pip install -e . $ pip install girder-client
To install from source on OSX:
Note: This needs to be confirmed and expanded by an OSX user. There are probably assumptions made about available libraries.
Use homebrew to install libtiff and openslide or other libraries depending on your desired tile sources.
Run:
$ python -m pip install histomicstk large-image-source-tiff large-image-source-openslide
As a image-processing task library for HistomicsUI and the Digital Slide Archive: This allows end users to apply containerized analysis modules/pipelines over the web. See the Digital Slide Archive for installation instructions.
Refer to our website for more information.
Previous Versions
The HistomicsTK repository used to contain almost all of the Digital Slide Archive and HistomicsUI, and now container primarily code for image analysis algorithms and processing of annotation data. The deployment and installation code and instructions for DSA have moved to the Digital Slide Archive repository. The user interface and annotation functionality has moved to the HistomicsUI repository.
The deployment and UI code will eventually be removed from the master branch of this repository; any new development on those topics should be done in those locations.
Funding
This work is funded by the NIH grant U24-CA194362-01.
See Also
DSA/HistomicsTK project website: Demos | Success stories
Source repositories: Digital Slide Archive | HistomicsUI | large_image | slicer_cli_web
Discussion: GitHub Discussion | Discourse forum
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for histomicstk-1.3.12.dev4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679a24c2c39ea5db95788ca12b2d14833e5cdf3bbeeb3736a7beef480fa1a8d9 |
|
MD5 | 7a7d9c96cd2f4bc0e624065116863228 |
|
BLAKE2b-256 | 7e1f6f9c443ea8761fe5621fed2e3f1ebff89de18e5bf6904ef154259496a924 |
Hashes for histomicstk-1.3.12.dev4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d161e514a737a3922fcaf132beac2e14810f52d817c99b64a2bc7876717ecd4a |
|
MD5 | 1ffe2b95d7cdebf165e9d6cecfff6202 |
|
BLAKE2b-256 | 933a657c8e2d9501022a29d24c24c1c999404b6153cb696c66364a86190b31f8 |
Hashes for histomicstk-1.3.12.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c128c56cd9d4a2775bfbeea0b2c89d6f1a8e79bacf126c67ed07ef264d233b |
|
MD5 | 582481823a882d221fe6df9edb4407ab |
|
BLAKE2b-256 | 39e6c77790ab72f0855748d3deb3428bce121996100f0101aae4a31f677ce41f |
Hashes for histomicstk-1.3.12.dev4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab252f60c86c5ad5d56d564761ab46b5fc24abf02843a997b442e756db83c9f1 |
|
MD5 | fb0a57773657a3ecf1958e93f2af042f |
|
BLAKE2b-256 | 05b5aecba2e692f090a07309e41fae3ad57725672085a09ae000479328f93e01 |
Hashes for histomicstk-1.3.12.dev4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da53d5b85f7e3fd41cdc283cf0ad93ea4f5c102cd2b8e50decc94cdea9b662e |
|
MD5 | 92a598bbb6e205649cdcdd757d6f1d15 |
|
BLAKE2b-256 | ab10317e0488aac484d195a4fe8530bbff95976bcf508b16dcfdff7a187ae580 |
Hashes for histomicstk-1.3.12.dev4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1278d46cf93f6d9bfd576ea0f7e8b72665c12278e047a9989e3046de5ce1681 |
|
MD5 | 6d9ddb4751fb238dab2e29e65bef033f |
|
BLAKE2b-256 | ab70568b165b3cd2c56e63c7b988d3754c922de8fba9aa54ff1a3831c317897f |
Hashes for histomicstk-1.3.12.dev4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7eb15b05514a7474611fd3892b2997dbb69f7b77ae90b40cd1bb2aad8e4ae82 |
|
MD5 | 564d17ea04b415f5559bf45314912076 |
|
BLAKE2b-256 | 80855bf77612ac4c76656c3ee202e771cab475b94c096014de2e0a3a08cc664f |
Hashes for histomicstk-1.3.12.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 479e545f2cc48aea7d70523162ac6b60ed014d00cea12675912463a82c7a7039 |
|
MD5 | a3b91ac6e6835fcd3ef317d5f9d6ae60 |
|
BLAKE2b-256 | bf7bd5a2536d50b837f9a019a968905e101dcfb359683823613cccf8ffd518c1 |
Hashes for histomicstk-1.3.12.dev4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36082357524f28ff91fac51bdd3c682bd57b0cc94cda82bf259d7431cc16a486 |
|
MD5 | 429b726c22e8e88c2856c6d109109acd |
|
BLAKE2b-256 | eece930333a3a3168bd2627ab59401bfa135e22ee421b677388df425f9f19adf |
Hashes for histomicstk-1.3.12.dev4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6e6c48c34980fbec8ca29e17173a1c2de243b0434c94151b88ad6b54953216 |
|
MD5 | bc3046b7dc696776cb6b6b00343c06ef |
|
BLAKE2b-256 | d866978c042deddca906608e2fb0761e8e5eadb4f0844b012a95330fccd203c8 |
Hashes for histomicstk-1.3.12.dev4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5629c652125b6ca623303b82ca510f8e715c3b9668246fe1c4776bc80c9b397b |
|
MD5 | 1484c313eb0bf31acc240c202486b333 |
|
BLAKE2b-256 | 1990fb8180cee7cf5587a937ed8082eed7d225b13b1055e67ccb09273fd75be1 |
Hashes for histomicstk-1.3.12.dev4-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0d133c61e9d08fbabee1ffae9c5fe883874dd0359a655a8873578589e65617 |
|
MD5 | c94c5cb4992fedbf0df739649326f43e |
|
BLAKE2b-256 | c3bed5d55323ae390e4eeef4ae6b7fdab91fa2ab9f6c74cfd05a46f256e33c3c |
Hashes for histomicstk-1.3.12.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 567dc23967d2b70607414c7e96ba83e8d8fe43e710a40a60235c2dec17639067 |
|
MD5 | dde164fb0d9df9fc3913bddb87197f10 |
|
BLAKE2b-256 | 1026e2462667e936e4eb7cdb8b6d890218f10efd604a4bac46f594a00fade061 |
Hashes for histomicstk-1.3.12.dev4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45432cb9829379fc9f2ea4ae1eaf0c893ecfe0c1f97ad791dec0218bb39e7c1e |
|
MD5 | 39e31f4131bcbbf95feca943bd9cce91 |
|
BLAKE2b-256 | daecf298c5193b092154832c362a8377370b77c4867e2d99021723818d7ec95b |
Hashes for histomicstk-1.3.12.dev4-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbc07cb92cfdba3ff6f9842e07be97775ea999c1720b5f8b379fad3b366c6d60 |
|
MD5 | 3718cd6b7d8a8833cf56f798b46a732c |
|
BLAKE2b-256 | 5c0a0cbd931e650c51306818e80a496b2bf513dd9ca4e95e0de79c4150781adc |
Hashes for histomicstk-1.3.12.dev4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3c63aeae9f118ca3af446b3c8a6961c0814178a7b0c7825fed3ccec3c74403 |
|
MD5 | bce2156074f289b7721429200fff27c8 |
|
BLAKE2b-256 | b0227bb1ba945b560ed73dab975d038912bd7d07c62163c273ac7d605c4992f9 |
Hashes for histomicstk-1.3.12.dev4-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428e76e5f54807536fb9798271af58169c2c1ed2208805b13a905fd92df21f1c |
|
MD5 | 0f16d092f4fc16118d00ed629f2d95c4 |
|
BLAKE2b-256 | f50d365f212e96af4807bbcb1e640549be1f1d86152f8e554d5453a5bd809d6f |
Hashes for histomicstk-1.3.12.dev4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc10ab8988ccdde7a79ca70d398cd0c0a1850dc6cda332d041b8e74f960616dd |
|
MD5 | c749341c59ecba28feca3bcb45160a88 |
|
BLAKE2b-256 | 934f3b9409a715df52f3f4e6f8f03f3ef8cd74972adc0390b312a5f17aadbedf |
Hashes for histomicstk-1.3.12.dev4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4dac86410ecfee05a4774e94d4e657e99eabfb4b1ba097dd36e25cef9452952 |
|
MD5 | 032c6167697eb06e8a51ea2b7bf9f6b3 |
|
BLAKE2b-256 | 153aca2f213310d0f9790c745478c7df1379d073280d2f2c15f67ae02c0f5054 |
Hashes for histomicstk-1.3.12.dev4-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53ca13abbf3ba056cba1cdb369dc92e18f272fa27bbda9af5bfaae7828d234dc |
|
MD5 | c2ba9637b733a17f2a9cd5783a2edd7e |
|
BLAKE2b-256 | eefe22098bef00f470bce9b21fecd087be669e7d54c47e2d347ac1af9a458225 |
Hashes for histomicstk-1.3.12.dev4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c937a823bc2375144d15c464db9c781a684e0fc52d0b264c09d5efe54f8773 |
|
MD5 | bd647f7b444e93a3ed5122aab2d41383 |
|
BLAKE2b-256 | 3552aa57588b8bd80b863cab1c8ad7dec2eb0a769bf9c693a1689afa01e3e7b0 |
Hashes for histomicstk-1.3.12.dev4-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 842196c6806abc40c4d5d0c7d9fe49d248da596ac91ec91090dc5d6fe263c67b |
|
MD5 | 2837381f18e2394f5502f5c99d86f939 |
|
BLAKE2b-256 | a492c4c0326590693b1f71a38ca00be8f88a7d5e56638edb302b3b01926ca795 |
Hashes for histomicstk-1.3.12.dev4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9f06b3c8291c60144bed80a5daa3d6f75c4656d7f656aa0922cab7c5cb13f6 |
|
MD5 | 0d2fe8999912c58e7ef1f9627439b807 |
|
BLAKE2b-256 | 7495029414cb59b1bef172e5b3dca704814d523dc4792c02a9527b7d3dd87820 |
Hashes for histomicstk-1.3.12.dev4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 166338f7fb642dfc0b78c177a8a8831826efe4e9bb4ae3bc3f837e3cfca30e59 |
|
MD5 | 4d3ea28d0cf74b27ec5cdddd989e27cd |
|
BLAKE2b-256 | aa8943655549877804badb145a89a78bdcaf4d09b37cc054260bae692827a3a8 |
Hashes for histomicstk-1.3.12.dev4-cp38-cp38-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ab143cbc85ef057a679d460c70a5a194efaba115028958064409d3b3a7214c0 |
|
MD5 | eed9521515475bc9014c34b22246a3fa |
|
BLAKE2b-256 | 9852d5fd4ececfec61c77a78c8145f1f954d6813a55d7e4e85dbcbecff42fdcb |