Skip to content

Commit

Permalink
Update surfaces.py
Browse files Browse the repository at this point in the history
Draft of surfaces workflow for FastSurfer
  • Loading branch information
pcamach2 authored Apr 26, 2022
1 parent d596955 commit 426f56a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions smriprep/workflows/surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,44 @@
)
from niworkflows.interfaces.surf import NormalizeSurf

from ..interfaces import fastsurfer as fasts

def init_surface_recon_fastsurfer_wf(*, omp_nthreads, hires, name="surface_recon_wf"):

workflow = Workflow(name=name)

inputnode = pe.Node(
niu.IdentityInterface(
fields=[
"t1w",
"subjects_dir",
"subject_id",
]
),
name="inputnode",
)
outputnode = pe.Node(
niu.IdentityInterface(
fields=[
"subjects_dir",
"subject_id",
]
),
name="outputnode",
)

reconsurf = pe.Node(
fasts.FastSCommand(sd=subjects_dir, sid=subject_id, t1=t1w, fs_license="/fs60/license"),
name="reconsurf",
)
workflow.connect([
(inputnode, reconsurf, [('subjects_dir', 'sd'),
('subject_id', 'sid'),
('t1w','t1')]),
(reconsurf, outputnode, [('outputnode.subjects_dir', 'subjects_dir'),
('outputnode.subject_id', 'subject_id')]),
])


def init_surface_recon_wf(*, omp_nthreads, hires, name="surface_recon_wf"):
r"""
Expand Down

0 comments on commit 426f56a

Please sign in to comment.