Skip to content

Merge walkthrough figures into the Signal Decay and TE Dependence chapters - #108

Merged
tsalo merged 2 commits into
mainfrom
merge-approach-figures
Nov 18, 2026
Merged

tsalo merged 2 commits into
mainfrom
merge-approach-figures

Conversation

@tsalo

@tsalo tsalo commented Nov 18, 2026

Copy link
Copy Markdown
Member

Summary

Removes plot_approach_figures and merges its content into the two chapters it was written for, then revises both chapters so they read as teaching material for someone new to multi-echo fMRI.

Signal Decay

  • Introduces the monoexponential decay model at the start, and explains why it is used even though real decay is multi-exponential.
  • New section that fits S0 and T2* to a real voxel with the log-linear model (one two-panel figure replaces four walkthrough figures), followed by a section on noise across echoes.
  • Corrects the description of decay and of T2*-weighted vs. BOLD contrast, and explains what to look for in each real-data figure.
  • Uses one baseline T2* (45 ms) in all simulations, labels exaggerated fluctuations as such, and computes the contrast peak instead of asserting it.
  • Figure fixes: one colorbar in the brain-decay figure, a visible color for the last echo, correct ticks and labels in the animations, descriptive headings and captions, and a merged single-echo comparison figure.
  • Adds a closing summary that links to the next chapters.

TE Dependence

  • Rewrites the first half: derives the linearized signal model, defines the TE-dependence and TE-independence models and their F-statistics before kappa and rho appear, and replaces notes-to-self with explanations.
  • Fixes the BOLD/non-BOLD simulation figure (wrong denominator, missing tick labels, unrealistic 20% change) and simulates components at the dataset's five echo times, with pure and mixed components.
  • New walkthrough of tedana on real data: adaptive mask, optimal combination, why a decomposition is needed, PCA, ICA, model fits for an accepted and a rejected component, MEDN/MEHK, GSR, and minimum image regression.
  • Corrects the dimensions and wording of the minimum image regression algorithm.

Both chapters' "Important" planning notes are removed, since their items are now covered.

Dropped from the walkthrough on purpose: two figures that duplicated existing ones, a scatter plot that placed optimally combined data at x = T2*, and the "before vs. after PCA" voxel trace (tedana's whitened output is z-scored per voxel and does not look like a denoised version of the original).

Execution cache

Code cells in both chapters changed, so the published execution cache is stale for them. Both notebooks were executed locally and make check-cache reports 22 of 22 notebooks cached. make publish-cache needs to be run before or right after merging, or the build on main will fail.

🤖 Generated with Claude Code

Remove plot_approach_figures and move its content where it fits:

- Signal_Decay: introduce the monoexponential decay model up front and
  add a section that fits S0 and T2* to a real voxel with the
  log-linear model (one two-panel figure replaces four).
- TE_Dependence: add a walkthrough of tedana on real data (adaptive
  mask, optimal combination, PCA, ICA, kappa/rho model fits, MEDN/MEHK,
  and minimum image regression).

Also rewrite the first half of TE_Dependence: derive the linearized
signal model, define the TE-dependence and TE-independence models and
their F-statistics before kappa and rho are used, fix the BOLD/non-BOLD
simulation figure, simulate components with realistic echo times and
fluctuations, and correct the dimensions and wording of the MIR
algorithm.
Signal_Decay:
- Correct the description of decay and of T2*-weighted vs. BOLD
  contrast, and explain the real-data figures (spread across echoes,
  echo-wise time series, first-volume spike).
- Use one simulated baseline T2* (45 ms), label exaggerated
  fluctuations, and compute the contrast peak instead of asserting it.
- Use one colorbar in the brain figure, drop the lightest echo color,
  fix animation ticks, labels, headings, and captions, and merge the
  two single-echo comparison plots into one figure.
- Add sections on other decay models, noise across echoes, and a
  closing summary.

TE_Dependence:
- Describe tedana's GSR and how it differs from MIR.

Remove the "Important" planning notes from both chapters, whose items
are now covered.
@tsalo
tsalo merged commit b551e9d into main Nov 18, 2026
2 checks passed
@tsalo
tsalo deleted the merge-approach-figures branch November 18, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant