Skip to content

Commit b1013d9

Browse files
committed
Merge pull request #1119 from nipy/AddSEMTools
ENH: A set of autogenerated interfaces
2 parents 6e857d6 + ad16a8d commit b1013d9

37 files changed

+4460
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from diffusion import *
2+
from featurecreator import GenerateCsfClippedFromClassifiedImage
3+
from segmentation import *
4+
from filtering import *
5+
from brains import *
6+
from testing import *
7+
from utilities import *
8+
from legacy import *
9+
from registration import *
10+
from converters import DWISimpleCompare, DWICompare
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from segmentation import SimilarityIndex, BRAINSTalairach, BRAINSTalairachMask
2+
from utilities import HistogramMatchingFilter
3+
from classify import BRAINSPosteriorToContinuousClass
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 BRAINSPosteriorToContinuousClassInputSpec(CommandLineInputSpec):
10+
inputWhiteVolume = File(desc="White Matter Posterior Volume", exists=True, argstr="--inputWhiteVolume %s")
11+
inputBasalGmVolume = File(desc="Basal Grey Matter Posterior Volume", exists=True, argstr="--inputBasalGmVolume %s")
12+
inputSurfaceGmVolume = File(desc="Surface Grey Matter Posterior Volume", exists=True, argstr="--inputSurfaceGmVolume %s")
13+
inputCsfVolume = File(desc="CSF Posterior Volume", exists=True, argstr="--inputCsfVolume %s")
14+
inputVbVolume = File(desc="Venous Blood Posterior Volume", exists=True, argstr="--inputVbVolume %s")
15+
inputCrblGmVolume = File(desc="Cerebellum Grey Matter Posterior Volume", exists=True, argstr="--inputCrblGmVolume %s")
16+
inputCrblWmVolume = File(desc="Cerebellum White Matter Posterior Volume", exists=True, argstr="--inputCrblWmVolume %s")
17+
outputVolume = traits.Either(traits.Bool, File(), hash_files=False, desc="Output Continuous Tissue Classified Image", argstr="--outputVolume %s")
18+
19+
20+
class BRAINSPosteriorToContinuousClassOutputSpec(TraitedSpec):
21+
outputVolume = File(desc="Output Continuous Tissue Classified Image", exists=True)
22+
23+
24+
class BRAINSPosteriorToContinuousClass(SEMLikeCommandLine):
25+
26+
"""title: Tissue Classification
27+
28+
category: BRAINS.Classify
29+
30+
description: This program will generate an 8-bit continuous tissue classified image based on BRAINSABC posterior images.
31+
32+
version: 3.0
33+
34+
documentation-url: http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSClassify
35+
36+
license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt
37+
38+
contributor: Vincent A. Magnotta
39+
40+
acknowledgements: Funding for this work was provided by NIH/NINDS award NS050568
41+
42+
"""
43+
44+
input_spec = BRAINSPosteriorToContinuousClassInputSpec
45+
output_spec = BRAINSPosteriorToContinuousClassOutputSpec
46+
_cmd = " BRAINSPosteriorToContinuousClass "
47+
_outputs_filenames = {'outputVolume': 'outputVolume'}
48+
_redirect_x = False
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 HistogramMatchingFilterInputSpec(CommandLineInputSpec):
10+
inputVolume = File(desc="The Input image to be computed for statistics", exists=True, argstr="--inputVolume %s")
11+
referenceVolume = File(desc="The Input image to be computed for statistics", exists=True, argstr="--referenceVolume %s")
12+
outputVolume = traits.Either(traits.Bool, File(), hash_files=False, desc="Output Image File Name", argstr="--outputVolume %s")
13+
referenceBinaryVolume = File(desc="referenceBinaryVolume", exists=True, argstr="--referenceBinaryVolume %s")
14+
inputBinaryVolume = File(desc="inputBinaryVolume", exists=True, argstr="--inputBinaryVolume %s")
15+
numberOfMatchPoints = traits.Int(desc=" number of histogram matching points", argstr="--numberOfMatchPoints %d")
16+
numberOfHistogramBins = traits.Int(desc=" number of histogram bin", argstr="--numberOfHistogramBins %d")
17+
writeHistogram = traits.Str(desc=" decide if histogram data would be written with prefixe of the file name", argstr="--writeHistogram %s")
18+
histogramAlgorithm = traits.Enum("OtsuHistogramMatching", desc=" histogram algrithm selection", argstr="--histogramAlgorithm %s")
19+
verbose = traits.Bool(desc=" verbose mode running for debbuging", argstr="--verbose ")
20+
21+
22+
class HistogramMatchingFilterOutputSpec(TraitedSpec):
23+
outputVolume = File(desc="Output Image File Name", exists=True)
24+
25+
26+
class HistogramMatchingFilter(SEMLikeCommandLine):
27+
28+
"""title: Write Out Image Intensities
29+
30+
category: BRAINS.Utilities
31+
32+
description: For Analysis
33+
34+
version: 0.1
35+
36+
contributor: University of Iowa Department of Psychiatry, http:://www.psychiatry.uiowa.edu
37+
38+
"""
39+
40+
input_spec = HistogramMatchingFilterInputSpec
41+
output_spec = HistogramMatchingFilterOutputSpec
42+
_cmd = " HistogramMatchingFilter "
43+
_outputs_filenames = {'outputVolume': 'outputVolume.nii'}
44+
_redirect_x = False
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 DWISimpleCompareInputSpec(CommandLineInputSpec):
10+
inputVolume1 = File(desc="First input volume (.nhdr or .nrrd)", exists=True, argstr="--inputVolume1 %s")
11+
inputVolume2 = File(desc="Second input volume (.nhdr or .nrrd)", exists=True, argstr="--inputVolume2 %s")
12+
checkDWIData = traits.Bool(desc="check for existence of DWI data, and if present, compare it", argstr="--checkDWIData ")
13+
14+
15+
class DWISimpleCompareOutputSpec(TraitedSpec):
16+
pass
17+
18+
19+
class DWISimpleCompare(SEMLikeCommandLine):
20+
21+
"""title: Nrrd DWI comparison
22+
23+
category: Converters
24+
25+
description: Compares two nrrd format DWI images and verifies that gradient magnitudes, gradient directions, measurement frame, and max B0 value are identicle. Used for testing DWIConvert.
26+
27+
version: 0.1.0.$Revision: 916 $(alpha)
28+
29+
documentation-url: http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DWIConvert
30+
31+
license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt
32+
33+
contributor: Mark Scully (UIowa)
34+
35+
acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Additional support for DTI data produced on Philips scanners was contributed by Vincent Magnotta and Hans Johnson at the University of Iowa.
36+
37+
"""
38+
39+
input_spec = DWISimpleCompareInputSpec
40+
output_spec = DWISimpleCompareOutputSpec
41+
_cmd = " DWISimpleCompare "
42+
_outputs_filenames = {}
43+
_redirect_x = False
44+
45+
46+
class DWICompareInputSpec(CommandLineInputSpec):
47+
inputVolume1 = File(desc="First input volume (.nhdr or .nrrd)", exists=True, argstr="--inputVolume1 %s")
48+
inputVolume2 = File(desc="Second input volume (.nhdr or .nrrd)", exists=True, argstr="--inputVolume2 %s")
49+
50+
51+
class DWICompareOutputSpec(TraitedSpec):
52+
pass
53+
54+
55+
class DWICompare(SEMLikeCommandLine):
56+
57+
"""title: Nrrd DWI comparison
58+
59+
category: Converters
60+
61+
description: Compares two nrrd format DWI images and verifies that gradient magnitudes, gradient directions, measurement frame, and max B0 value are identicle. Used for testing DWIConvert.
62+
63+
version: 0.1.0.$Revision: 916 $(alpha)
64+
65+
documentation-url: http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DWIConvert
66+
67+
license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt
68+
69+
contributor: Mark Scully (UIowa)
70+
71+
acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Additional support for DTI data produced on Philips scanners was contributed by Vincent Magnotta and Hans Johnson at the University of Iowa.
72+
73+
"""
74+
75+
input_spec = DWICompareInputSpec
76+
output_spec = DWICompareOutputSpec
77+
_cmd = " DWICompare "
78+
_outputs_filenames = {}
79+
_redirect_x = False
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from diffusion import dtiaverage, dtiestim, dtiprocess, DWIConvert
2+
from tractography import *
3+
from gtract import gtractTransformToDisplacementField, gtractInvertBSplineTransform, gtractConcatDwi, gtractAverageBvalues, gtractCoregBvalues, gtractResampleAnisotropy, gtractResampleCodeImage, gtractCopyImageOrientation, gtractCreateGuideFiber, gtractAnisotropyMap, gtractClipAnisotropy, gtractResampleB0, gtractInvertRigidTransform, gtractImageConformity, compareTractInclusion, gtractFastMarchingTracking, gtractInvertDisplacementField, gtractCoRegAnatomy, gtractResampleDWIInPlace, gtractCostFastMarching, gtractFiberTracking, extractNrrdVectorIndex, gtractResampleFibers, gtractTensor
4+
from maxcurvature import maxcurvature

0 commit comments

Comments
 (0)