Skip to content

Commit

Permalink
Modify things.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Apr 20, 2024
1 parent 14e3269 commit 908a916
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion content/02_Volume-wise_T2star_estimation_with_t2smap.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kernelspec:
# Volume-wise T2*/S0 estimation with `t2smap`

Use {py:func}`tedana.workflows.t2smap_workflow` {cite:p}`DuPre2021` to calculate volume-wise T2*/S0,
as in {cite:t}`power2018ridding` and {cite:t}`HEUNIS2021118244`.
as in {cite:t}`power2018ridding` and {cite:t}`heunis2021effects`.

```{code-cell} ipython3
import os
Expand Down
2 changes: 1 addition & 1 deletion content/Multi_Echo_Datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Accessing this dataset requires a data access application.

**Link**: https://doi.org/10.34894/R1TNL8

**Citation**: {cite:t}`HEUNIS2021118244`
**Citation**: {cite:t}`heunis2021effects`

**Brief Description**: 28 participants, with one run of resting-state,
one run of emotion-processing task, one run of imagined emotion-processing task,
Expand Down
11 changes: 9 additions & 2 deletions content/TE_Dependence.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,15 @@ mean_s0 = 16000
s0_std = mean_s0 * frac
# simulate the T2*/S0 time series
t2s_ts = np.random.normal(loc=mean_t2s, scale=t2s_std, size=(n_trs + 20,))
t2s_ts = signal.convolve(t2s_ts, hrf)[20 : n_trs + 20]
scales = np.random.random(5) * 3
t2s_ts = []
for section in range(10):
ts = np.hstack((np.zeros(10), np.ones(20), np.zeros(10)))
ts *= scales[section]
t2s_ts.append(ts)
t2s_ts = np.hstack(t2s_ts)[:n_trs + 20]
t2s_ts = signal.convolve(t2s_ts, hrf)[:n_trs]
t2s_ts *= t2s_std / np.std(t2s_ts)
t2s_ts += mean_t2s - np.mean(t2s_ts)
Expand Down
3 changes: 2 additions & 1 deletion content/book_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for the JupyterBook."""

import numpy as np
from nilearn import image, masking

Expand Down Expand Up @@ -95,7 +96,7 @@ def predict_bold_signal(echo_times, s0, t2s):
Echo times for which to predict data, in milliseconds.
s0 : numpy.ndarray of shape (time,)
S0 time series.
t2s : numpy.ndarray of shpae (time,)
t2s : numpy.ndarray of shape (time,)
T2* time series.
Returns
Expand Down
2 changes: 1 addition & 1 deletion content/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ @article{power2018ridding
publisher={National Acad Sciences}
}

@article{HEUNIS2021118244,
@article{heunis2021effects,
title = {The effects of multi-echo fMRI combination and rapid T2*-mapping on offline and real-time BOLD sensitivity},
journal = {NeuroImage},
volume = {238},
Expand Down

0 comments on commit 908a916

Please sign in to comment.