AutoSeg
AutoSeg runs TotalSegmentator on every .nii or .nii.gz file inside a folder tree.
Given a root folder, it searches that folder and all subfolders for NIfTI files, runs:
TotalSegmentator -i <input_file> -o <output_folder> -ta <task>
and saves each segmentation output beside the source scan.
Requirements
- Python 3.9 or newer
- TotalSegmentator installed and available on your command line
Install TotalSegmentator separately before using this package. You should be able to run:
TotalSegmentator --help
Install
After this package is published to PyPI, users will be able to install it with:
pip install autoseg
Task Argument
AutoSeg adds the -ta flag to the TotalSegmentator command for you. You only need to provide the task name:
autoseg "C:\path\to\scans" total
Usage
Run AutoSeg on a folder:
autoseg "C:\path\to\scans" total
Use another TotalSegmentator task by passing the task name after the folder:
autoseg "C:\path\to\scans" <task name>
If you leave the task name off, AutoSeg prompts for it during runtime:
autoseg "C:\path\to\scans"
Use TotalSegmentator's --statistics option for volume and intensity calculations
autoseg "C:\path\to\scans" <task name> statistics
Preview what would run without starting TotalSegmentator (Reduced wait time for testing/troubleshooting):
autoseg "C:\path\to\scans" total --dry-run
Output Folders
For each input file, AutoSeg creates a segmentation folder in the same directory as the scan.
Example:
C:\data\patient01\scan.nii.gz
C:\data\patient01\scan_segmentations\
If the expected output folder already exists and contains files, AutoSeg skips that scan so it does not run segmentation again.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoseg-1.1.0.tar.gz.
File metadata
- Download URL: autoseg-1.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64d21e8c239dbfb1fa8722592b6e52493c8aae131389223e616f3a5b89f7974b
|
|
| MD5 |
d096054dd3c72f08534cf377bf37388d
|
|
| BLAKE2b-256 |
9e54a10996ac6e8ecd29951eb596e8c78e005265640d3068e4593cc911066795
|
Provenance
The following attestation bundles were made for autoseg-1.1.0.tar.gz:
Publisher:
publish.yml on Z-ttack/AutoSeg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autoseg-1.1.0.tar.gz -
Subject digest:
64d21e8c239dbfb1fa8722592b6e52493c8aae131389223e616f3a5b89f7974b - Sigstore transparency entry: 2470535054
- Sigstore integration time:
-
Permalink:
Z-ttack/AutoSeg@8ddeadbcb954179ea475b5449b2c161ea3b69772 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Z-ttack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8ddeadbcb954179ea475b5449b2c161ea3b69772 -
Trigger Event:
release
-
Statement type:
File details
Details for the file autoseg-1.1.0-py3-none-any.whl.
File metadata
- Download URL: autoseg-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268c704444359e44dd1af7a412163626ea1b631846cf0b094a9f619129cb264a
|
|
| MD5 |
f7ac6bf8c56ead4c0c05ea0d69084d1e
|
|
| BLAKE2b-256 |
c7f4d1bbce8d1ee76e90d891a66f91dcb50b32540ac52ce5f8984e5a03fef75f
|
Provenance
The following attestation bundles were made for autoseg-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on Z-ttack/AutoSeg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autoseg-1.1.0-py3-none-any.whl -
Subject digest:
268c704444359e44dd1af7a412163626ea1b631846cf0b094a9f619129cb264a - Sigstore transparency entry: 2470535099
- Sigstore integration time:
-
Permalink:
Z-ttack/AutoSeg@8ddeadbcb954179ea475b5449b2c161ea3b69772 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/Z-ttack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8ddeadbcb954179ea475b5449b2c161ea3b69772 -
Trigger Event:
release
-
Statement type: