Skip to content

Create brainsuite.py #1305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Apr 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d87e90f
Create brainsuite.py
jason-wg Dec 21, 2015
87682ae
FIX proposed for S3io
jason-wg Dec 25, 2015
a5a7504
Update brainsuite.py
jason-wg Jan 6, 2016
c52d3c5
Update brainsuite.py
jason-wg Jan 22, 2016
1d49bae
Update brainsuite.py
jason-wg Mar 3, 2016
a6af418
Update brainsuite.py
jason-wg Mar 5, 2016
41891b4
Update brainsuite.py
jason-wg Mar 5, 2016
73f3d04
Update brainsuite.py
jason-wg Mar 9, 2016
dcf44b5
Merge branch 'master' of https://github.com/nipy/nipype
jason-wg Mar 10, 2016
36b83d4
Merge remote-tracking branch 'origin/patch-1'
jason-wg Mar 10, 2016
ced8558
Create brainsuite.py
jason-wg Dec 21, 2015
5b97dc5
FIX proposed for S3io
jason-wg Dec 25, 2015
15755bd
Update brainsuite.py
jason-wg Jan 6, 2016
2b09a3e
Update brainsuite.py
jason-wg Jan 22, 2016
eee86ff
Update brainsuite.py
jason-wg Mar 3, 2016
8964e79
Update brainsuite.py
jason-wg Mar 5, 2016
8884254
Update brainsuite.py
jason-wg Mar 5, 2016
29057c8
Update brainsuite.py
jason-wg Mar 9, 2016
7b79f91
Merge branch 'master' of https://github.com/jason-wg/nipype into patch-1
jason-wg Mar 21, 2016
48f19f0
move to own folder
jason-wg Mar 21, 2016
f0a3a2f
remove
jason-wg Mar 30, 2016
3251ca4
Merge branch 'master' of https://github.com/nipy/nipype into patch-1
jason-wg Mar 31, 2016
1471171
add __init__.py
jason-wg Mar 31, 2016
bc83e71
fixing for make specs
jason-wg Apr 1, 2016
9c12e44
ran make specs and make check-before-commit
jason-wg Apr 4, 2016
515c16e
additional files modified/added
jason-wg Apr 4, 2016
06dd50a
deleted added files, reverted io.py and datasink test
jason-wg Apr 4, 2016
68db637
Update CHANGES, remove additional DataSink related file
jason-wg Apr 4, 2016
98fdb3d
delete additional file
jason-wg Apr 4, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Next release
============

* ENH: Created interface for BrainSuite Cortical Surface Extraction command line tools (https://github.com/nipy/nipype/pull/1305)
* FIX: job execution on systems/approaches where locale is undefined (https://github.com/nipy/nipype/pull/1401)
* FIX: Clean up byte/unicode issues using subprocess (https://github.com/nipy/nipype/pull/1394)
* FIX: Prevent crash when tvtk is loaded - ETS_TOOLKIT=null (https://github.com/nipy/nipype/pull/973)
Expand Down
2 changes: 2 additions & 0 deletions nipype/interfaces/brainsuite/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca,
Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit)
888 changes: 888 additions & 0 deletions nipype/interfaces/brainsuite/brainsuite.py

Large diffs are not rendered by default.

Empty file.
89 changes: 89 additions & 0 deletions nipype/interfaces/brainsuite/tests/test_auto_Bfc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..brainsuite import Bfc


def test_Bfc_inputs():
input_map = dict(args=dict(argstr='%s',
),
biasEstimateConvergenceThreshold=dict(argstr='--beps %f',
),
biasEstimateSpacing=dict(argstr='-s %d',
),
biasFieldEstimatesOutputPrefix=dict(argstr='--biasprefix %s',
),
biasRange=dict(argstr='%s',
),
controlPointSpacing=dict(argstr='-c %d',
),
convergenceThreshold=dict(argstr='--eps %f',
),
correctWholeVolume=dict(argstr='--extrapolate',
),
correctedImagesOutputPrefix=dict(argstr='--prefix %s',
),
correctionScheduleFile=dict(argstr='--schedule %s',
),
environ=dict(nohash=True,
usedefault=True,
),
histogramRadius=dict(argstr='-r %d',
),
histogramType=dict(argstr='%s',
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
inputMRIFile=dict(argstr='-i %s',
mandatory=True,
),
inputMaskFile=dict(argstr='-m %s',
hash_files=False,
),
intermediate_file_type=dict(argstr='%s',
),
iterativeMode=dict(argstr='--iterate',
),
maxBias=dict(argstr='-U %f',
usedefault=True,
),
minBias=dict(argstr='-L %f',
usedefault=True,
),
outputBiasField=dict(argstr='--bias %s',
hash_files=False,
),
outputMRIVolume=dict(argstr='-o %s',
genfile=True,
hash_files=False,
),
outputMaskedBiasField=dict(argstr='--maskedbias %s',
hash_files=False,
),
splineLambda=dict(argstr='-w %f',
),
terminal_output=dict(nohash=True,
),
timer=dict(argstr='--timer',
),
verbosityLevel=dict(argstr='-v %d',
),
)
inputs = Bfc.input_spec()

for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(inputs.traits()[key], metakey), value


def test_Bfc_outputs():
output_map = dict(correctionScheduleFile=dict(),
outputBiasField=dict(),
outputMRIVolume=dict(),
outputMaskedBiasField=dict(),
)
outputs = Bfc.output_spec()

for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(outputs.traits()[key], metakey), value
84 changes: 84 additions & 0 deletions nipype/interfaces/brainsuite/tests/test_auto_Bse.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..brainsuite import Bse


def test_Bse_inputs():
input_map = dict(args=dict(argstr='%s',
),
diffusionConstant=dict(argstr='-d %f',
usedefault=True,
),
diffusionIterations=dict(argstr='-n %d',
usedefault=True,
),
dilateFinalMask=dict(argstr='-p',
usedefault=True,
),
edgeDetectionConstant=dict(argstr='-s %f',
usedefault=True,
),
environ=dict(nohash=True,
usedefault=True,
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
inputMRIFile=dict(argstr='-i %s',
mandatory=True,
),
noRotate=dict(argstr='--norotate',
),
outputCortexFile=dict(argstr='--cortex %s',
hash_files=False,
),
outputDetailedBrainMask=dict(argstr='--hires %s',
hash_files=False,
),
outputDiffusionFilter=dict(argstr='--adf %s',
hash_files=False,
),
outputEdgeMap=dict(argstr='--edge %s',
hash_files=False,
),
outputMRIVolume=dict(argstr='-o %s',
genfile=True,
hash_files=False,
),
outputMaskFile=dict(argstr='--mask %s',
hash_files=False,
),
radius=dict(argstr='-r %f',
usedefault=True,
),
terminal_output=dict(nohash=True,
),
timer=dict(argstr='--timer',
),
trim=dict(argstr='--trim',
usedefault=True,
),
verbosityLevel=dict(argstr='-v %f',
usedefault=True,
),
)
inputs = Bse.input_spec()

for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(inputs.traits()[key], metakey), value


def test_Bse_outputs():
output_map = dict(outputCortexFile=dict(),
outputDetailedBrainMask=dict(),
outputDiffusionFilter=dict(),
outputEdgeMap=dict(),
outputMRIVolume=dict(),
outputMaskFile=dict(),
)
outputs = Bse.output_spec()

for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(outputs.traits()[key], metakey), value
75 changes: 75 additions & 0 deletions nipype/interfaces/brainsuite/tests/test_auto_Cerebro.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..brainsuite import Cerebro


def test_Cerebro_inputs():
input_map = dict(args=dict(argstr='%s',
),
costFunction=dict(argstr='-c %d',
usedefault=True,
),
environ=dict(nohash=True,
usedefault=True,
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
inputAtlasLabelFile=dict(argstr='--atlaslabels %s',
mandatory=True,
),
inputAtlasMRIFile=dict(argstr='--atlas %s',
mandatory=True,
),
inputBrainMaskFile=dict(argstr='-m %s',
),
inputMRIFile=dict(argstr='-i %s',
mandatory=True,
),
keepTempFiles=dict(argstr='--keep',
),
linearConvergence=dict(argstr='--linconv %f',
),
outputAffineTransformFile=dict(argstr='--air %s',
),
outputCerebrumMaskFile=dict(argstr='-o %s',
genfile=True,
),
outputLabelMaskFile=dict(argstr='-l %s',
genfile=True,
),
outputWarpTransformFile=dict(argstr='--warp %s',
),
tempDirectory=dict(argstr='--tempdir %s',
),
tempDirectoryBase=dict(argstr='--tempdirbase %s',
),
terminal_output=dict(nohash=True,
),
useCentroids=dict(argstr='--centroids',
),
verbosity=dict(argstr='-v %d',
),
warpConvergence=dict(argstr='--warpconv %f',
),
warpLabel=dict(argstr='--warplevel %d',
),
)
inputs = Cerebro.input_spec()

for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(inputs.traits()[key], metakey), value


def test_Cerebro_outputs():
output_map = dict(outputAffineTransformFile=dict(),
outputCerebrumMaskFile=dict(),
outputLabelMaskFile=dict(),
outputWarpTransformFile=dict(),
)
outputs = Cerebro.output_spec()

for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(outputs.traits()[key], metakey), value
56 changes: 56 additions & 0 deletions nipype/interfaces/brainsuite/tests/test_auto_Cortex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..brainsuite import Cortex


def test_Cortex_inputs():
input_map = dict(args=dict(argstr='%s',
),
computeGCBoundary=dict(argstr='-g',
),
computeWGBoundary=dict(argstr='-w',
usedefault=True,
),
environ=dict(nohash=True,
usedefault=True,
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
includeAllSubcorticalAreas=dict(argstr='-a',
usedefault=True,
),
inputHemisphereLabelFile=dict(argstr='-h %s',
mandatory=True,
),
inputTissueFractionFile=dict(argstr='-f %s',
mandatory=True,
),
outputCerebrumMask=dict(argstr='-o %s',
genfile=True,
),
terminal_output=dict(nohash=True,
),
timer=dict(argstr='--timer',
),
tissueFractionThreshold=dict(argstr='-p %f',
usedefault=True,
),
verbosity=dict(argstr='-v %d',
),
)
inputs = Cortex.input_spec()

for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(inputs.traits()[key], metakey), value


def test_Cortex_outputs():
output_map = dict(outputCerebrumMask=dict(),
)
outputs = Cortex.output_spec()

for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(outputs.traits()[key], metakey), value
46 changes: 46 additions & 0 deletions nipype/interfaces/brainsuite/tests/test_auto_Dewisp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..brainsuite import Dewisp


def test_Dewisp_inputs():
input_map = dict(args=dict(argstr='%s',
),
environ=dict(nohash=True,
usedefault=True,
),
ignore_exception=dict(nohash=True,
usedefault=True,
),
inputMaskFile=dict(argstr='-i %s',
mandatory=True,
),
maximumIterations=dict(argstr='-n %d',
),
outputMaskFile=dict(argstr='-o %s',
genfile=True,
),
sizeThreshold=dict(argstr='-t %d',
),
terminal_output=dict(nohash=True,
),
timer=dict(argstr='--timer',
),
verbosity=dict(argstr='-v %d',
),
)
inputs = Dewisp.input_spec()

for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(inputs.traits()[key], metakey), value


def test_Dewisp_outputs():
output_map = dict(outputMaskFile=dict(),
)
outputs = Dewisp.output_spec()

for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
yield assert_equal, getattr(outputs.traits()[key], metakey), value
Loading