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" teeth

If you leave the task name off, AutoSeg prompts for it during runtime:

autoseg "C:\path\to\scans"

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.

Examples:

C:\data\patient01\scan.nii.gz
C:\data\patient01\scan_segmentations\

C:\data\patient02\upper_jaw.nii
C:\data\patient02\upper_jaw_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-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

autoseg-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autoseg-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autoseg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55e335d28938fb987ad301b3d29c53b69c59f52575f3755ae306240d0d360f66
MD5 294d11b29946a1d335d66ab8da6e48e8
BLAKE2b-256 7b634424b4ccde22c40ba656d445ec9767de8366c76ee5ac29a5c42ab3697d39

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoseg-0.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-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: autoseg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autoseg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc2923005a576b8952a057b9a71f1b4da8c93a466bc8a588c0fad35d8b9ccb3
MD5 0d9d4cabf574ede4c7a232e91d9ce609
BLAKE2b-256 71beb2cea5c93a2a75c7694a8cb32df2799a385ecbe4d31ce6467316581a6656

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoseg-0.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

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

This release

0.1.0 This release

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