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-1.0.1.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-1.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autoseg-1.0.1.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-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e5249553858f344f05607153e3feae7e1256bef4643a82243f34182091d89d87
MD5 8ce122b5f7ed6254adc1e36143862783
BLAKE2b-256 28dd82e2c2fffb9842b6ab500cdc7280adcdc9d70f5defb027015507e211e75d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: autoseg-1.0.1-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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d932866bd4dd35db24f99d877fedd8721e456568757b475576d8276df0ac0aa
MD5 a64f183db6d7b2858b5e801772085e6d
BLAKE2b-256 ec6044d77236b48794ebf070d126a5f9fb70192570961b8eb0998f3834802875

See more details on using hashes here.

Provenance

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

This release

1.0.1 This release

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