Skip to content

Commit

Permalink
ENH: Save msm registration sphere as desc-msm_sphere.surf.gii (#365)
Browse files Browse the repository at this point in the history
Follow-up to #358 in smriprep-next. This continues to save the initial `space-fsLR_desc-reg_sphere.surf.gii` and adds `space-fsLR_desc-msm_sphere.surf.gii`.
  • Loading branch information
effigies authored Sep 7, 2023
1 parent b065045 commit f6b842f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .circleci/ds005_outputs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ smriprep/sub-01/anat/sub-01_hemi-L_desc-reg_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_inflated.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_midthickness.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_pial.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_space-fsLR_desc-msmsulc_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_space-fsLR_desc-reg_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_sulc.shape.gii
smriprep/sub-01/anat/sub-01_hemi-L_thickness.shape.gii
Expand All @@ -34,6 +35,7 @@ smriprep/sub-01/anat/sub-01_hemi-R_desc-reg_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_inflated.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_midthickness.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_pial.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_space-fsLR_desc-msmsulc_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_space-fsLR_desc-reg_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_sulc.shape.gii
smriprep/sub-01/anat/sub-01_hemi-R_thickness.shape.gii
Expand Down
3 changes: 3 additions & 0 deletions smriprep/workflows/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ def init_anat_preproc_wf(
# fmt:on
if freesurfer:
surfaces = ["white", "pial", "midthickness", "inflated", "sphere_reg", "sphere_reg_fsLR"]
if msm_sulc:
surfaces.append("sphere_reg_msm")

surface_derivatives_wf = init_surface_derivatives_wf(
msm_sulc=msm_sulc,
cifti_output=cifti_output,
Expand Down
8 changes: 6 additions & 2 deletions smriprep/workflows/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,13 @@ def init_ds_surfaces_wf(
run_without_submitting=True,
)
if surf.startswith("sphere_reg"):
ds_surf.inputs.desc = "reg"
if surf == "sphere_reg_fsLR":
if surf == "sphere_reg_msm":
ds_surf.inputs.desc = "msmsulc"
ds_surf.inputs.space = "fsLR"
else:
ds_surf.inputs.desc = "reg"
if surf == "sphere_reg_fsLR":
ds_surf.inputs.space = "fsLR"

# fmt:off
workflow.connect([
Expand Down

0 comments on commit f6b842f

Please sign in to comment.