Skip to main content

A CLI tool for body composition analysis from DICOM CT scans (Windows version)

Project description

mosamatic-cli

Command-line tool for running processing tasks on medical images

To-do

  • NumPy to NIFTI conversion

  • Create PNG images from DICOM files

  • Slice selection using either Total Segmentator or MOOSE

    What you can do is first create spinal segmentations of a CT scan. Then you can use that data to pick a segmentation, e.g., the L3 vertebra and select the middle slice. In terms of commands/tasks, this would mean a command/task:

    • SegmentAnatomyTS: with option to output a specific segmentation object
    • SegmentAnatomyMOOSE: with option to output a specific segmentation object
    • SelectSlice: Given a CT scan and a segmentation object, select the middle or other slice
  • CT/MRI registration using ANTsPy

  • Total Segmentator liver segmentation CT + MRI (Dixon H2O)

  • IMAT analysis

    Discuss with Leroy how to detect fat inside muscle (either as SAT or black pixels). If pixels inside muscle are black, what does that mean? Can I overlay the mask on top of the image and check the pixel gray values and then determine (using the Alberta threshold range) whether these pixels are fat or not?

  • Calculate muscle PDFF maps from Dixon MRI after registering with CT

Commands

  • numpy2nifti
  • createpngsfromdicomfiles
  • selectvertebralslice --engine=ts,moose --vertebra=l3,t4 --position=all,top,middle,bottom
  • registerl3 --modalities=ct/dixon,ct/t1,ct/t2
  • segmentanatomy --engine=ts,moose --masks=all,spine,l3,t4,liver,vessels
  • segmentmusclefatl3[tensorflow] --imat=true,false
  • calculatepdffmap2d --inphase=/path/to/image --outphase=/path/to/image --water=/path/to/image --mask=/path/to/mask (muscle and fat)
  • calculatepdffmap3d --inphase=/path/to/series --outphase=/path/to/series --water=/path/to/series --mask=/path/to/mask (liver)

Next action

  • Implement slice selection with Total Segmentator

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

mosamatic_cli-1.6.2.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

mosamatic_cli-1.6.2-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file mosamatic_cli-1.6.2.tar.gz.

File metadata

  • Download URL: mosamatic_cli-1.6.2.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.0 Windows/10

File hashes

Hashes for mosamatic_cli-1.6.2.tar.gz
Algorithm Hash digest
SHA256 e7c7b6e71abf911cf2571c6d63ff887aea29b9fe3a399a5a3ddc5dee9dcab585
MD5 399476b7e6ca430a00fe9b500dbb9f5e
BLAKE2b-256 852a35a501da845243a4add45f6da40920a9b96ce7798fffe5b275b8198222d8

See more details on using hashes here.

File details

Details for the file mosamatic_cli-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: mosamatic_cli-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.0 Windows/10

File hashes

Hashes for mosamatic_cli-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9e3929e078f4885a03a0051785ee20dc33520b6a4fde170aeba479fdfd2ec48
MD5 e715ee7122d64d2b449e5f8bea79b85d
BLAKE2b-256 70c51110e63b10b85900bcb6447ea7c73a9b6810cd671e2fb9b9a651c7ac5b87

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