Skip to content

Commit 57058a6

Browse files
committed
ENH: Add MSMSulc registration by default
1 parent 9bde234 commit 57058a6

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ ENV LANG="C.UTF-8" \
242242
ENV MKL_NUM_THREADS=1 \
243243
OMP_NUM_THREADS=1
244244

245+
# MSM HOCR (Nov 19, 2019 release)
246+
RUN curl -L -H "Accept: application/octet-stream" https://api.github.com/repos/ecr05/MSM_HOCR/releases/assets/16253707 -o /usr/local/bin/msm \
247+
&& chmod +x /usr/local/bin/msm
248+
245249
# Installing FMRIPREP
246250
COPY --from=src /src/fmriprep/dist/*.whl .
247251
RUN pip install --no-cache-dir $( ls *.whl )[container,test]

fmriprep/cli/parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@ def _slice_time_ref(value, parser):
425425
"Optionally, the number of grayordinate can be specified "
426426
"(default is 91k, which equates to 2mm resolution)",
427427
)
428+
g_outputs.add_argument(
429+
"--no-msm",
430+
action="store_false",
431+
dest="run_msmsulc",
432+
help="Disable Multimodal Surface Matching surface registration.",
433+
)
428434

429435
g_aroma = parser.add_argument_group("[DEPRECATED] Options for running ICA_AROMA")
430436
g_aroma.add_argument(

fmriprep/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ class workflow(_Config):
537537
"""Ignore particular steps for *fMRIPrep*."""
538538
longitudinal = False
539539
"""Run FreeSurfer ``recon-all`` with the ``-logitudinal`` flag."""
540+
run_msmsulc = True
541+
"""Run Multimodal Surface Matching surface registration."""
540542
medial_surface_nan = None
541543
"""Fill medial surface with :abbr:`NaNs (not-a-number)` when sampling."""
542544
project_goodvoxels = False

fmriprep/workflows/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ def init_single_subject_wf(subject_id: str):
312312
hires=config.workflow.hires,
313313
longitudinal=config.workflow.longitudinal,
314314
omp_nthreads=config.nipype.omp_nthreads,
315+
msm_sulc=config.workflow.run_msmsulc,
315316
output_dir=fmriprep_dir,
316317
skull_strip_fixed_seed=config.workflow.skull_strip_fixed_seed,
317318
skull_strip_mode=config.workflow.skull_strip_t1w,

0 commit comments

Comments
 (0)