Skip to main content

Dash app to generate textures maps from MRI

Project description

noelTexturesPy

Dash app to generate textures maps from MRI using Advanced Normalization Tools (ANTsPy)


Documentation: https://noel-mni.github.io/noelTexturesPy/


Prerequisites

  • Pixi (for local installation)
  • Docker (for Docker installation)

Installing Pixi

# Linux/macOS (recommended method)
curl -fsSL https://pixi.sh/install.sh | sh

# Alternative methods:
# Homebrew (macOS): brew install pixi

# Add pixi to your PATH (if not automatically added)
export PATH="$HOME/.pixi/bin:$PATH"
echo 'export PATH="$HOME/.pixi/bin:$PATH"' >> ~/.bashrc

OS specific installation instructions: https://github.com/NOEL-MNI/noelTexturesPy/wiki/Installation

Local Installation with Pixi

For local development using pixi:

# Clone the repository
git clone https://github.com/NOEL-MNI/noelTexturesPy.git
cd noelTexturesPy

# Install dependencies and create environment using pixi
pixi install

# Run the application
pixi run textures_app

# Or with custom port
pixi run textures_app --port 9988

# Or in debug mode
pixi run textures_app --debug --port 9988

Access the Web UI at http://localhost:9999 (or your specified port)

CLI (Headless)

textures_cli runs the same pipeline without a browser — suitable for batch processing, HPC clusters, and scripted workflows.

# T1 only
textures_cli --t1 sub-001/t1.nii.gz

# T1 + FLAIR, explicit case ID and output directory
textures_cli --t1 sub-001/t1.nii.gz --t2 sub-001/flair.nii.gz \
             --case-id sub001 --output-dir ./results/sub-001

# Full help
textures_cli --help

See the full CLI reference for all options.

Run the app (using prebuilt images)

docker pull noelmni/textures-py:latest
docker run --rm -p 9999:9999 noelmni/textures-py:latest

Access the Web UI at http://localhost:9999

Usage noelTexturesPy GIF

Build the app

M1 Apple Silicon supported/tested, M2, M3, M4 untested as of 01-July-2025 (but will likely work without issues)

git clone https://github.com/NOEL-MNI/noelTexturesPy.git
cd noelTexturesPy
PLATFORMS=linux/arm64,linux/amd64
TAG=latest
docker buildx build --push --platform ${PLATFORMS} -t noelmni/pynoel-gui-base:${TAG} base-docker-image/
docker buildx build --push --platform ${PLATFORMS} -t noelmni/textures-py:${TAG} . --build-arg BASE_SHORT_SHA_TAG=${TAG}

Troubleshoot buildx errors

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap

Required inputs

Please ensure the file(s) are renamed accordingly before uploading it to noelTexturesPy.

- T1-weighted image must include the string "t1" or "T1" in its filename, and/or
- T2-weighted (or FLAIR) image must include either "t2", "T2", "flair", or "FLAIR"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noel_textures_py-1.0.1.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

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

noel_textures_py-1.0.1-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: noel_textures_py-1.0.1.tar.gz
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for noel_textures_py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7404b8f138530b9cb566bf04b6caf02e0dfb68ec23016f2190c77d91895c13d0
MD5 753003c48d8e477f669f663fd82145f3
BLAKE2b-256 c8a10097cb05ed2335d5789f7eb5524b6fd383d904619132aa758a25f1e17819

See more details on using hashes here.

Provenance

The following attestation bundles were made for noel_textures_py-1.0.1.tar.gz:

Publisher: release.yml on NOEL-MNI/noelTexturesPy

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

File details

Details for the file noel_textures_py-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for noel_textures_py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c5de1e74d195beba36f7813b948d943f17a6304feb552e04f65f68bf9648ace
MD5 98e45ca9e7c243cd4184116227389c68
BLAKE2b-256 b5ed02865a9cb43cc085e1b119c371a89a2c06317c0f7ab5f0599cb83611356f

See more details on using hashes here.

Provenance

The following attestation bundles were made for noel_textures_py-1.0.1-py3-none-any.whl:

Publisher: release.yml on NOEL-MNI/noelTexturesPy

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page