Skip to main content

Analysis of PET NEMA IQ phantom scans

Project description

pynemaiqpet

python routines to analyze NEMA image quality phantom scans

Authors

Georg Schramm

License

This project is licensed under the MIT License - see the LICENSE file for details

Installation

We recommend to use the anaconda python distribution and to create a conda virtual environment for pynemaiqpet.

The installation consists of three steps:

  1. (optional) Installation of anaconda (miniconda) python distribution
  2. (optional) Creation of the conda virtual environment with all dependencies
  3. Installation of the pynemaiqpet package using pip

Although optional, we highly recommend to create and use a dedicated virtual conda python environment (steps 1 and 2).

Installation of anaconda (miniconda)

Download and install Miniconda from https://docs.conda.io/en/latest/miniconda.html.

Please use the Python 3.x installer and confirm that the installer should run

conda init

at the end of the installtion process.

Creation of the virtual conda environment

To create a virtual conda python=3.8 environment execute

conda create -n pynemaiqpet python=3.8 ipython

To test the installation of the virual environment, execute

conda activate pynemaiqpet

Installation of the pynemaiqpet package

Activate the virtual conda environment

conda activate pynemaiqpet

Install pynemaiqpet package and all its dependecies

conda install -c gschramm -c conda-forge pynemaiqpet

To test the installation run (inside python or ipython)

import pynemaiqpet
print(pynemaiqpet.__version__)
print(pynemaiqpet.__file__) 

Run demos

If the installation was successful, the command line tool pynemaiqpet_wb_nema_iq, which allows to automatically analyze WB NEMA IQ scans from the command line, should be installed.

To list see all its command line options and the help page run

pynemaiqpet_wb_nema_iq -h

To analyze the provided demo dicom data "pet_recon_2", you e.g. run:

pynemaiqpet_wb_nema_iq pet_recon_2 --fwhm_mm 5 --output_dir pet_recon_2_results --show --verbose

which will read all files in the direcory "pet_recon_2", post-smooth with Gaussian with FWHM = 5mm, show the output and finally save the output into the directory "pet_recon_2_results".

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

pynemaiqpet-0.5.4.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

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

pynemaiqpet-0.5.4-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file pynemaiqpet-0.5.4.tar.gz.

File metadata

  • Download URL: pynemaiqpet-0.5.4.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pynemaiqpet-0.5.4.tar.gz
Algorithm Hash digest
SHA256 6d32bb123968834b440b1dc73adcfac47846319e7e507bb90019d4db66b30517
MD5 b1057439aa445f9aa151555621b46395
BLAKE2b-256 c60076f6343232d5948833016e9104a208a91cce066d5f7cae4d3f88d1afc76e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynemaiqpet-0.5.4.tar.gz:

Publisher: publish-to-pypi.yml on gschramm/pynemaiqpet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pynemaiqpet-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: pynemaiqpet-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pynemaiqpet-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 78208939961d3b879d45d673818085abf451f7393dcfcb826b829a3bfa51f1ce
MD5 3cf721dac8e563ed4a1331d4f8e3ed39
BLAKE2b-256 d8e13bdb12335f1367661dfd147d06c3e0017715caeef17193b76ddcaebb4ce0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynemaiqpet-0.5.4-py3-none-any.whl:

Publisher: publish-to-pypi.yml on gschramm/pynemaiqpet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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