histox-contrib
Community-contributed GPL-3 extensions for HistoX.
This package provides additional deep learning tools for HistoX that are licensed under the GNU General Public License v3 (GPL-3). It is distributed separately from the main HistoX package to keep the core library free from GPL restrictions.
Based on slideflow-gpl by James Dolezal, adapted for HistoX.
Installation
pip install histox-contrib
Or install from source:
git clone https://github.com/你的用户名/histox-contrib.git
cd histox-contrib
pip install -e .
Note:
histoxmust be installed first.pip install histox
Features
| Module | Description |
|---|---|
| RetCCL | Pretrained feature extractor (RetCCL) |
| CTransPath | Pretrained feature extractor (CTransPath) |
| CLAM | Clustering-constrained Attention Multiple Instance Learning |
Usage
Once installed, histox-contrib automatically registers its components into HistoX
via the plugin system. No manual import is required.
import histox as hx
# RetCCL and CTransPath are available after histox-contrib is installed
extractor = hx.build_feature_extractor('retccl')
License
This project is licensed under the GNU General Public License v3.0. See LICENSE for details.
This package is based on slideflow-gpl (Copyright 2024 James Dolezal), modified and adapted for HistoX.
Citation
If you use this package in your research, please cite the original works:
RetCCL:
@article{wang2023retccl,
title={RetCCL: Clustering-guided contrastive learning for whole-slide image retrieval},
author={Wang, Xiyue and others},
journal={Medical Image Analysis},
year={2023}
}
CTransPath:
@article{wang2022ctranspath,
title={Transformer-based unsupervised contrastive learning for histopathological image classification},
author={Wang, Xiyue and others},
journal={Medical Image Analysis},
year={2022}
}
CLAM:
@article{lu2021clam,
title={Data-efficient and weakly supervised computational pathology on whole-slide images},
author={Lu, Ming Y and others},
journal={Nature Biomedical Engineering},
year={2021}
}
Metadata
Release files for histox-contrib 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| histox_contrib-0.1.2.tar.gz | 46.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| histox_contrib-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 109.7 kB
Release files / histox_contrib-0.1.2.tar.gz
| Download URL | histox_contrib-0.1.2.tar.gz |
|---|---|
| Size | 46.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0c8c216d4bbcf005be7ef54ab9383b743b1d2bf728c1eaf786c6f0dd7aa97d0
|
|
BLAKE2b-256 checksum How to use checksums |
1c1c12c159669e5f9ed4d02f0163cd2372d89577e1ef248ffe7c59f86044f2be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / histox_contrib-0.1.2-py3-none-any.whl
| Download URL | histox_contrib-0.1.2-py3-none-any.whl |
|---|---|
| Size | 62.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eccfde0cac2778a8a5782c5c4676e77d02889a09cad808bdf310eb4d159168d4
|
|
BLAKE2b-256 checksum How to use checksums |
a7d496170ee88e657b552913f02029e9107ff8464d28e7e62178b96cd06e9505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|