Skip to content

Commit ed204e4

Browse files
authored
Merge pull request #2117 from tsalo/maint/tedana-version
[MAINT] Pin tedana version
2 parents 9ed9e7e + ff132a5 commit ed204e4

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

docs/workflows.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ A visualization of the AROMA component classification is also included in the HT
568568

569569
.. _bold_t2s:
570570

571-
T2* Driven Coregistration
572-
~~~~~~~~~~~~~~~~~~~~~~~~~
571+
T2*-driven echo combination
572+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
573573
:py:func:`~fmriprep.workflows.bold.t2s.init_bold_t2s_wf`
574574

575575
If multi-echo :abbr:`BOLD (blood-oxygen level-dependent)` data is supplied,

fmriprep/interfaces/multiecho.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
1717
"""
1818
import os
19-
from nibabel.filename_parser import splitext_addext
2019

2120
from nipype import logging
2221
from nipype.interfaces.base import (
@@ -39,13 +38,21 @@ class T2SMapInputSpec(CommandLineInputSpec):
3938
mandatory=True,
4039
minlen=3,
4140
desc='echo times')
41+
fittype = traits.Enum('curvefit', 'loglin',
42+
argstr='--fittype %s',
43+
position=3,
44+
usedefault=True,
45+
desc=('Desired fitting method: '
46+
'"loglin" means that a linear model is fit '
47+
'to the log of the data. '
48+
'"curvefit" means that a more computationally '
49+
'demanding monoexponential model is fit '
50+
'to the raw data.'))
4251

4352

4453
class T2SMapOutputSpec(TraitedSpec):
4554
t2star_map = File(exists=True, desc='limited T2* map')
46-
s0_map = File(exists=True, desc='limited s0 map')
47-
t2star_adaptive_map = File(exists=True, desc='adaptive T2* map')
48-
s0_adaptive_map = File(exists=True, desc='adaptive s0 map')
55+
s0_map = File(exists=True, desc='limited S0 map')
4956
optimal_comb = File(exists=True, desc='optimally combined ME-EPI time series')
5057

5158

@@ -64,7 +71,7 @@ class T2SMap(CommandLine):
6471
>>> t2smap.inputs.echo_times = [0.013, 0.027, 0.043]
6572
>>> t2smap.cmdline # doctest: +ELLIPSIS
6673
't2smap -d sub-01_run-01_echo-1_bold.nii.gz sub-01_run-01_echo-2_bold.nii.gz \
67-
sub-01_run-01_echo-3_bold.nii.gz -e 13.0 27.0 43.0'
74+
sub-01_run-01_echo-3_bold.nii.gz -e 13.0 27.0 43.0 --fittype curvefit'
6875
"""
6976
_cmd = 't2smap'
7077
input_spec = T2SMapInputSpec
@@ -77,13 +84,8 @@ def _format_arg(self, name, trait_spec, value):
7784

7885
def _list_outputs(self):
7986
outputs = self._outputs().get()
80-
filename = splitext_addext(os.path.basename(self.inputs.in_files[0]))[0]
81-
out_dir = os.path.abspath('TED.{}'.format(filename))
82-
83-
outputs['t2star_map'] = os.path.join(out_dir, 't2sv.nii')
84-
outputs['s0_map'] = os.path.join(out_dir, 's0v.nii')
85-
outputs['t2star_adaptive_map'] = os.path.join(out_dir, 't2svG.nii')
86-
outputs['s0_adaptive_map'] = os.path.join(out_dir, 's0vG.nii')
87-
outputs['optimal_comb'] = os.path.join(out_dir, 'ts_OC.nii')
88-
87+
out_dir = os.getcwd()
88+
outputs['t2star_map'] = os.path.join(out_dir, 'T2starmap.nii.gz')
89+
outputs['s0_map'] = os.path.join(out_dir, 'S0map.nii.gz')
90+
outputs['optimal_comb'] = os.path.join(out_dir, 'desc-optcom_bold.nii.gz')
8991
return outputs

fmriprep/workflows/bold/t2s.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def init_bold_t2s_wf(echo_times, mem_gb, omp_nthreads,
6161
workflow = Workflow(name=name)
6262
workflow.__desc__ = """\
6363
A T2* map was estimated from the preprocessed BOLD by fitting to a monoexponential signal
64-
decay model with log-linear regression.
64+
decay model with nonlinear regression, using T2*/S0 estimates from a log-linear
65+
regression fit as initial values.
6566
For each voxel, the maximal number of echoes with reliable signal in that voxel were
6667
used to fit the model.
6768
The calculated T2* map was then used to optimally combine preprocessed BOLD across

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install_requires =
3535
pyyaml
3636
sdcflows @ git+https://github.com/nipreps/sdcflows.git@master
3737
smriprep @ git+https://github.com/poldracklab/smriprep.git@master
38-
tedana >= 0.0.5
38+
tedana >= 0.0.9a1, < 0.0.10
3939
templateflow ~= 0.6
4040
toml
4141
test_requires =

0 commit comments

Comments
 (0)