Add DTI measures#41
Draft
valosekj wants to merge 49 commits into
Draft
Conversation
Member
Author
|
2026-04-21 DCM norm meeting:
|
…used for final database)
…ile before concatenation
Member
Author
|
Right now T2w -> template reg uses all discs for PAM50-normalized-metrics/processing_scripts/process_data_spine-generic_dwi.sh Lines 225 to 228 in 973fbec TODO: try only 2 labels to be consistent with SCT course |
… SCT course. Context: #41
Tests whether warping commutes with DTI computation: compute(warp(E1,E2,E3)) should match warp(compute(E1,E2,E3)) = warp(FA/MD/RD/AD) - sct_dmri_compute_dti now runs with -evecs 1 to also output eigenvalues E1, E2, E3 (and eigenvectors V1, V2, V3). - New section code warps E1, E2, E3 to PAM50, recomputes FA/MD/RD/AD via the new compute_dti_from_evals.py helper script, and extracts per-slice metrics
Reverts the SCT-course-style 2-label setup (commit 0d0b607) for consistency with previous runs. The 2-label code is kept commented out for reference.
Point directly to the repo path
…ce for a single subject
- generate_figures_dti.py -> generate_figures_dti_PAM50_all_subjects.py - compare_FA_PAM50_single_subject.py -> generate_figure_FA_PAM50_single_subject.py
5 tasks
Verified in #41 (comment)
…prove code readability
(sct_deepseg_sc fallback wasn't issue as I reused spine-generic derivatives; but it's a good idea to use the CAv3 model for future new T2w images)
as we decided on preprocessing steps: sct_get_centerline to create a 35mm mask for sct_dmri_moco (--metric CC) and sct_deepseg spinalcord for cord DWI seg. No denoising
for now, it was okay as I was reusing spine-generic derivatives, but for future images, let's use TTS instead of sct_label_vertebrae
Member
Author
|
TODO Sanity check on spine-generic: compare normative curves between labels under derivatives vs automatically obtained ones. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds a processing script to get DTI metrics in the PAM50 space.
Dataset: spine-generic multi-subject (C2-C5 DWI; n=201 healthy subjects)
Approach:
Method: Warping DTI metrics to PAM50
sct_register_to_template(T2w to PAM50)sct_register_multimodal(PAM50 to DWI; using T2w-PAM50 as init warp)sct_apply_transfo(Warp DTI maps to PAM50)Method: Interpolating DTI metrics to PAM50
More details and first results: G Slides presentation
Resolves #17