Skip to content

Commit b065045

Browse files
committed
Merge remote-tracking branch 'upstream/master' into next
2 parents 8a6fc42 + b8a1949 commit b065045

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.circleci/ds005_run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ docker run -it -e FMRIPREP_DEV=1 -u $(id -u) \
1717
--skull-strip-template MNI152NLin2009cAsym:res-2 \
1818
--sloppy --mem-gb 4 \
1919
--ncpus 2 --omp-nthreads 2 -vv \
20-
--no-msm \
2120
--fs-license-file /tmp/fslicense/license.txt \
2221
--fs-subjects-dir /tmp/ds005/freesurfer \
2322
--cifti-output \
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--simval=3,2
2+
--sigma_in=0,0
3+
--sigma_ref=0,0
4+
--lambda=0,10
5+
--it=20,5
6+
--opt=AFFINE,DISCRETE
7+
--CPgrid=6,2
8+
--SGgrid=6,4
9+
--datagrid=6,4
10+
--regoption=3
11+
--regexp=2
12+
--dopt=HOCR
13+
--VN
14+
--rescaleL
15+
--triclique
16+
--k_exponent=2
17+
--bulkmod=1.6
18+
--shearmod=0.4

smriprep/workflows/anatomical.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def init_anat_preproc_wf(
300300
surface_derivatives_wf = init_surface_derivatives_wf(
301301
msm_sulc=msm_sulc,
302302
cifti_output=cifti_output,
303+
sloppy=sloppy,
303304
)
304305
anat_ribbon_wf = init_anat_ribbon_wf()
305306
ds_surfaces_wf = init_ds_surfaces_wf(

smriprep/workflows/surfaces.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ def init_surface_derivatives_wf(
581581
*,
582582
msm_sulc: bool = False,
583583
cifti_output: ty.Literal["91k", "170k", False] = False,
584+
sloppy: bool = False,
584585
name="surface_derivatives_wf",
585586
):
586587
r"""
@@ -664,7 +665,7 @@ def init_surface_derivatives_wf(
664665
)
665666
gifti_morph_wf = init_gifti_morphometrics_wf()
666667
fsLR_reg_wf = init_fsLR_reg_wf()
667-
msm_sulc_wf = init_msm_sulc_wf()
668+
msm_sulc_wf = init_msm_sulc_wf(sloppy=sloppy)
668669
aseg_to_native_wf = init_segs_to_native_wf()
669670
aparc_to_native_wf = init_segs_to_native_wf(segmentation="aparc_aseg")
670671

@@ -780,7 +781,7 @@ def init_fsLR_reg_wf(*, name="fsLR_reg_wf"):
780781
return workflow
781782

782783

783-
def init_msm_sulc_wf(*, name: str = 'msm_sulc_wf'):
784+
def init_msm_sulc_wf(*, sloppy: bool = False, name: str = 'msm_sulc_wf'):
784785
"""Run MSMSulc registration to fsLR surfaces, per hemisphere."""
785786
from ..interfaces.msm import MSM
786787
from ..interfaces.workbench import SurfaceAffineRegression, SurfaceApplyAffine
@@ -820,8 +821,9 @@ def init_msm_sulc_wf(*, name: str = 'msm_sulc_wf'):
820821
# --indata=sub-${SUB}_ses-${SES}_hemi-${HEMI)_sulc.shape.gii \
821822
# --refdata=tpl-fsaverage_hemi-${HEMI}_den-164k_sulc.shape.gii \
822823
# --out=${HEMI}. --verbose
824+
msm_conf = load_resource(f'msm/MSMSulcStrain{"Sloppy" if sloppy else "Final"}conf')
823825
msmsulc = pe.MapNode(
824-
MSM(verbose=True, config_file=load_resource('msm/MSMSulcStrainFinalconf')),
826+
MSM(verbose=True, config_file=msm_conf),
825827
iterfield=['in_mesh', 'reference_mesh', 'in_data', 'reference_data', 'out_base'],
826828
name='msmsulc',
827829
mem_gb=2,

0 commit comments

Comments
 (0)