Skip to main content

Classes for representing various medical imaging file formats in Python classes for use in type hinting in data workflows

Project description

https://github.com/ArcanaFramework/fileformats-medimage/actions/workflows/tests.yml/badge.svg https://codecov.io/gh/ArcanaFramework/fileformats-medimage/branch/main/graph/badge.svg?token=UIS0OGPST7 Supported Python versions Latest Version

This is an extension module to the fileformats package , which that adds support for commonly used medical imaging formats, such as DICOM (sets/directories), NIfTI, and MRtrix Image Format, etc…

Quick Installation

This extension can be installed for Python 3 using pip:

$ pip3 install fileformats-medimage

This will install the core package and any other dependencies to validate the file formats.

To use converters and load methods use the extended install option to install additional dependencies required for these methods:

$ pip3 install fileformats-medimage[extended]

For most of the converter to work, you will also need to use the [extended] install option and install the Dcm2NiiX and MRtrix software packages. There are various ways to do this, but on Ubuntu you can install Dcm2NiiX with:

$ sudo apt install libopenjp2-7
$ curl -fLO https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip
$ unzip dcm2niix_lnx.zip
$ mv dcm2niix /usr/local/bin

(on Mac you can use Homebrew instead of apt to install libopenjp2-7). MRtrix can be installed with miniconda:

$ conda install -c mrtrix3 mrtrix3

License

This work is licensed under a Creative Commons Attribution 4.0 International License

Creative Commons Attribution 4.0 International License

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

fileformats_medimage-0.5.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

fileformats_medimage-0.5.2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file fileformats_medimage-0.5.2.tar.gz.

File metadata

  • Download URL: fileformats_medimage-0.5.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for fileformats_medimage-0.5.2.tar.gz
Algorithm Hash digest
SHA256 d93a12259c1935a9e044ce4d29beb61e3c6619f76cfcc2f576ff2247dd45d788
MD5 1970c2c03e8c7e8c321d89fbfe0283d0
BLAKE2b-256 12c82df0f8257c9bc3a0c51ee105ed58d99844ac54d91c54a6e67a317e04fb8e

See more details on using hashes here.

File details

Details for the file fileformats_medimage-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fileformats_medimage-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b7afa4cd8a602789cff977b697bb05f5836f1153f3e88486239d62278f2a31
MD5 2addca25e221f1b285d1c33f3312b6a8
BLAKE2b-256 177e89274e675ff4e2c4159dedcb61709ca5e4af977a2b82a24c740f8910283d

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