Skip to content

Commit 705517a

Browse files
committed
FIX: Move from smoothwm to white
1 parent 9905f90 commit 705517a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

niworkflows/anat/freesurfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def init_gifti_surface_wf(
4444
This workflow prepares GIFTI surfaces from a FreeSurfer subjects directory
4545
If midthickness (or graymid) surfaces do not exist, they are generated and
4646
saved to the subject directory as ``lh/rh.midthickness``.
47-
These, along with the gray/white matter boundary (``lh/rh.smoothwm``), pial
47+
These, along with the gray/white matter boundary (``lh/rh.white``), pial
4848
surfaces (``lh/rh.pial``) and inflated surfaces (``lh/rh.inflated``) are
4949
converted to GIFTI files.
5050
Additionally, the vertex coordinates are :py:class:`recentered
@@ -137,11 +137,11 @@ def init_gifti_surface_wf(
137137
(inputnode, fsnative_2_t1_xfm, [("in_t1w", "target_file")]),
138138
(fssource, fsnative_2_t1_xfm, [("orig", "source_file")]),
139139
# Generate midthickness surfaces and save to FreeSurfer derivatives
140-
(fssource, midthickness, [("smoothwm", "in_file"), ("graymid", "graymid")]),
140+
(fssource, midthickness, [("white", "in_file"), ("graymid", "graymid")]),
141141
(midthickness, save_midthickness, [("out_file", "surf.@graymid")]),
142142
# Produce valid GIFTI surface files (dense mesh)
143143
(fssource, surface_list, [
144-
("smoothwm", "in1"), ("pial", "in2"), ("inflated", "in3"),
144+
("white", "in1"), ("pial", "in2"), ("inflated", "in3"),
145145
]),
146146
(save_midthickness, surface_list, [("out_file", "in4")]),
147147
(surface_list, fs_2_gii, [("out", "in_file")]),

niworkflows/data/nipreps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"default_path_patterns": [
155155
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}][_space-{space}][_cohort-{cohort}][_res-{resolution}][_desc-{desc}]_{suffix<T1w|T2w|T1rho|T1map|T2map|T2starmap|FLAIR|FLASH|PDmap|PD|PDT2|dseg|inplaneT[12]|angio|T2starw|MTw|TSE>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
156156
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}]_from-{from}_to-{to}_mode-{mode<image|points>|image}_{suffix<xfm>|xfm}{extension<.txt|.h5>}",
157-
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}]_hemi-{hemi<L|R>}[_space-{space}][_cohort-{cohort}][_den-{density}]_{suffix<wm|smoothwm|pial|midthickness|inflated|vinflated|sphere|flat|sulc|curv|thickness>}{extension<.surf.gii|.shape.gii>}",
157+
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}]_hemi-{hemi<L|R>}[_space-{space}][_cohort-{cohort}][_den-{density}]_{suffix<white|smoothwm|pial|midthickness|inflated|vinflated|sphere|flat|sulc|curv|thickness>}{extension<.surf.gii|.shape.gii>}",
158158
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}][_space-{space}][_cohort-{cohort}][_den-{density}]_{suffix<sulc|curv|thickness>}{extension<.dscalar.nii|.json>}",
159159
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}][_space-{space}][_cohort-{cohort}][_res-{resolution}]_desc-{desc}_{suffix<mask>|mask}{extension<.nii|.nii.gz|.json>|.nii.gz}",
160160
"sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}][_space-{space}][_cohort-{cohort}][_res-{resolution}]_label-{label}[_desc-{desc}]_{suffix<probseg>|probseg}{extension<.nii|.nii.gz|.json>|.nii.gz}",

niworkflows/interfaces/surf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
SECONDARY_ANAT_STRUC = {
5050
"smoothwm": "GrayWhite",
51+
"white": "GrayWhite",
5152
"pial": "Pial",
5253
"midthickness": "GrayMid",
5354
}
@@ -165,7 +166,7 @@ class Path2BIDS(SimpleInterface):
165166
input_spec = _Path2BIDSInputSpec
166167
output_spec = _Path2BIDSOutputSpec
167168
_pattern = re.compile(
168-
r"(?P<hemi>[lr])h.(?P<suffix>(wm|smoothwm|pial|midthickness|"
169+
r"(?P<hemi>[lr])h.(?P<suffix>(white|smoothwm|pial|midthickness|"
169170
r"inflated|vinflated|sphere|flat|sulc|curv|thickness))[\w\d_-]*(?P<extprefix>\.\w+)?"
170171
)
171172
_excluded = ("extprefix",)

0 commit comments

Comments
 (0)