3
Yd                 @   sp   d Z ddlZddlmZmZmZmZmZmZm	Z	m
Z
mZmZ G dd deZG dd deZG d	d
 d
eZdS )zuAutogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator.    N   )
CommandLineCommandLineInputSpecSEMLikeCommandLineTraitedSpecFile	Directorytraits	isdefinedInputMultiPathOutputMultiPathc               @   s   e Zd ZeddddZeddddZejeje ddd	d
Z	ej
dddZej
dddZej
dddZejdddZejdddZejdddZejdddZejdddZejdddZejdddZd S )!fibertrackInputSpeczTensor ImageTz--input_tensor_file %s)descexistsargstrzdThe filename of the image which contains the labels used for seeding and constraining the algorithm.z--input_roi_file %sFzThe filename for the fiber file produced by the algorithm. This file must end in a .fib or .vtk extension for ITK spatial object and vtkPolyData formats respectively.z--output_fiber_file %s)Z
hash_filesr   r   zThe label of voxels in the labelfile to use for seeding tractography. One tract is seeded from the center of each voxel with this labelz--source_label %d)r   r   zThe label of voxels in the labelfile used to constrain tractography. Tracts that do not pass through a voxel with this label are rejected. Set this keep all tracts.z--target_label %dzForbidden labelz--forbidden_label %dzIf this option is enabled all voxels in the image are used to seed tractography. When this option is enabled both source and target labels function as target labelsz--whole_brain z"Maximum angle of change in radiansz--max_angle %fz*Step size in mm for the tracking algorithmz--step_size %fz1The minimum FA threshold to continue tractographyz--min_fa %fzIgnore sanity checks.z--force zproduce verbose outputz
--verbose z)Follow detail of fiber tracking algorithmz--really_verbose N)__name__
__module____qualname__r   Zinput_tensor_fileZinput_roi_filer	   ZEitherZBooloutput_fiber_fileZIntZsource_labelZtarget_labelZforbidden_labelZwhole_brainZFloatZ	max_angleZ	step_sizeZmin_faforceverboseZreally_verbose r   r   n/var/www/html/virt/lib/python3.6/site-packages/nipype/interfaces/semtools/diffusion/tractography/fibertrack.pyr      s@   


r   c               @   s   e Zd ZedddZdS )fibertrackOutputSpeczThe filename for the fiber file produced by the algorithm. This file must end in a .fib or .vtk extension for ITK spatial object and vtkPolyData formats respectively.T)r   r   N)r   r   r   r   r   r   r   r   r   r   C   s   r   c               @   s(   e Zd ZdZeZeZdZddiZ	dZ
dS )
fibertracka	  title: FiberTrack (DTIProcess)

    category: Diffusion.Tractography

    description: This program implements a simple streamline tractography method based on the principal eigenvector of the tensor field. A fourth order Runge-Kutta integration rule used to advance the streamlines.
    As a first parameter you have to input the tensor field (with the --input_tensor_file option). Then the region of interest image file is set with the --input_roi_file. Next you want to set the output fiber file name after the --output_fiber_file option.
    You can specify the label value in the input_roi_file with the --target_label, --source_label and  --fobidden_label options. By default target label is 1, source label is 2 and forbidden label is 0. The source label is where the streamlines are seeded, the target label defines the voxels through which the fibers must pass by to be kept in the final fiber file and the forbidden label defines the voxels where the streamlines are stopped if they pass through it. There is also a --whole_brain option which, if enabled, consider both target and source labels of the roi image as target labels and all the voxels of the image are considered as sources.
    During the tractography, the --fa_min parameter is used as the minimum value needed at different voxel for the tracking to keep going along a streamline. The --step_size parameter is used for each iteration of the tracking algorithm and defines the length of each step. The --max_angle option defines the maximum angle allowed between two successive segments along the tracked fiber.

    version: 1.1.0

    documentation-url: http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions/DTIProcess

    license: Copyright (c)  Casey Goodlett. All rights reserved.
      See http://www.ia.unc.edu/dev/Copyright.htm for details.
         This software is distributed WITHOUT ANY WARRANTY; without even
         the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
         PURPOSE.  See the above copyright notices for more information.

    contributor: Casey Goodlett

    acknowledgements: Hans Johnson(1,3,4); Kent Williams(1); (1=University of Iowa Department of Psychiatry, 3=University of Iowa Department of Biomedical Engineering, 4=University of Iowa Department of Electrical and Computer Engineering) provided conversions to make DTIProcess compatible with Slicer execution, and simplified the stand-alone build requirements by removing the dependancies on boost and a fortran compiler.
    z fibertrack r   zoutput_fiber_file.vtkFN)r   r   r   __doc__r   Z
input_specr   Zoutput_specZ_cmdZ_outputs_filenamesZ_redirect_xr   r   r   r   r   J   s   r   )r   osbaser   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   <module>   s
   0-