88from nipype .interfaces import utility as niu
99from nipype .interfaces .ants import N4BiasFieldCorrection
1010from nipype .pipeline import engine as pe
11- from niworkflows .engine . workflows import LiterateWorkflow
11+ from niworkflows .engine import Workflow , tag
1212from niworkflows .interfaces .freesurfer import (
1313 PatchedLTAConvert as LTAConvert ,
1414)
4141]
4242
4343
44+ @tag ('anat.recon' )
4445def init_mcribs_surface_recon_wf (
4546 * ,
4647 omp_nthreads : int ,
@@ -67,7 +68,7 @@ def init_mcribs_surface_recon_wf(
6768 inputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_INPUTS ), name = 'inputnode' )
6869 outputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_OUTPUTS ), name = 'outputnode' )
6970
70- workflow = LiterateWorkflow (name = name )
71+ workflow = Workflow (name = name )
7172 workflow .__desc__ = (
7273 'Brain surfaces were reconstructed with a modified `MCRIBReconAll` [M-CRIB-S, @mcribs]'
7374 'workflow, using the reference T2w and a pre-computed anatomical segmentation'
@@ -224,6 +225,7 @@ def init_mcribs_surface_recon_wf(
224225 return workflow
225226
226227
228+ @tag ('anat.fslr-reg' )
227229def init_mcribs_dhcp_wf (* , name = 'mcribs_dhcp_wf' ):
228230 """
229231 Generate GIFTI registration files to dhcp (42-week) space.
@@ -233,7 +235,7 @@ def init_mcribs_dhcp_wf(*, name='mcribs_dhcp_wf'):
233235 """
234236 from smriprep .interfaces .workbench import SurfaceSphereProjectUnproject
235237
236- workflow = LiterateWorkflow (name = name )
238+ workflow = Workflow (name = name )
237239
238240 inputnode = pe .Node (
239241 niu .IdentityInterface (['sphere_reg' , 'sulc' ]),
@@ -294,6 +296,7 @@ def init_mcribs_dhcp_wf(*, name='mcribs_dhcp_wf'):
294296 return workflow
295297
296298
299+ @tag ('anat.recon' )
297300def init_infantfs_surface_recon_wf (
298301 * ,
299302 age_months : int ,
@@ -304,7 +307,7 @@ def init_infantfs_surface_recon_wf(
304307):
305308 from nibabies .interfaces .freesurfer import InfantReconAll
306309
307- workflow = LiterateWorkflow (name = name )
310+ workflow = Workflow (name = name )
308311 inputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_INPUTS ), name = 'inputnode' )
309312 outputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_OUTPUTS ), name = 'outputnode' )
310313
@@ -382,6 +385,7 @@ def init_infantfs_surface_recon_wf(
382385 return workflow
383386
384387
388+ @tag ('anat.midthickness' )
385389def init_make_midthickness_wf (
386390 * , omp_nthreads : int , name : str = 'make_midthickness_wf'
387391) -> pe .Workflow :
@@ -435,6 +439,7 @@ def init_make_midthickness_wf(
435439 return workflow
436440
437441
442+ @tag ('anat.resample-surfs' )
438443def init_resample_surfaces_dhcp_wf (
439444 surfaces : list [str ],
440445 grayord_density : ty .Literal ['91k' , '170k' ],
@@ -470,7 +475,7 @@ def init_resample_surfaces_dhcp_wf(
470475 midthickness
471476 GIFTI surface mesh corresponding to the midthickness surface, resampled to fsLR
472477 """
473- workflow = LiterateWorkflow (name = name )
478+ workflow = Workflow (name = name )
474479
475480 fslr_density = '32k' if grayord_density == '91k' else '59k'
476481
0 commit comments