Skip to content

Commit

Permalink
FIX: Update outputnode spec, restore anat_ribbon
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 29, 2023
1 parent fcd3b70 commit ada4a7d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions smriprep/data/io_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,17 @@
"suffix": "sphere",
"extension": ".surf.gii"
}
},
"masks": {
"anat_ribbon": {
"datatype": "anat",
"desc": "ribbon",
"suffix": "mask",
"extension": [
".nii.gz",
".nii"
]
}
}
},
"patterns": [
Expand Down
6 changes: 5 additions & 1 deletion smriprep/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ def get_outputnode_spec():
'anat2std_xfm', 'std2anat_xfm',
't1w_aseg', 't1w_aparc',
't1w2fsnative_xfm', 'fsnative2t1w_xfm',
'surfaces', 'morphometrics', 'anat_ribbon']
'white', 'pial', 'midthickness', 'sphere',
'thickness', 'sulc', 'curv',
'sphere_reg', 'sphere_reg_fsLR', 'sphere_reg_msm',
'anat_ribbon']
"""
spec = loads(Path(pkgrf("smriprep", "data/io_spec.json")).read_text())["queries"]
fields = ["_".join((m, s)) for m in ("t1w", "std") for s in spec["baseline"].keys()]
fields += [s for s in spec["std_xfms"].keys()]
fields += [s for s in spec["surfaces"].keys()]
fields += [s for s in spec["masks"].keys()]
return fields


Expand Down

0 comments on commit ada4a7d

Please sign in to comment.