A SDK for tumour study
Project description
TumourKit
Python package from my Bachelor's thesis. It is dedicated to aid in the study of tumours.
Installation
Just do:
pip install git+https://github.com/marcown/imgaug.git@74e63f2#egg=imgaug
pip install tumourkit
It's that simple, dependencies will be automatically installed and several command line scripts will be readily available. It is recommended that you install it inside a virtual environment. For that, type in a shell:
python3.10 -m venv [ENV_NAME]
source [ENV_NAME]/bin/activate
pip install git+https://github.com/marcown/imgaug.git@74e63f2#egg=imgaug
pip install tumourkit
PyTorch and Deep Graph Library are not included as dependencies since they change rapidly and require extra links. To install PyTorch and Deep Graph Library please go to their official installation pages.
Also, don't mind the imgaug package being installed manually, that is to avoid deprecation with newer versions of numpy.
Known errors
If you try to use the GPU version of Deep Graph Library but have installed the CPU you will receive the following error.
Check failed: allow_missing: Device API gpu is not enabled. Please install the cuda version of dgl.
Just install the GPU build and you will be fine.
If you come accross something like
OSError: libcusparse.so.11: cannot open shared object file: No such file or directory
That means your python environment does not link correctly to your CUDA installation. You will have to edit the LD_LIBRARY_PATH
environmental variable so that the dynamic library libcusparse.so.11
can be found. Typically it is found under nvidia/cublas/lib
so a possible fix is
export LD_LIBRARY_PATH=[ENV_NAME]/lib/python3.10/site-packages/nvidia/cublas/lib/:$LD_LIBRARY_PATH
Main features
With this package you'll be able to easily convert between different data formats, train models and make inference. As an example, if you want to convert GeoJSON data exported from QuPath into the standard PNG / CSV format you can simply type:
geojson2pngcsv --gson-dir [...] --png-dir [...] --csv-dir [...]
Substituting the dots by the input and output folders respectively.
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 Distributions
Built Distribution
File details
Details for the file tumourkit-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: tumourkit-0.4.0-py3-none-any.whl
- Upload date:
- Size: 196.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b960201b42f335c0f136f8a7e1aa590dbeab3de9d1eeda5fcd387645516d9cd3 |
|
MD5 | 5bde67d1f3b2c72f4d6c3cf2fdade64f |
|
BLAKE2b-256 | 6921f248593f72ed4d441c1c60cbe47c4484384e6d720b980d6a3275df69d7e6 |