/
classify.py
90 lines (73 loc) · 2.53 KB
/
classify.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
import os
from ...base import (
CommandLine,
CommandLineInputSpec,
SEMLikeCommandLine,
TraitedSpec,
File,
Directory,
traits,
isdefined,
InputMultiPath,
OutputMultiPath,
)
class BRAINSPosteriorToContinuousClassInputSpec(CommandLineInputSpec):
inputWhiteVolume = File(
desc="White Matter Posterior Volume",
exists=True,
argstr="--inputWhiteVolume %s",
)
inputBasalGmVolume = File(
desc="Basal Grey Matter Posterior Volume",
exists=True,
argstr="--inputBasalGmVolume %s",
)
inputSurfaceGmVolume = File(
desc="Surface Grey Matter Posterior Volume",
exists=True,
argstr="--inputSurfaceGmVolume %s",
)
inputCsfVolume = File(
desc="CSF Posterior Volume", exists=True, argstr="--inputCsfVolume %s"
)
inputVbVolume = File(
desc="Venous Blood Posterior Volume", exists=True, argstr="--inputVbVolume %s"
)
inputCrblGmVolume = File(
desc="Cerebellum Grey Matter Posterior Volume",
exists=True,
argstr="--inputCrblGmVolume %s",
)
inputCrblWmVolume = File(
desc="Cerebellum White Matter Posterior Volume",
exists=True,
argstr="--inputCrblWmVolume %s",
)
outputVolume = traits.Either(
traits.Bool,
File(),
hash_files=False,
desc="Output Continuous Tissue Classified Image",
argstr="--outputVolume %s",
)
class BRAINSPosteriorToContinuousClassOutputSpec(TraitedSpec):
outputVolume = File(desc="Output Continuous Tissue Classified Image", exists=True)
class BRAINSPosteriorToContinuousClass(SEMLikeCommandLine):
"""title: Tissue Classification
category: BRAINS.Classify
description: This program will generate an 8-bit continuous tissue classified image based on BRAINSABC posterior images.
version: 3.0
documentation-url: http://www.nitrc.org/plugins/mwiki/index.php/brains:BRAINSClassify
license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt
contributor: Vincent A. Magnotta
acknowledgements: Funding for this work was provided by NIH/NINDS award NS050568
"""
input_spec = BRAINSPosteriorToContinuousClassInputSpec
output_spec = BRAINSPosteriorToContinuousClassOutputSpec
_cmd = " BRAINSPosteriorToContinuousClass "
_outputs_filenames = {"outputVolume": "outputVolume"}
_redirect_x = False