Skip to content

Commit

Permalink
Replace MATLAB NORDIC with dwidenoise.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 9, 2024
1 parent 1100818 commit ae12709
Show file tree
Hide file tree
Showing 7 changed files with 698 additions and 493 deletions.
20 changes: 15 additions & 5 deletions fmriprep/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,16 @@ def _slice_time_ref(value, parser):
action='store',
nargs='+',
default=[],
choices=['fieldmaps', 'slicetiming', 'sbref', 't2w', 'flair', 'fmap-jacobian'],
choices=[
'fieldmaps',
'slicetiming',
'sbref',
't2w',
'flair',
'fmap-jacobian',
'phase',
'norf',
],
help='Ignore selected aspects of the input dataset to disable corresponding '
'parts of the workflow (a space delimited list)',
)
Expand Down Expand Up @@ -448,11 +457,12 @@ def _slice_time_ref(value, parser):
),
)
g_conf.add_argument(
'--use-nordic',
action='store_true',
dest='use_nordic',
'--thermal-denoise-method',
action='store',
dest='thermal_denoise_method',
default=None,
help='Apply NORDIC denoising to the BOLD data',
choices=['nordic', 'mppca'],
help='Apply NORDIC or MP-PCA denoising to the BOLD data to remove thermal noise',
)

g_outputs = parser.add_argument_group('Options for modulating outputs')
Expand Down
4 changes: 2 additions & 2 deletions fmriprep/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ class workflow(_Config):
in the absence of any alternatives."""
me_t2s_fit_method = 'curvefit'
"""The method by which to estimate T2*/S0 for multi-echo data"""
use_nordic = None
"""Apply NORDIC denoising to the BOLD data."""
thermal_denoise_method = None
"""Apply NORDIC or MP-PCA denoising to the BOLD data to remove thermal noise."""


class loggers:
Expand Down
Loading

0 comments on commit ae12709

Please sign in to comment.