Skip to content
Merged
Prev Previous commit
removed non-functional wf
  • Loading branch information
kesshijordan committed May 24, 2018
commit 9545859cc94c222edbad4958c420de9c0f7eee74
41 changes: 0 additions & 41 deletions nipype/workflows/dmri/dtitk/tensor_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,44 +142,3 @@ def diffeomorphic_tensor_pipeline(name='DiffeoTen',
wf.connect(reslice_node_moving, 'out_file', outputnode, 'moving_resliced')

return wf

'''
def apply_diffeo(name='ApplyDiffeo', params={'array_size': (128, 128, 64)}):

"""
Workflow that applies a dtitk diffeomorphic registration to a scalar volume
by moving the origin and reslicing, then applying the transform.

Example
-------

>>> from nipype.workflows.dmri.dtitk.tensor_registration import apply_diffeo
>>> app_diffeo = diffeomorphic_tensor_pipeline()
>>> app_diffeo.inputs.inputnode.moving_file = 'im1.nii'
>>> app_diffeo.inputs.inputnode.xfm_file = 'im_warp.df.nii'
>>> app_diffeo.run() # doctest: +SKIP


"""
inputnode = pe.Node(niu.IdentityInterface(
fields=['moving_file', 'xfm_file']),
name='inputnode')
outputnode = pe.Node(niu.IdentityInterface(
fields=['out_file']),
name='outputnode')
origin_node = pe.Node(dtitk.SVAdjustVoxSp(origin=(0, 0, 0)),
name='origin_node')
reslice_node_pow2 = pe.Node(dtitk.SVResample(
array_size=params['array_size']),
name='reslice_node_pow2')
apply_xfm_node = pe.Node(dtitk.DiffeoScalarVol(), name='apply_xfm_node')

wf = pe.Workflow(name=name)

wf.connect(inputnode, 'moving_file', origin_node, 'in_file')
wf.connect(origin_node, 'out_file', reslice_node_pow2, 'in_file')
wf.connect(reslice_node_pow2, 'out_file', apply_xfm_node, 'in_file')
wf.connect(inputnode, 'xfm_file', apply_xfm_node, 'transform')
wf.connect(apply_xfm_node, 'out_file', outputnode, 'out_file')

return wf'''