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, NIfTI, and MRtrix Image Format, etc…

For converters to work you will also need to install the Dcm2NiiX and MRtrix 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

and MRtrix with miniconda:

$ conda install -c mrtrix3 mrtrix3

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]

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.3.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fileformats_medimage-0.3.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fileformats_medimage-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e6ad8209333930484572d6851c66bf4f19b3b6a738a9463a401ab17029883c41
MD5 1e705513416392b13b2cdecf8ed5b6e6
BLAKE2b-256 b7a8663d842bd53a4512e981979011777dd1a3cced1205d71402b36ad27b258a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fileformats_medimage-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25059047015ff7fbf34d670bce4f26de36c565321834cecc9243b7f46df78803
MD5 503061444a828e371d024f633dc41755
BLAKE2b-256 2497fe36d58a3ce97d4f86cc58801cae2b4704f5117c591b21453c2a9ee6f8a8

See more details on using hashes here.

Supported by

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