Skip to main content

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

autoseg-1.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

autoseg-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for autoseg-1.1.0.tar.gz
Algorithm Hash digest
SHA256 64d21e8c239dbfb1fa8722592b6e52493c8aae131389223e616f3a5b89f7974b
MD5 d096054dd3c72f08534cf377bf37388d
BLAKE2b-256 9e54a10996ac6e8ecd29951eb596e8c78e005265640d3068e4593cc911066795

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoseg-1.1.0.tar.gz:

Publisher: publish.yml on Z-ttack/AutoSeg

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

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

Hashes for autoseg-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 268c704444359e44dd1af7a412163626ea1b631846cf0b094a9f619129cb264a
MD5 f7ac6bf8c56ead4c0c05ea0d69084d1e
BLAKE2b-256 c7f4d1bbce8d1ee76e90d891a66f91dcb50b32540ac52ce5f8984e5a03fef75f

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoseg-1.1.0-py3-none-any.whl:

Publisher: publish.yml on Z-ttack/AutoSeg

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.2

2 files

1.0.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page