Skip to content

Commit 5d472a4

Browse files
committed
wip add brainsuite
1 parent af7da34 commit 5d472a4

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

dmriprep/workflows/fieldmap/brainsuite.py

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
1+
# -*- coding: utf-8 -*-
12

3+
"""
4+
SDC using BrainSuite
5+
^^^^^^^^^^^^^^^^^^^^
26
3-
# bfc -i $indir2/brain.nii.gz -o T1.bfc.nii.gz -v 1 -L 0.5 -U 1.5
7+
.. autofunction:: init_brainsuite_wf
8+
9+
"""
10+
11+
from nipype.pipeline import engine as pe
12+
from nipype.interfaces import brainsuite, utility as niu
13+
14+
def init_fmap_wf():
15+
16+
wf = pe.Workflow(name='brainsuite_wf')
17+
18+
inputnode = pe.Node(
19+
niu.IdentityInterface(
20+
fields=[
21+
'T1w',
22+
'T1w_mask',
23+
'dwi_file',
24+
'dwi_mask']),
25+
name='inputnode')
26+
27+
outputnode = pe.Node(
28+
niu.IdentityInterface(fields=['out_fmap']), name='outputnode'
29+
)
30+
31+
bias_corr = pe.Node(brainsuite.Bfc(minBias=0.5, maxBias=1.5), name='bias_corr')
32+
33+
bdp = pe.Node(brainsuite.BDP(), name='bdp')
34+
35+
wf.connect([])
36+
37+
# bfc -i $indir2/brain.nii.gz -o T1.bfc.nii.gz
438

539
# /KIMEL/tigrlab/quarantine/brainsuite/18a/build/bdp/bdp.sh \
640
# T1.bfc.nii.gz \

0 commit comments

Comments
 (0)