Skip to main content

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

Metadata

Release files for brkraw-dti 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brkraw-dti 0.1.0
File Size Uploaded
brkraw_dti-0.1.0.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brkraw-dti 0.1.0
File Interpreter ABI Platform
brkraw_dti-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.8 kB

Release files / brkraw_dti-0.1.0.tar.gz

Download URL brkraw_dti-0.1.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d6c97372ba9858e84bf26a30d3f0760a7ffa86588ea3e05d42602da517f52f09
BLAKE2b-256 checksum
How to use checksums
b9347e4da5050e17e2088e16544f911582dd1aaf4263c1464cca3282ef734cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2026.

Transparency log

Release files / brkraw_dti-0.1.0-py3-none-any.whl

Download URL brkraw_dti-0.1.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ee361c723047eaae52459f079be3e931d6c4e8cc660e8c6421421ac2a62d6c8
BLAKE2b-256 checksum
How to use checksums
0d141f95df5bd1f25d5e5ac1e47fcc22647d1e3f333490d6eb5c530bb7b5e543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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