Skip to content

Commit

Permalink
Merge pull request #446 from tsalo/fsaverage-reg-sphere
Browse files Browse the repository at this point in the history
Add `space-fsaverage` to `sphere_reg` output files
  • Loading branch information
effigies authored Jul 26, 2024
2 parents c361b3a + babeaca commit 366df6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/ds005_outputs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ smriprep/sub-01/anat/sub-01_dseg.nii.gz
smriprep/sub-01/anat/sub-01_from-fsnative_to-T1w_mode-image_xfm.txt
smriprep/sub-01/anat/sub-01_from-T1w_to-fsnative_mode-image_xfm.txt
smriprep/sub-01/anat/sub-01_hemi-L_curv.shape.gii
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_space-fsaverage_desc-reg_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-L_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
smriprep/sub-01/anat/sub-01_hemi-L_white.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_curv.shape.gii
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_space-fsaverage_desc-reg_sphere.surf.gii
smriprep/sub-01/anat/sub-01_hemi-R_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
14 changes: 6 additions & 8 deletions smriprep/workflows/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,15 +758,13 @@ def init_ds_surfaces_wf(
run_without_submitting=True,
)
if surf.startswith('sphere_reg'):
if surf == 'sphere_reg_msm':
ds_surf.inputs.desc = 'msmsulc'
ds_surf.inputs.space, ds_surf.inputs.desc = 'fsaverage', 'reg' # Default
if surf == 'sphere_reg_fsLR':
ds_surf.inputs.space = 'fsLR'
else:
ds_surf.inputs.desc = 'reg'
if surf == 'sphere_reg_fsLR':
ds_surf.inputs.space = 'fsLR'
elif surf == 'sphere_reg_dhcpAsym':
ds_surf.inputs.space = 'dhcpAsym'
elif surf == 'sphere_reg_dhcpAsym':
ds_surf.inputs.space = 'dhcpAsym'
elif surf == 'sphere_reg_msm':
ds_surf.inputs.space, ds_surf.inputs.desc = 'fsLR', 'msmsulc'

# fmt:off
workflow.connect([
Expand Down

0 comments on commit 366df6e

Please sign in to comment.