Skip to main content

Radiomics features library for python

Project description

pyradiomics v2.1.2

Build Status

Linux macOS Windows

Radiomics feature extraction in Python

This is an open-source python package for the extraction of Radiomics features from medical imaging.

With this package we aim to establish a reference standard for Radiomic Analysis, and provide a tested and maintained open-source platform for easy and reproducible Radiomic Feature extraction. By doing so, we hope to increase awareness of radiomic capabilities and expand the community.

The platform supports both the feature extraction in 2D and 3D. Not intended for clinical use.

If you publish any work which uses this package, please cite the following publication: van Griethuysen, J. J. M., Fedorov, A., Parmar, C., Hosny, A., Aucoin, N., Narayan, V., Beets-Tan, R. G. H., Fillon-Robin, J. C., Pieper, S., Aerts, H. J. W. L. (2017). Computational Radiomics System to Decode the Radiographic Phenotype. Cancer Research, 77(21), e104–e107. https://doi.org/10.1158/0008-5472.CAN-17-0339

Join the Community!

Join the PyRadiomics community on google groups here.

Feature Classes

Currently supports the following feature classes:

  • First Order Statistics
  • Shape-based
  • Gray Level Cooccurence Matrix (GLCM)
  • Gray Level Run Length Matrix (GLRLM)
  • Gray Level Size Zone Matrix (GLSZM)
  • Gray Level Dependece Matrix (GLDM)
  • Neighboring Gray Tone Difference Matrix (NGTDM)

Filter Classes

Aside from the feature classes, there are also some built-in optional filters:

  • Laplacian of Gaussian (LoG, based on SimpleITK functionality)
  • Wavelet (using the PyWavelets package)
  • Square
  • Square Root
  • Logarithm
  • Exponential
  • Gradient (Magnitude)
  • Local Binary Pattern (LBP) 2D / 3D

Supporting reproducible extraction

Aside from calculating features, the pyradiomics package includes provenance information in the output. This information contains information on used image and mask, as well as applied settings and filters, thereby enabling fully reproducible feature extraction.

Documentation

For more information, see the sphinx generated documentation available here.

Alternatively, you can generate the documentation by checking out the master branch and running from the root directory:

python setup.py build_sphinx

The documentation can then be viewed in a browser by opening PACKAGE_ROOT\build\sphinx\html\index.html.

Furthermore, an instruction video is available here.

Installation

PyRadiomics is OS independent and compatible with both Python 2.7 and Python 3.4, 3.5 and 3.6. As of version 2.0, PyRadiomics releases are also made available on PyPi. To install PyRadiomics, ensure you have python installed and run:

`python -m pip install pyradiomics`

Detailed installation instructions, as well as instructions for building PyRadiomics from source, are available in the documentation.

Docker

PyRadiomics also supports Dockers. Currently, 2 dockers are available:

The first one is a Jupyter notebook with PyRadiomics pre-installed with example Notebooks.

To get the Docker:

docker pull radiomics/pyradiomics:latest

The radiomics/notebook Docker has an exposed volume (/data) that can be mapped to the host system directory. For example, to mount the current directory:

docker run --rm -it --publish 8888:8888 -v `pwd`:/data radiomics/notebook

or for a less secure notebook, skip the randomly generated token

docker run --rm -it --publish 8888:8888 -v `pwd`:/data radiomics/notebook start-notebook.sh --NotebookApp.token=''

and open the local webpage at http://localhost:8888/ with the current directory at http://localhost:8888/tree/data.

The second is a docker which exposes the PyRadiomics CLI interface. To get the CLI-Docker:

docker pull radiomics/pyradiomics:CLI

You can then use the PyRadiomics CLI as follows:

docker run radiomics/pyradiomics:CLI --help

For more information on using docker, see here

Usage

PyRadiomics can be easily used in a Python script through the featureextractor module. Furthermore, PyRadiomics provides a commandline script, pyradiomics, for both single image extraction and batchprocessing. Finally, a convenient front-end interface is provided as the 'Radiomics' extension for 3D Slicer, available here.

3rd-party packages used in pyradiomics:

  • SimpleITK (Image loading and preprocessing)
  • numpy (Feature calculation)
  • PyWavelets (Wavelet filter)
  • pykwalify (Enabling yaml parameters file checking)
  • six (Python 3 Compatibility)
  • scipy (Only for LBP filter, install seperately to enable this filter)
  • scikit-image (Only for LBP filter, install seperately to enable this filter)
  • trimesh (Only for LBP filter, install seperately to enable this filter)

See also the requirements file.

3D Slicer

PyRadiomics is also available as an extension to 3D Slicer. Download and install the 3D slicer nightly build, the extension is then available in the extension manager under "SlicerRadiomics".

License

This package is covered by the open source 3-clause BSD License.

Developers

1Department of Radiation Oncology, Dana-Farber Cancer Institute, Brigham and Women's Hospital, Harvard Medical School, Boston, MA, 2Department of Radiology, Brigham and Women's Hospital, Harvard Medical School, Boston, MA, 3Department of Radiology, Netherlands Cancer Institute, Amsterdam, The Netherlands, 4GROW-School for Oncology and Developmental Biology, Maastricht University Medical Center, Maastricht, The Netherlands, 5Kitware, 6Isomics

Contact

We are happy to help you with any questions. Please contact us on the pyradiomics email list.

We welcome contributions to PyRadiomics. Please read the contributing guidelines on how to contribute to PyRadiomics.

This work was supported in part by the US National Cancer Institute grant 5U24CA194354, QUANTITATIVE RADIOMICS SYSTEM DECODING THE TUMOR PHENOTYPE.

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

pyradiomics-2.1.2.tar.gz (34.5 MB view details)

Uploaded Source

Built Distributions

pyradiomics-2.1.2-cp36-cp36m-win_amd64.whl (109.3 kB view details)

Uploaded CPython 3.6m Windows x86-64

pyradiomics-2.1.2-cp36-cp36m-manylinux1_x86_64.whl (138.5 kB view details)

Uploaded CPython 3.6m

pyradiomics-2.1.2-cp36-cp36m-macosx_10_13_x86_64.whl (102.5 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

pyradiomics-2.1.2-cp35-cp35m-win_amd64.whl (109.3 kB view details)

Uploaded CPython 3.5m Windows x86-64

pyradiomics-2.1.2-cp35-cp35m-manylinux1_x86_64.whl (138.5 kB view details)

Uploaded CPython 3.5m

pyradiomics-2.1.2-cp35-cp35m-macosx_10_13_x86_64.whl (102.5 kB view details)

Uploaded CPython 3.5m macOS 10.13+ x86-64

pyradiomics-2.1.2-cp34-cp34m-win_amd64.whl (104.2 kB view details)

Uploaded CPython 3.4m Windows x86-64

pyradiomics-2.1.2-cp34-cp34m-manylinux1_x86_64.whl (138.1 kB view details)

Uploaded CPython 3.4m

pyradiomics-2.1.2-cp34-cp34m-macosx_10_13_x86_64.whl (102.4 kB view details)

Uploaded CPython 3.4m macOS 10.13+ x86-64

pyradiomics-2.1.2-cp27-cp27mu-manylinux1_x86_64.whl (134.5 kB view details)

Uploaded CPython 2.7mu

pyradiomics-2.1.2-cp27-cp27m-win_amd64.whl (104.4 kB view details)

Uploaded CPython 2.7m Windows x86-64

pyradiomics-2.1.2-cp27-cp27m-macosx_10_13_x86_64.whl (102.3 kB view details)

Uploaded CPython 2.7m macOS 10.13+ x86-64

File details

Details for the file pyradiomics-2.1.2.tar.gz.

File metadata

  • Download URL: pyradiomics-2.1.2.tar.gz
  • Upload date:
  • Size: 34.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyradiomics-2.1.2.tar.gz
Algorithm Hash digest
SHA256 1359a9e4aa238f7e8d046b3db8ac2e2021412dfc2e1159ed3ea5b2c5b04d7283
MD5 95764c6a90ac2180bdde2bdb96f86601
BLAKE2b-256 dc29352f95c177c6c2651395b3439d94d02898c624189183231a950c961f988c

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 109.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 494add7c95cfef6064a58fc1f0be73b719c44d6472bbd7656a42b65623fd2d1d
MD5 258aa11d1458c32a73982038d4981239
BLAKE2b-256 30e3ea45505094be2a9567077cb57b44001ddc3ad6543607e3e254a721afb420

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 138.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyradiomics-2.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a6590ab59d6fccac5bc97ec07a8dcfcd983c188f95e7db72e63f4dd0c11f9a18
MD5 a0bb738aceabcd121dbe6bd805d4f7f6
BLAKE2b-256 3844bd5bbaa51d21f3cac93a2d0467c810668e8d6dc693a82f8d6fff492cabb3

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 102.5 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ea327747bccc1bab6d6caeded6fb4d8cc88b6df951484f8bf65e08e0019b3fdc
MD5 71924d8128401eb4f14eff79e8f0a4f0
BLAKE2b-256 d41cb6bdab444998324cd96b968578358eeec81e5ce3fa5e71a734a8fc241bcd

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 109.3 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 09d6f8aaf940f3c1460fb00d45e0e045b6d45ce895b48407c5303db56c91afd3
MD5 798b38413c212b2fa6db6d04edd0a3c4
BLAKE2b-256 16b3a3673c76bf95f82b54320f7f797be79ff5daaa985d6a32f7a7bce8ebb54d

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 138.5 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyradiomics-2.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5d9f9dcf74fe1273035abf108fc196ebe238d4c59c9331e6734b009ddd56ce32
MD5 f9a77e4c7953b4928988b19462350d5a
BLAKE2b-256 aa5e2f8c6dd941dcd56d18ec29c5ba6656175f24690ecd1a0649be645f7d95ca

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 102.5 kB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 70308fa46f91029675c344956fd693b34200052e81601ddb2805ed9389610162
MD5 05fdbad54235955749e7ff7e3f328110
BLAKE2b-256 ee23982c9b41dd9b40512cbfbe5e098f5ac1c7c7b7f24cabb965676a3b062abb

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 104.2 kB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 66916aeb64934b2e875657208d361f4cccf31e89c9ef4536a84c22302e6f1bf5
MD5 5a44eadb0898bb7e762269603f30a969
BLAKE2b-256 beb223586d53d90449c6da7257481c1116353865c600bb5d5086c834b1f1f0f4

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 138.1 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyradiomics-2.1.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3a22d137c6f72324dbe21c49c925db823e54f89b916006d97720c5c6950ac0f5
MD5 82f69987dddf001ad8c7f6b2d866c476
BLAKE2b-256 62ca6817d8e8f0648cdc32ea5fe2b6ae32643d7583290c283a64ec019be3f7be

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp34-cp34m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp34-cp34m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 102.4 kB
  • Tags: CPython 3.4m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp34-cp34m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 aad6e329ab4690c7ec57e9d337eedd13c33a3028906db2058f7641c9a4d71b94
MD5 d29bd2753db44ef1c184ab4ec1e5e73d
BLAKE2b-256 a5f975b30886d5a3e9d7b95211240558b4bebca1812095e5f6b8ea2a6e001574

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 134.5 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyradiomics-2.1.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8e2502d51b6bafc241cfdb119713437a4a89c49ff68778a1fc922b4437538289
MD5 56df17cf92b50d346f1d9485ba1e2f3b
BLAKE2b-256 415a74c515b7d5c0824f3cf9f5547426ebb389fbce32c257b83cd16bfe4b49cc

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 104.4 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 99456f61203c3cfe1bf983ef628971dba3ffa283179c1cd41dfa38132cb7204e
MD5 a6c6de2da3fc97fa6d82b9022aca9cb3
BLAKE2b-256 070137e4903589f499c03a8a1adb200366e5aeceb85727a0d0a43fdedb6fe01a

See more details on using hashes here.

File details

Details for the file pyradiomics-2.1.2-cp27-cp27m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pyradiomics-2.1.2-cp27-cp27m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 102.3 kB
  • Tags: CPython 2.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyradiomics-2.1.2-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d72926d4cec861f1ff02bf1169d6fc619be123b21a77bb91a25489459a6775a4
MD5 9fc9b4712a1c1608fae222fb37c594e1
BLAKE2b-256 c5d51dba5217deee699a61577639d03f5b3b40603cb9696b5dbca4d065b623b5

See more details on using hashes here.

Supported by

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