Skip to content

Commit a3d9737

Browse files
committed
ENH: Save metadata for T2starmaps
1 parent c9e9024 commit a3d9737

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.circleci/ds210_fasttrack_outputs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-b
2929
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
3030
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.json
3131
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
32+
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_T2starmap.json
3233
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_T2starmap.nii.gz
3334
fmriprep/sub-02.html
3435
/tmp/ds210/derivatives

.circleci/ds210_outputs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-b
4848
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
4949
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.json
5050
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
51+
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_T2starmap.json
5152
fmriprep/sub-02/func/sub-02_task-cuedSGT_run-01_space-MNI152NLin2009cAsym_T2starmap.nii.gz
5253
fmriprep/sub-02.html
5354
/tmp/ds210/derivatives

fmriprep/workflows/bold/outputs.py

+14-3
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ def init_func_derivatives_wf(
169169
# BOLD series will generally be unmasked unless multiecho,
170170
# as the optimal combination is undefined outside a bounded mask
171171
masked = multiecho
172+
t2star_meta = {
173+
'Units': 's',
174+
'EstimationReference': 'doi:10.1002/mrm.20900',
175+
'EstimationAlgorithm': 'monoexponential decay model',
176+
}
172177

173178
inputnode = pe.Node(niu.IdentityInterface(fields=[
174179
'aroma_noise_ics', 'bold_aparc_std', 'bold_aparc_t1', 'bold_aseg_std',
@@ -248,13 +253,15 @@ def init_func_derivatives_wf(
248253
if multiecho:
249254
ds_t2star_bold = pe.Node(
250255
DerivativesDataSink(base_directory=output_dir, space='boldref',
251-
suffix='T2starmap', compress=True, dismiss_entities=("echo",)),
256+
suffix='T2starmap', compress=True, dismiss_entities=("echo",),
257+
**t2star_meta),
252258
name='ds_t2star_bold', run_without_submitting=True,
253259
mem_gb=DEFAULT_MEMORY_MIN_GB)
254260

255261
workflow.connect([
256262
(inputnode, ds_t2star_bold, [('source_file', 'source_file'),
257263
('t2star_bold', 'in_file')]),
264+
(raw_sources, ds_t2star_bold, [('out', 'RawSources')]),
258265
])
259266

260267
if multiecho and config.execution.me_output_echos:
@@ -322,13 +329,15 @@ def init_func_derivatives_wf(
322329
if multiecho:
323330
ds_t2star_t1 = pe.Node(
324331
DerivativesDataSink(base_directory=output_dir, space='T1w',
325-
suffix='T2starmap', compress=True, dismiss_entities=("echo",)),
332+
suffix='T2starmap', compress=True, dismiss_entities=("echo",),
333+
**t2star_meta),
326334
name='ds_t2star_t1', run_without_submitting=True,
327335
mem_gb=DEFAULT_MEMORY_MIN_GB)
328336

329337
workflow.connect([
330338
(inputnode, ds_t2star_t1, [('source_file', 'source_file'),
331339
('t2star_t1', 'in_file')]),
340+
(raw_sources, ds_t2star_t1, [('out', 'RawSources')]),
332341
])
333342

334343
if use_aroma:
@@ -457,7 +466,8 @@ def init_func_derivatives_wf(
457466
if multiecho:
458467
ds_t2star_std = pe.Node(
459468
DerivativesDataSink(base_directory=output_dir, suffix='T2starmap',
460-
compress=True, dismiss_entities=("echo",)),
469+
compress=True, dismiss_entities=("echo",),
470+
**t2star_meta),
461471
name='ds_t2star_std', run_without_submitting=True,
462472
mem_gb=DEFAULT_MEMORY_MIN_GB)
463473

@@ -468,6 +478,7 @@ def init_func_derivatives_wf(
468478
('cohort', 'cohort'),
469479
('resolution', 'resolution'),
470480
('density', 'density')]),
481+
(raw_sources, ds_t2star_std, [('out', 'RawSources')]),
471482
])
472483

473484
fs_outputs = spaces.cached.get_fs_spaces()

0 commit comments

Comments
 (0)