Skip to main content

BrkRaw extension for Diffusion Tensor Imaging (DTI) support

Project description

BrkRaw DTI Extension

This hook provides Diffusion Tensor Imaging (DTI) support for BrkRaw.

Features

  1. DTI Conversion:

    • Automatically exports .bval and .bvec (FSL format) files alongside the NIfTI image.
    • Correctly reorients gradient vectors (bvecs) from the logical frame to the image frame (RAS+).
  2. DTI Viewer & QC:

    • Adds a DTI Tab to the BrkRaw Viewer.
    • Calculate DTI: Performs real-time Tensor fitting (OLS).
    • Visualization: Displays Fractional Anisotropy (FA), Mean Diffusivity (MD), and Directionally Encoded Color FA (DEC-FA) maps directly in the viewer.
    • DEC-FA QC: Allows immediate verification of gradient orientation (Red: L-R, Green: A-P, Blue: S-I).

Usage

Conversion

The hook is automatically selected for scans with diffusion directions (PVM_DwNDiffDir > 0).

brkraw convert /path/to/study -s 10

Viewer

Open the viewer and select a DTI scan. The "DTI" tab will appear in the control panel.

  1. Click Calculate DTI.
  2. Wait for the calculation to finish.
  3. Use the dropdown to switch between FA, MD, DEC-FA, and b0 views.

Installation

pip install .
brkraw hook install dti

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

brkraw_dti-0.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

brkraw_dti-0.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brkraw_dti-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brkraw_dti-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6c97372ba9858e84bf26a30d3f0760a7ffa86588ea3e05d42602da517f52f09
MD5 77de07c63b6f2ce60e92b45de93943bc
BLAKE2b-256 b9347e4da5050e17e2088e16544f911582dd1aaf4263c1464cca3282ef734cf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_dti-0.1.0.tar.gz:

Publisher: publish.yml on BrkRaw/brkraw-dti

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

File details

Details for the file brkraw_dti-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: brkraw_dti-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brkraw_dti-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee361c723047eaae52459f079be3e931d6c4e8cc660e8c6421421ac2a62d6c8
MD5 57323c7877e5958e7b8041830f8e07d0
BLAKE2b-256 0d141f95df5bd1f25d5e5ac1e47fcc22647d1e3f333490d6eb5c530bb7b5e543

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_dti-0.1.0-py3-none-any.whl:

Publisher: publish.yml on BrkRaw/brkraw-dti

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