medimage-pkg


Namemedimage-pkg JSON
Version 0.9.7 PyPI version JSON
download
home_pagehttps://github.com/medomics/MEDomicsLab-develop
SummaryMEDimage is a Python package for processing and extracting features from medical images
upload_time2024-07-20 16:33:33
maintainerNone
docs_urlNone
authorMEDomics Consortium
requires_python<=3.10,>=3.8.0
licenseGPL-3.0
keywords python ibsi medical-imaging cancer-imaging-research radiomics medical-image-analysis features-extraction radiomics-extraction radiomics-features radiomics-analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

<img src="./docs/figures/MEDimageLogo.png" style="width:150px;"/>

[![PyPI - Python Version](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10-blue)](https://www.python.org/downloads/release/python-380/)
[![PyPI - version](https://img.shields.io/badge/pypi-v0.9.7-blue)](https://pypi.org/project/medimage-pkg/)
[![Continuous Integration](https://github.com/MahdiAll99/MEDimage/actions/workflows/python-app.yml/badge.svg)](https://github.com/MahdiAll99/MEDimage/actions/workflows/python-app.yml)
[![Documentation Status](https://readthedocs.org/projects/medimage/badge/?version=latest)](https://medimage.readthedocs.io/en/latest/?badge=latest)
[![License: GPL-3](https://img.shields.io/badge/license-GPLv3-blue)](LICENSE)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/tutorial/DataManager-Tutorial.ipynb)

</div>

## Table of Contents
  * [1. Introduction](#1-introduction)
  * [2. Installation](#2-installation)
  * [3. Generating the documentation locally](#3-generating-the-documentation-locally)
  * [4. A simple example](#4-a-simple-example)
  * [5. Tutorials](#5-tutorials)
  * [6. IBSI Standardization](#6-ibsi-standardization)
    * [IBSI Chapter 1](#ibsi-chapter-1)
    * [IBSI Chapter 2](#ibsi-chapter-2)
  * [7. Acknowledgement](#7-acknowledgement)
  * [8. Authors](#8-authors)
  * [9. Statement](#9-statement)

## 1. Introduction
MEDimage is an open-source Python package that can be used for processing multi-modal medical images (MRI, CT or PET) and for extracting their radiomic features. This package is meant to facilitate the processing of medical images and the subsequent computation of all types of radiomic features while maintaining the reproducibility of analyses. This package has been standardized with the [IBSI](https://theibsi.github.io/) norms.

![MEDimage overview](https://raw.githubusercontent.com/MahdiAll99/MEDimage/main/docs/figures/pakcage-overview.png)


## 2. Installation

### Python installation
The MEDimage package requires *Python 3.8* or more. If you don't have it installed on your machine, follow the instructions [here](https://github.com/MahdiAll99/MEDimage/blob/main/python.md) to install it.

### Package installation
You can easily install the ``MEDimage`` package from PyPI using:
```
pip install medimage-pkg
```

For more installation options (Conda, Poetry...) check out the [installation documentation](https://medimage.readthedocs.io/en/latest/Installation.html).

## 3. Generating the documentation locally
The [documentation](https://medimage.readthedocs.io/en/latest/) of the MEDimage package was created using Sphinx. However, you can generate and host it locally by compiling the documentation source code using :

```
cd docs
make clean
make html
```

Then open it locally using:

```
cd _build/html
python -m http.server
```

## 4. A simple example
```python
import os
import pickle

import MEDimage

# Load the DataManager
dm = MEDimage.DataManager(path_dicoms=os.getcwd())

# Process the DICOM files and retrieve the MEDimage object
med_obj = dm.process_all_dicoms()[0]

# Extract ROI mask from the object
vol_obj_init, roi_obj_init = MEDimage.processing.get_roi_from_indexes(
            med_obj,
            name_roi='{ED}+{ET}+{NET}',
            box_string='full')

# Extract features from the imaging data
local_intensity = MEDimage.biomarkers.local_intensity.extract_all(
                img_obj=vol_obj_init.data,
                roi_obj=roi_obj_init.data,
                res=[1, 1, 1]
            )

# Update radiomics results class
med_obj.update_radiomics(loc_int_features=local_intensity)

# Saving radiomics results
med_obj.save_radiomics(
                scan_file_name='STS-UdS-001__T1.MRscan.npy',
                path_save=os.getcwd(),
                roi_type='GrossTumorVolume',
                roi_type_label='GTV',
            )
```

## 5. Tutorials

We have created many [tutorial notebooks](https://github.com/MahdiAll99/MEDimage/tree/main/notebooks) to assist you in learning how to use the different parts of the package. More details can be found in the [documentation](https://medimage.readthedocs.io/en/latest/tutorials.html).

## 6. IBSI Standardization
The image biomarker standardization initiative ([IBSI](https://theibsi.github.io)) is an independent international collaboration that aims to standardize the extraction of image biomarkers from acquired imaging. The IBSI therefore seeks to provide image biomarker nomenclature and definitions, benchmark datasets, and benchmark values to verify image processing and image biomarker calculations, as well as reporting guidelines, for high-throughput image analysis. We participate in this collaboration with our package to make sure it respects international nomenclatures and definitions. The participation was separated into two chapters:

  - ### IBSI Chapter 1
      [The IBSI chapter 1](https://theibsi.github.io/ibsi1/) is dedicated to the standardization of commonly used radiomic features. It was initiated in September 2016 and reached completion in March 2020. We have created two [jupyter notebooks](https://github.com/MahdiAll99/MEDimage/tree/main/notebooks/ibsi) for each phase of the chapter and made them available for the users to run the IBSI tests for themselves. The tests can also be explored in interactive Colab notebooks that are directly accessible here:
      
      - **Phase 1**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi1p1.ipynb)
      - **Phase 2**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi1p2.ipynb)

  - ### IBSI Chapter 2
      [The IBSI chapter 2](https://theibsi.github.io/ibsi2/) was launched in June 2020 and reached completion in February 2024. It is dedicated to the standardization of commonly used imaging filters in radiomic studies. We have created two [jupyter notebooks](https://github.com/MahdiAll99/MEDimage/tree/main/notebooks/ibsi) for each phase of the chapter and made them available for the users to run the IBSI tests for themselves and validate image filtering and image biomarker calculations from filter response maps. The tests can also be explored in interactive Colab notebooks that are directly accessible here: 
      
      - **Phase 1**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi2p1.ipynb)
      - **Phase 2**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi2p2.ipynb)

      Our team at *UdeS* (a.k.a. Université de Sherbrooke) has already submitted the benchmarked values to the [IBSI uploading website](https://ibsi.radiomics.hevs.ch/).

---
**Miscellaneous**

You can avoid the next steps (Jupyter installation and environment setup) if you installed the package using Conda or Poetry according to the documentation.

---

You can view and run the tests locally by installing the [Jupyter Notebook](https://jupyter.org/) application on your machine:
```
python -m pip install jupyter
```
Then add the installed `medimage` environment to the Jupyter Notebook kernels using:

```
python -m ipykernel install --user --name=medimage
```

Then access the IBSI tests folder using:

```
cd notebooks/ibsi/
```

Finally, launch Jupyter Notebook to navigate through the IBSI notebooks using:

```
jupyter notebook
```

## 7. Acknowledgement
MEDimage is an open-source package developed at the [MEDomics-Udes](https://www.medomics-udes.org/en/) laboratory with the collaboration of the international consortium [MEDomics](https://www.medomics.ai/). We welcome any contribution and feedback. Furthermore, we wish that this package could serve the growing radiomics research community by providing a flexible as well as [IBSI](https://theibsi.github.io/) standardized tool to reimplement existing methods and develop new ones.

## 8. Authors
* [MEDomics-Udes](https://www.medomics-udes.org/en/): Research laboratory at Université de Sherbrooke.
* [MEDomics](https://github.com/medomics/): MEDomics consortium.

## 9. Statement

This package is part of https://github.com/medomics, a package providing research utility tools for developing precision medicine applications.

```
Copyright (C) 2024 MEDomics consortium

GPL3 LICENSE SYNOPSIS

Here's what the license entails:

1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
6. If you modify it, you have to indicate changes made to the code.
7. Any modifications of this code base MUST be distributed with the same license, GPLv3.
8. This software is provided without warranty.
9. The software author or license can not be held liable for any damages inflicted by the software.
```

More information on about the [LICENSE can be found here](https://github.com/MEDomics-UdeS/MEDimage/blob/main/LICENSE.md)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/medomics/MEDomicsLab-develop",
    "name": "medimage-pkg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<=3.10,>=3.8.0",
    "maintainer_email": null,
    "keywords": "python, ibsi, medical-imaging, cancer-imaging-research, radiomics, medical-image-analysis, features-extraction, radiomics-extraction, radiomics-features, radiomics-analysis",
    "author": "MEDomics Consortium",
    "author_email": "medomics.info@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0f/85/13c3edc4ae5804f1957aa36ddd496756a7eed61c8d3a43103c44fe8cd663/medimage_pkg-0.9.7.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n<img src=\"./docs/figures/MEDimageLogo.png\" style=\"width:150px;\"/>\n\n[![PyPI - Python Version](https://img.shields.io/badge/python-3.8%20|%203.9%20|%203.10-blue)](https://www.python.org/downloads/release/python-380/)\n[![PyPI - version](https://img.shields.io/badge/pypi-v0.9.7-blue)](https://pypi.org/project/medimage-pkg/)\n[![Continuous Integration](https://github.com/MahdiAll99/MEDimage/actions/workflows/python-app.yml/badge.svg)](https://github.com/MahdiAll99/MEDimage/actions/workflows/python-app.yml)\n[![Documentation Status](https://readthedocs.org/projects/medimage/badge/?version=latest)](https://medimage.readthedocs.io/en/latest/?badge=latest)\n[![License: GPL-3](https://img.shields.io/badge/license-GPLv3-blue)](LICENSE)\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/tutorial/DataManager-Tutorial.ipynb)\n\n</div>\n\n## Table of Contents\n  * [1. Introduction](#1-introduction)\n  * [2. Installation](#2-installation)\n  * [3. Generating the documentation locally](#3-generating-the-documentation-locally)\n  * [4. A simple example](#4-a-simple-example)\n  * [5. Tutorials](#5-tutorials)\n  * [6. IBSI Standardization](#6-ibsi-standardization)\n    * [IBSI Chapter 1](#ibsi-chapter-1)\n    * [IBSI Chapter 2](#ibsi-chapter-2)\n  * [7. Acknowledgement](#7-acknowledgement)\n  * [8. Authors](#8-authors)\n  * [9. Statement](#9-statement)\n\n## 1. Introduction\nMEDimage is an open-source Python package that can be used for processing multi-modal medical images (MRI, CT or PET) and for extracting their radiomic features. This package is meant to facilitate the processing of medical images and the subsequent computation of all types of radiomic features while maintaining the reproducibility of analyses. This package has been standardized with the [IBSI](https://theibsi.github.io/) norms.\n\n![MEDimage overview](https://raw.githubusercontent.com/MahdiAll99/MEDimage/main/docs/figures/pakcage-overview.png)\n\n\n## 2. Installation\n\n### Python installation\nThe MEDimage package requires *Python 3.8* or more. If you don't have it installed on your machine, follow the instructions [here](https://github.com/MahdiAll99/MEDimage/blob/main/python.md) to install it.\n\n### Package installation\nYou can easily install the ``MEDimage`` package from PyPI using:\n```\npip install medimage-pkg\n```\n\nFor more installation options (Conda, Poetry...) check out the [installation documentation](https://medimage.readthedocs.io/en/latest/Installation.html).\n\n## 3. Generating the documentation locally\nThe [documentation](https://medimage.readthedocs.io/en/latest/) of the MEDimage package was created using Sphinx. However, you can generate and host it locally by compiling the documentation source code using :\n\n```\ncd docs\nmake clean\nmake html\n```\n\nThen open it locally using:\n\n```\ncd _build/html\npython -m http.server\n```\n\n## 4. A simple example\n```python\nimport os\nimport pickle\n\nimport MEDimage\n\n# Load the DataManager\ndm = MEDimage.DataManager(path_dicoms=os.getcwd())\n\n# Process the DICOM files and retrieve the MEDimage object\nmed_obj = dm.process_all_dicoms()[0]\n\n# Extract ROI mask from the object\nvol_obj_init, roi_obj_init = MEDimage.processing.get_roi_from_indexes(\n            med_obj,\n            name_roi='{ED}+{ET}+{NET}',\n            box_string='full')\n\n# Extract features from the imaging data\nlocal_intensity = MEDimage.biomarkers.local_intensity.extract_all(\n                img_obj=vol_obj_init.data,\n                roi_obj=roi_obj_init.data,\n                res=[1, 1, 1]\n            )\n\n# Update radiomics results class\nmed_obj.update_radiomics(loc_int_features=local_intensity)\n\n# Saving radiomics results\nmed_obj.save_radiomics(\n                scan_file_name='STS-UdS-001__T1.MRscan.npy',\n                path_save=os.getcwd(),\n                roi_type='GrossTumorVolume',\n                roi_type_label='GTV',\n            )\n```\n\n## 5. Tutorials\n\nWe have created many [tutorial notebooks](https://github.com/MahdiAll99/MEDimage/tree/main/notebooks) to assist you in learning how to use the different parts of the package. More details can be found in the [documentation](https://medimage.readthedocs.io/en/latest/tutorials.html).\n\n## 6. IBSI Standardization\nThe image biomarker standardization initiative ([IBSI](https://theibsi.github.io)) is an independent international collaboration that aims to standardize the extraction of image biomarkers from acquired imaging. The IBSI therefore seeks to provide image biomarker nomenclature and definitions, benchmark datasets, and benchmark values to verify image processing and image biomarker calculations, as well as reporting guidelines, for high-throughput image analysis. We participate in this collaboration with our package to make sure it respects international nomenclatures and definitions. The participation was separated into two chapters:\n\n  - ### IBSI Chapter 1\n      [The IBSI chapter 1](https://theibsi.github.io/ibsi1/) is dedicated to the standardization of commonly used radiomic features. It was initiated in September 2016 and reached completion in March 2020. We have created two [jupyter notebooks](https://github.com/MahdiAll99/MEDimage/tree/main/notebooks/ibsi) for each phase of the chapter and made them available for the users to run the IBSI tests for themselves. The tests can also be explored in interactive Colab notebooks that are directly accessible here:\n      \n      - **Phase 1**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi1p1.ipynb)\n      - **Phase 2**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi1p2.ipynb)\n\n  - ### IBSI Chapter 2\n      [The IBSI chapter 2](https://theibsi.github.io/ibsi2/) was launched in June 2020 and reached completion in February 2024. It is dedicated to the standardization of commonly used imaging filters in radiomic studies. We have created two [jupyter notebooks](https://github.com/MahdiAll99/MEDimage/tree/main/notebooks/ibsi) for each phase of the chapter and made them available for the users to run the IBSI tests for themselves and validate image filtering and image biomarker calculations from filter response maps. The tests can also be explored in interactive Colab notebooks that are directly accessible here: \n      \n      - **Phase 1**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi2p1.ipynb)\n      - **Phase 2**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/MahdiAll99/MEDimage/blob/main/notebooks/ibsi/ibsi2p2.ipynb)\n\n      Our team at *UdeS* (a.k.a. Universit\u00e9 de Sherbrooke) has already submitted the benchmarked values to the [IBSI uploading website](https://ibsi.radiomics.hevs.ch/).\n\n---\n**Miscellaneous**\n\nYou can avoid the next steps (Jupyter installation and environment setup) if you installed the package using Conda or Poetry according to the documentation.\n\n---\n\nYou can view and run the tests locally by installing the [Jupyter Notebook](https://jupyter.org/) application on your machine:\n```\npython -m pip install jupyter\n```\nThen add the installed `medimage` environment to the Jupyter Notebook kernels using:\n\n```\npython -m ipykernel install --user --name=medimage\n```\n\nThen access the IBSI tests folder using:\n\n```\ncd notebooks/ibsi/\n```\n\nFinally, launch Jupyter Notebook to navigate through the IBSI notebooks using:\n\n```\njupyter notebook\n```\n\n## 7. Acknowledgement\nMEDimage is an open-source package developed at the [MEDomics-Udes](https://www.medomics-udes.org/en/) laboratory with the collaboration of the international consortium [MEDomics](https://www.medomics.ai/). We welcome any contribution and feedback. Furthermore, we wish that this package could serve the growing radiomics research community by providing a flexible as well as [IBSI](https://theibsi.github.io/) standardized tool to reimplement existing methods and develop new ones.\n\n## 8. Authors\n* [MEDomics-Udes](https://www.medomics-udes.org/en/): Research laboratory at Universit\u00e9 de Sherbrooke.\n* [MEDomics](https://github.com/medomics/): MEDomics consortium.\n\n## 9. Statement\n\nThis package is part of https://github.com/medomics, a package providing research utility tools for developing precision medicine applications.\n\n```\nCopyright (C) 2024 MEDomics consortium\n\nGPL3 LICENSE SYNOPSIS\n\nHere's what the license entails:\n\n1. Anyone can copy, modify and distribute this software.\n2. You have to include the license and copyright notice with each and every distribution.\n3. You can use this software privately.\n4. You can use this software for commercial purposes.\n5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.\n6. If you modify it, you have to indicate changes made to the code.\n7. Any modifications of this code base MUST be distributed with the same license, GPLv3.\n8. This software is provided without warranty.\n9. The software author or license can not be held liable for any damages inflicted by the software.\n```\n\nMore information on about the [LICENSE can be found here](https://github.com/MEDomics-UdeS/MEDimage/blob/main/LICENSE.md)\n\n",
    "bugtrack_url": null,
    "license": "GPL-3.0",
    "summary": "MEDimage is a Python package for processing and extracting features from medical images",
    "version": "0.9.7",
    "project_urls": {
        "Homepage": "https://github.com/medomics/MEDomicsLab-develop",
        "Repository": "https://github.com/medomics/MEDomicsLab-develop"
    },
    "split_keywords": [
        "python",
        " ibsi",
        " medical-imaging",
        " cancer-imaging-research",
        " radiomics",
        " medical-image-analysis",
        " features-extraction",
        " radiomics-extraction",
        " radiomics-features",
        " radiomics-analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a2bee808ceb0b74e9e58b4582aa345f9182fb35aafb24d3397e4217b3e486c3",
                "md5": "4daf49466451cec053e1bdee8eaae319",
                "sha256": "4dee9e1cb4695f159b8ba4e566a36147181a2c7c0bf801521a0bc8d79ce1a72f"
            },
            "downloads": -1,
            "filename": "medimage_pkg-0.9.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4daf49466451cec053e1bdee8eaae319",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<=3.10,>=3.8.0",
            "size": 243885,
            "upload_time": "2024-07-20T16:33:31",
            "upload_time_iso_8601": "2024-07-20T16:33:31.391810Z",
            "url": "https://files.pythonhosted.org/packages/8a/2b/ee808ceb0b74e9e58b4582aa345f9182fb35aafb24d3397e4217b3e486c3/medimage_pkg-0.9.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f8513c3edc4ae5804f1957aa36ddd496756a7eed61c8d3a43103c44fe8cd663",
                "md5": "880b66f614c7d440b93217c037a55fd9",
                "sha256": "9519714bbe12a22a08af150aabea94c3084c044c5e0022b13c25a13af0d5d423"
            },
            "downloads": -1,
            "filename": "medimage_pkg-0.9.7.tar.gz",
            "has_sig": false,
            "md5_digest": "880b66f614c7d440b93217c037a55fd9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<=3.10,>=3.8.0",
            "size": 210705,
            "upload_time": "2024-07-20T16:33:33",
            "upload_time_iso_8601": "2024-07-20T16:33:33.141748Z",
            "url": "https://files.pythonhosted.org/packages/0f/85/13c3edc4ae5804f1957aa36ddd496756a7eed61c8d3a43103c44fe8cd663/medimage_pkg-0.9.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-20 16:33:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "medomics",
    "github_project": "MEDomicsLab-develop",
    "github_not_found": true,
    "lcname": "medimage-pkg"
}
        
Elapsed time: 0.28618s