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 fe7332b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
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
7 changes: 5 additions & 2 deletions smriprep/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ def get_outputnode_spec():
['t1w_preproc', 't1w_mask', 't1w_dseg', 't1w_tpms',
'std_preproc', 'std_mask', 'std_dseg', 'std_tpms',
'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 fe7332b

Please sign in to comment.