Skip to content

Commit 426f56a

Browse files
authored
Update surfaces.py
Draft of surfaces workflow for FastSurfer
1 parent d596955 commit 426f56a

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

smriprep/workflows/surfaces.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,44 @@
4848
)
4949
from niworkflows.interfaces.surf import NormalizeSurf
5050

51+
from ..interfaces import fastsurfer as fasts
52+
53+
def init_surface_recon_fastsurfer_wf(*, omp_nthreads, hires, name="surface_recon_wf"):
54+
55+
workflow = Workflow(name=name)
56+
57+
inputnode = pe.Node(
58+
niu.IdentityInterface(
59+
fields=[
60+
"t1w",
61+
"subjects_dir",
62+
"subject_id",
63+
]
64+
),
65+
name="inputnode",
66+
)
67+
outputnode = pe.Node(
68+
niu.IdentityInterface(
69+
fields=[
70+
"subjects_dir",
71+
"subject_id",
72+
]
73+
),
74+
name="outputnode",
75+
)
76+
77+
reconsurf = pe.Node(
78+
fasts.FastSCommand(sd=subjects_dir, sid=subject_id, t1=t1w, fs_license="/fs60/license"),
79+
name="reconsurf",
80+
)
81+
workflow.connect([
82+
(inputnode, reconsurf, [('subjects_dir', 'sd'),
83+
('subject_id', 'sid'),
84+
('t1w','t1')]),
85+
(reconsurf, outputnode, [('outputnode.subjects_dir', 'subjects_dir'),
86+
('outputnode.subject_id', 'subject_id')]),
87+
])
88+
5189

5290
def init_surface_recon_wf(*, omp_nthreads, hires, name="surface_recon_wf"):
5391
r"""

0 commit comments

Comments
 (0)