|
| 1 | +# -*- coding: utf8 -*- |
| 2 | +"""Autogenerated file - DO NOT EDIT |
| 3 | +If you spot a bug, please report it on the mailing list and/or change the generator.""" |
| 4 | + |
| 5 | +from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath |
| 6 | +import os |
| 7 | + |
| 8 | + |
| 9 | +class SimilarityIndexInputSpec(CommandLineInputSpec): |
| 10 | + outputCSVFilename = File(desc="output CSV Filename", exists=True, argstr="--outputCSVFilename %s") |
| 11 | + ANNContinuousVolume = File(desc="ANN Continuous volume to be compared to the manual volume", exists=True, argstr="--ANNContinuousVolume %s") |
| 12 | + inputManualVolume = File(desc="input manual(reference) volume", exists=True, argstr="--inputManualVolume %s") |
| 13 | + thresholdInterval = traits.Float(desc="Threshold interval to compute similarity index between zero and one", argstr="--thresholdInterval %f") |
| 14 | + |
| 15 | + |
| 16 | +class SimilarityIndexOutputSpec(TraitedSpec): |
| 17 | + pass |
| 18 | + |
| 19 | + |
| 20 | +class SimilarityIndex(SEMLikeCommandLine): |
| 21 | + |
| 22 | + """title: BRAINSCut:SimilarityIndexComputation |
| 23 | +
|
| 24 | +category: BRAINS.Segmentation |
| 25 | +
|
| 26 | +description: Automatic analysis of BRAINSCut Output |
| 27 | +
|
| 28 | +version: 1.0 |
| 29 | +
|
| 30 | +license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt |
| 31 | +
|
| 32 | +contributor: Eunyoung Regin Kim |
| 33 | +
|
| 34 | +""" |
| 35 | + |
| 36 | + input_spec = SimilarityIndexInputSpec |
| 37 | + output_spec = SimilarityIndexOutputSpec |
| 38 | + _cmd = " SimilarityIndex " |
| 39 | + _outputs_filenames = {} |
| 40 | + _redirect_x = False |
| 41 | + |
| 42 | + |
| 43 | +class BRAINSTalairachInputSpec(CommandLineInputSpec): |
| 44 | + AC = InputMultiPath(traits.Float, desc="Location of AC Point ", sep=",", argstr="--AC %s") |
| 45 | + ACisIndex = traits.Bool(desc="AC Point is Index", argstr="--ACisIndex ") |
| 46 | + PC = InputMultiPath(traits.Float, desc="Location of PC Point ", sep=",", argstr="--PC %s") |
| 47 | + PCisIndex = traits.Bool(desc="PC Point is Index", argstr="--PCisIndex ") |
| 48 | + SLA = InputMultiPath(traits.Float, desc="Location of SLA Point ", sep=",", argstr="--SLA %s") |
| 49 | + SLAisIndex = traits.Bool(desc="SLA Point is Index", argstr="--SLAisIndex ") |
| 50 | + IRP = InputMultiPath(traits.Float, desc="Location of IRP Point ", sep=",", argstr="--IRP %s") |
| 51 | + IRPisIndex = traits.Bool(desc="IRP Point is Index", argstr="--IRPisIndex ") |
| 52 | + inputVolume = File(desc="Input image used to define physical space of images", exists=True, argstr="--inputVolume %s") |
| 53 | + outputBox = traits.Either(traits.Bool, File(), hash_files=False, desc="Name of the resulting Talairach Bounding Box file", argstr="--outputBox %s") |
| 54 | + outputGrid = traits.Either(traits.Bool, File(), hash_files=False, desc="Name of the resulting Talairach Grid file", argstr="--outputGrid %s") |
| 55 | + |
| 56 | + |
| 57 | +class BRAINSTalairachOutputSpec(TraitedSpec): |
| 58 | + outputBox = File(desc="Name of the resulting Talairach Bounding Box file", exists=True) |
| 59 | + outputGrid = File(desc="Name of the resulting Talairach Grid file", exists=True) |
| 60 | + |
| 61 | + |
| 62 | +class BRAINSTalairach(SEMLikeCommandLine): |
| 63 | + |
| 64 | + """title: BRAINS Talairach |
| 65 | +
|
| 66 | +category: BRAINS.Segmentation |
| 67 | +
|
| 68 | +description: This program creates a VTK structured grid defining the Talairach coordinate system based on four points: AC, PC, IRP, and SLA. The resulting structred grid can be written as either a classic VTK file or the new VTK XML file format. Two representations of the resulting grid can be written. The first is a bounding box representation that also contains the location of the AC and PC points. The second representation is the full Talairach grid representation that includes the additional rows of boxes added to the inferior allowing full coverage of the cerebellum. |
| 69 | +
|
| 70 | +version: 0.1 |
| 71 | +
|
| 72 | +documentation-url: http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSTalairach |
| 73 | +
|
| 74 | +license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt |
| 75 | +
|
| 76 | +contributor: Steven Dunn and Vincent Magnotta |
| 77 | +
|
| 78 | +acknowledgements: Funding for this work was provided by NIH/NINDS award NS050568 |
| 79 | +
|
| 80 | +""" |
| 81 | + |
| 82 | + input_spec = BRAINSTalairachInputSpec |
| 83 | + output_spec = BRAINSTalairachOutputSpec |
| 84 | + _cmd = " BRAINSTalairach " |
| 85 | + _outputs_filenames = {'outputGrid': 'outputGrid', 'outputBox': 'outputBox'} |
| 86 | + _redirect_x = False |
| 87 | + |
| 88 | + |
| 89 | +class BRAINSTalairachMaskInputSpec(CommandLineInputSpec): |
| 90 | + inputVolume = File(desc="Input image used to define physical space of resulting mask", exists=True, argstr="--inputVolume %s") |
| 91 | + talairachParameters = File(desc="Name of the Talairach parameter file.", exists=True, argstr="--talairachParameters %s") |
| 92 | + talairachBox = File(desc="Name of the Talairach box file.", exists=True, argstr="--talairachBox %s") |
| 93 | + hemisphereMode = traits.Enum("left", "right", "both", desc="Mode for box creation: left, right, both", argstr="--hemisphereMode %s") |
| 94 | + expand = traits.Bool(desc="Expand exterior box to include surface CSF", argstr="--expand ") |
| 95 | + outputVolume = traits.Either(traits.Bool, File(), hash_files=False, desc="Output filename for the resulting binary image", argstr="--outputVolume %s") |
| 96 | + |
| 97 | + |
| 98 | +class BRAINSTalairachMaskOutputSpec(TraitedSpec): |
| 99 | + outputVolume = File(desc="Output filename for the resulting binary image", exists=True) |
| 100 | + |
| 101 | + |
| 102 | +class BRAINSTalairachMask(SEMLikeCommandLine): |
| 103 | + |
| 104 | + """title: Talairach Mask |
| 105 | +
|
| 106 | +category: BRAINS.Segmentation |
| 107 | +
|
| 108 | +description: This program creates a binary image representing the specified Talairach region. The input is an example image to define the physical space for the resulting image, the Talairach grid representation in VTK format, and the file containing the Talairach box definitions to be generated. These can be combined in BRAINS to create a label map using the procedure Brains::WorkupUtils::CreateLabelMapFromBinaryImages. |
| 109 | +
|
| 110 | +version: 0.1 |
| 111 | +
|
| 112 | +documentation-url: http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSTalairachMask |
| 113 | +
|
| 114 | +license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt |
| 115 | +
|
| 116 | +contributor: Steven Dunn and Vincent Magnotta |
| 117 | +
|
| 118 | +acknowledgements: Funding for this work was provided by NIH/NINDS award NS050568 |
| 119 | +
|
| 120 | +""" |
| 121 | + |
| 122 | + input_spec = BRAINSTalairachMaskInputSpec |
| 123 | + output_spec = BRAINSTalairachMaskOutputSpec |
| 124 | + _cmd = " BRAINSTalairachMask " |
| 125 | + _outputs_filenames = {'outputVolume': 'outputVolume.nii'} |
| 126 | + _redirect_x = False |
0 commit comments