def create_overlay_workflow(name='overlay'):
 overlay = pe.Workflow(name='overlay')
 overlaystats = pe.MapNode(interface=fsl.Overlay(), name='overlaystats', iterfield=['stat_image'])
 overlaystats.inputs.show_negative_stats = True
 overlaystats.inputs.auto_thresh_bg = True
 slicestats = pe.MapNode(interface=fsl.Slicer(), name='slicestats', iterfield=['in_file'])
 slicestats.inputs.all_axial = True
 slicestats.inputs.image_width = 512
 overlay.connect(overlaystats, 'out_file', slicestats, 'in_file')
 return overlay

def create_overlay_workflow ( name = 'overlay' ) : overlay = pe . Workflow ( name = 'overlay' ) overlaystats = pe . MapNode ( interface = fsl . Overlay ( ) , name = 'overlaystats' , iterfield = [ 'stat_image' ] ) overlaystats . inputs . show_negative_stats = True overlaystats . inputs . auto_thresh_bg = True slicestats = pe . MapNode ( interface = fsl . Slicer ( ) , name = 'slicestats' , iterfield = [ 'in_file' ] ) slicestats . inputs . all_axial = True slicestats . inputs . image_width = 512 overlay . connect ( overlaystats , 'out_file' , slicestats , 'in_file' ) return overlay
setup overlay workflow .