temporalis segmentation pipeline to assess CSA of temporalis muscle
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 tcsa
Quick start
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tcsa-0.1.6.tar.gz
.
File metadata
- Download URL: tcsa-0.1.6.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b2851dda6763bfe0e5b536eef62c08646777948c658e42b44bd99580d06940 |
|
MD5 | 781aea8306fff783ed5f8b5c2193def1 |
|
BLAKE2b-256 | bedf9d941786ca8bc2506ea3aef0a4730babccd46924c68855ca79a89652767e |
File details
Details for the file tcsa-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: tcsa-0.1.6-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25211c49ffd46d22092b74f4f7232fd63dc308131649ab4f3e14e8364fb5d5a5 |
|
MD5 | 133b4fa048f4e919ddaff9d1672dbcd7 |
|
BLAKE2b-256 | 3ad8db55a63c9d220d125327bbebee120cf0c7df3dd46fb6b1c955fa1fb2ef78 |