8
8
from nipype .interfaces import utility as niu
9
9
from nipype .interfaces .ants import N4BiasFieldCorrection
10
10
from nipype .pipeline import engine as pe
11
- from niworkflows .engine . workflows import LiterateWorkflow
11
+ from niworkflows .engine import Workflow , tag
12
12
from niworkflows .interfaces .freesurfer import (
13
13
PatchedLTAConvert as LTAConvert ,
14
14
)
41
41
]
42
42
43
43
44
+ @tag ('anat.recon' )
44
45
def init_mcribs_surface_recon_wf (
45
46
* ,
46
47
omp_nthreads : int ,
@@ -67,7 +68,7 @@ def init_mcribs_surface_recon_wf(
67
68
inputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_INPUTS ), name = 'inputnode' )
68
69
outputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_OUTPUTS ), name = 'outputnode' )
69
70
70
- workflow = LiterateWorkflow (name = name )
71
+ workflow = Workflow (name = name )
71
72
workflow .__desc__ = (
72
73
'Brain surfaces were reconstructed with a modified `MCRIBReconAll` [M-CRIB-S, @mcribs]'
73
74
'workflow, using the reference T2w and a pre-computed anatomical segmentation'
@@ -224,6 +225,7 @@ def init_mcribs_surface_recon_wf(
224
225
return workflow
225
226
226
227
228
+ @tag ('anat.fslr-reg' )
227
229
def init_mcribs_dhcp_wf (* , name = 'mcribs_dhcp_wf' ):
228
230
"""
229
231
Generate GIFTI registration files to dhcp (42-week) space.
@@ -233,7 +235,7 @@ def init_mcribs_dhcp_wf(*, name='mcribs_dhcp_wf'):
233
235
"""
234
236
from smriprep .interfaces .workbench import SurfaceSphereProjectUnproject
235
237
236
- workflow = LiterateWorkflow (name = name )
238
+ workflow = Workflow (name = name )
237
239
238
240
inputnode = pe .Node (
239
241
niu .IdentityInterface (['sphere_reg' , 'sulc' ]),
@@ -294,6 +296,7 @@ def init_mcribs_dhcp_wf(*, name='mcribs_dhcp_wf'):
294
296
return workflow
295
297
296
298
299
+ @tag ('anat.recon' )
297
300
def init_infantfs_surface_recon_wf (
298
301
* ,
299
302
age_months : int ,
@@ -304,7 +307,7 @@ def init_infantfs_surface_recon_wf(
304
307
):
305
308
from nibabies .interfaces .freesurfer import InfantReconAll
306
309
307
- workflow = LiterateWorkflow (name = name )
310
+ workflow = Workflow (name = name )
308
311
inputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_INPUTS ), name = 'inputnode' )
309
312
outputnode = pe .Node (niu .IdentityInterface (fields = SURFACE_OUTPUTS ), name = 'outputnode' )
310
313
@@ -382,6 +385,7 @@ def init_infantfs_surface_recon_wf(
382
385
return workflow
383
386
384
387
388
+ @tag ('anat.midthickness' )
385
389
def init_make_midthickness_wf (
386
390
* , omp_nthreads : int , name : str = 'make_midthickness_wf'
387
391
) -> pe .Workflow :
@@ -435,6 +439,7 @@ def init_make_midthickness_wf(
435
439
return workflow
436
440
437
441
442
+ @tag ('anat.resample-surfs' )
438
443
def init_resample_surfaces_dhcp_wf (
439
444
surfaces : list [str ],
440
445
grayord_density : ty .Literal ['91k' , '170k' ],
@@ -470,7 +475,7 @@ def init_resample_surfaces_dhcp_wf(
470
475
midthickness
471
476
GIFTI surface mesh corresponding to the midthickness surface, resampled to fsLR
472
477
"""
473
- workflow = LiterateWorkflow (name = name )
478
+ workflow = Workflow (name = name )
474
479
475
480
fslr_density = '32k' if grayord_density == '91k' else '59k'
476
481
0 commit comments