From fe7332b521710d6fa35c14d191448ab585c9723c Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 29 Sep 2023 10:31:41 -0400 Subject: [PATCH] FIX: Update outputnode spec, restore anat_ribbon --- smriprep/data/io_spec.json | 11 +++++++++++ smriprep/utils/bids.py | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/smriprep/data/io_spec.json b/smriprep/data/io_spec.json index 8ac501ab87..21dcc1f405 100644 --- a/smriprep/data/io_spec.json +++ b/smriprep/data/io_spec.json @@ -163,6 +163,17 @@ "suffix": "sphere", "extension": ".surf.gii" } + }, + "masks": { + "anat_ribbon": { + "datatype": "anat", + "desc": "ribbon", + "suffix": "mask", + "extension": [ + ".nii.gz", + ".nii" + ] + } } }, "patterns": [ diff --git a/smriprep/utils/bids.py b/smriprep/utils/bids.py index 371534ae7f..c389c00511 100644 --- a/smriprep/utils/bids.py +++ b/smriprep/utils/bids.py @@ -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