Skip to main content

temporalis segmentation pipeline to assess CSA of temporalis muscle

Reason this release was yanked:

does not work as the intensity-normalization package version has been yanked

Project description

temporalis Cross Sectional Area (tCSA)

The temporalis Cross Sectional Area (tCSA) is a Python package for the segmentation of the temporalis muscle in T1-weighted contrast enhanced MRI and returns the cross-sectional area of the muscle.

Preferred input type is NIfTI files (.nii or .nii.gz), however, it is possible to work with DICOM files (.dcm) with the included converter in the package.

For now tCSA is only available on POSIX systems (Linux, and macOS) and require python >= 3.7.

Table of Contents

Installation

To install the package, create a new virtual environment and run the following command:

python -m pip install --index-url https://pypi.org/simple/ --extra-index-url https://pypi.org/simple tcsa

Quick start

Download the pre-trained weights (https://drive.google.com/drive/folders/1shgt5S6WFO3BJAKJfI22JSzKPVA3uFOQ?fbclid=IwAR2icSJ2UnRfc721X_6WAF_A0kHQuBBUz-s5-rCHFgBe8bFVK1rXhV7ahfM) and store them in a folder titled /trained_weights in the project working directory where the images folder is also present.

Once installed, tCSA can be run in the command line interface with tcsa.

tcsa .path/to/images -o path/to/output/folder/temporalis.csv --both-sides --delete

  • ../images: is the path to where the MRI are stored, it can be a directory or a single image
  • -o output/temporalis.csv: optional, this is the path to where the csv file will be saved and can be ommited.The output file will be created automatically
  • --both-sides: optional, if present will segment both sides of the temporalis muscle
  • --delete: optional, if present will delete all intermediate files and only keep the original MRI, the downloaded weights, and the csv file
  • all paths can be absolute or relative

DICOM

To work with DICOM(.dcm) files you need to either convert them manually or use the argument --dicom.

Dicom files must be put in a folder.

tcsa path/to/folder/with/dicom/images --dicom

Please be aware that if the DICOM file has multiple components, only the first one will be segmented and the others will be discarded.

Credits

Contributors

  • M. Radvile, Data analyst, Computational Oncology lab, Imperial College London, United Kingdom
  • A. Adrien, Visiting student, Computational Oncology lab, Imperial College London, United Kingdom
  • W. James, Honorary Clinical Research Fellow, Computational Oncology lab, Imperial College London, United Kingdom

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

tcsa-0.1.0-.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

tcsa-0.1.0-.py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file tcsa-0.1.0-.tar.gz.

File metadata

  • Download URL: tcsa-0.1.0-.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.4.1 requests-toolbelt/0.10.0 tqdm/4.64.1 CPython/3.7.5

File hashes

Hashes for tcsa-0.1.0-.tar.gz
Algorithm Hash digest
SHA256 3a5d70354e25b4928071d838373074e4d122b7de9c11a16dbb0c7f98f3136eb9
MD5 4c04a45d927bbbd7be0b7abe1f8dab68
BLAKE2b-256 45d1cf3d4df284905a189f6b1056b0c95030ec7faf2e04e4bdb240754fc1f369

See more details on using hashes here.

File details

Details for the file tcsa-0.1.0-.py3-none-any.whl.

File metadata

  • Download URL: tcsa-0.1.0-.py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.8.3 requests/2.28.1 setuptools/65.4.1 requests-toolbelt/0.10.0 tqdm/4.64.1 CPython/3.7.5

File hashes

Hashes for tcsa-0.1.0-.py3-none-any.whl
Algorithm Hash digest
SHA256 d6d6be6aee4173dc992510f20318a67dfd5889e058805fc4f2a3872d5fb877bf
MD5 3c70ffa96dacfed44e2e539ba70082ff
BLAKE2b-256 7e0aaa4d041ba296804e30e9782b9c1289104c745c8b2c246b494c02ebc21957

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