@@ -90,14 +90,14 @@ def _gen_filename(self, name):
90
90
inputs = self .inputs .get ()
91
91
if isdefined (inputs [name ]):
92
92
return os .path .abspath (inputs [name ])
93
-
93
+
94
94
fileToSuffixMap = {'outputMRIVolume' : '.bse.nii.gz' ,
95
95
'outputMaskFile' : '.mask.nii.gz'
96
96
}
97
-
97
+
98
98
if name in fileToSuffixMap :
99
99
return getFileName (self .inputs .inputMRIFile , fileToSuffixMap [name ])
100
-
100
+
101
101
return None
102
102
103
103
def _list_outputs (self ):
@@ -125,7 +125,7 @@ class BfcInputSpec(CommandLineInputSpec):
125
125
splineLambda = traits .Float (
126
126
desc = 'spline stiffness weighting parameter' , argstr = '-w %f' )
127
127
histogramType = traits .Enum (
128
- 'ellipse' , 'block' , desc = 'Options for type of histogram\n ellipse: use ellipsoid for ROI histogram\n block :use block for ROI histogram' ,
128
+ 'ellipse' , 'block' , desc = 'Options for type of histogram\n ellipse: use ellipsoid for ROI histogram\n block :use block for ROI histogram' ,
129
129
argstr = '%s' )
130
130
iterativeMode = traits .Bool (
131
131
desc = 'iterative mode (overrides -r, -s, -c, -w settings)' , argstr = '--iterate' )
@@ -200,11 +200,11 @@ def _gen_filename(self, name):
200
200
inputs = self .inputs .get ()
201
201
if isdefined (inputs [name ]):
202
202
return os .path .abspath (inputs [name ])
203
-
203
+
204
204
fileToSuffixMap = {'outputMRIVolume' : '.bfc.nii.gz' }
205
205
if name in fileToSuffixMap :
206
206
return getFileName (self .inputs .inputMRIFile , fileToSuffixMap [name ])
207
-
207
+
208
208
return None
209
209
210
210
def _format_arg (self , name , spec , value ):
@@ -351,7 +351,7 @@ def _gen_filename(self, name):
351
351
inputs = self .inputs .get ()
352
352
if isdefined (inputs [name ]):
353
353
return os .path .abspath (inputs [name ])
354
-
354
+
355
355
fileToSuffixMap = {'outputCerebrumMaskFile' : '.cerebrum.mask.nii.gz' ,
356
356
'outputLabelVolumeFile' : '.hemi.label.nii.gz' ,
357
357
'outputWarpTransformFile' : '.warp' ,
@@ -881,18 +881,18 @@ def _gen_filename(self, name):
881
881
def _list_outputs (self ):
882
882
return l_outputs (self )
883
883
884
-
885
-
884
+
885
+
886
886
class SVRegInputSpec (CommandLineInputSpec ):
887
887
subjectFilePrefix = traits .Str (
888
- argstr = '\' %s\' ' , mandatory = True , position = 0 ,
888
+ argstr = '\' %s\' ' , mandatory = True , position = 0 ,
889
889
desc = 'Absolute path and filename prefix of the subjects output from BrainSuite '
890
890
'Cortical Surface Extraction Sequence'
891
891
)
892
892
dataSinkDelay = traits .List (
893
- str , argstr = '%s' ,
893
+ str , argstr = '%s' ,
894
894
desc = 'Connect datasink out_file to dataSinkDelay to delay execution of SVReg '
895
- 'until dataSink has finished sinking CSE outputs.'
895
+ 'until dataSink has finished sinking CSE outputs.'
896
896
'For use with parallel processing workflows including Brainsuites Cortical '
897
897
'Surface Extraction sequence (SVReg requires certain files from Brainsuite '
898
898
'CSE, which must all be in the pathway specified by subjectFilePrefix. see '
@@ -998,16 +998,16 @@ class SVRegInputSpec(CommandLineInputSpec):
998
998
argstr = '\' -U\' ' ,
999
999
desc = 'Use single threaded mode.'
1000
1000
)
1001
-
1001
+
1002
1002
class SVReg (CommandLine ):
1003
1003
"""
1004
1004
surface and volume registration (svreg)
1005
1005
This program registers a subject's BrainSuite-processed volume and surfaces
1006
1006
to an atlas, allowing for automatic labelling of volume and surface ROIs.
1007
-
1007
+
1008
1008
For more information, please see:
1009
1009
http://brainsuite.org/processing/svreg/usage/
1010
-
1010
+
1011
1011
Examples
1012
1012
--------
1013
1013
@@ -1022,12 +1022,12 @@ class SVReg(CommandLine):
1022
1022
>>> svreg.inputs.useSingleThreading = True
1023
1023
>>> results = svreg.run() #doctest: +SKIP
1024
1024
1025
-
1025
+
1026
1026
"""
1027
-
1027
+
1028
1028
input_spec = SVRegInputSpec
1029
1029
_cmd = 'svreg.sh'
1030
-
1030
+
1031
1031
def _format_arg (self , name , spec , value ):
1032
1032
if name == 'subjectFilePrefix' or name == 'atlasFilePrefix' or name == 'curveMatchingInstructions' :
1033
1033
return spec .argstr % os .path .expanduser (value )
@@ -1086,7 +1086,7 @@ class BDPInputSpec(CommandLineInputSpec):
1086
1086
'usually has an extension of .bvec '
1087
1087
)
1088
1088
dataSinkDelay = traits .List (
1089
- str , argstr = '%s' ,
1089
+ str , argstr = '%s' ,
1090
1090
desc = 'For use in parallel processing workflows including Brainsuite Cortical '
1091
1091
'Surface Extraction sequence. Connect datasink out_file to dataSinkDelay '
1092
1092
'to delay execution of BDP until dataSink has finished sinking outputs. '
@@ -1513,7 +1513,7 @@ class BDPInputSpec(CommandLineInputSpec):
1513
1513
'on machines with a low amount of memory. This may result in an '
1514
1514
'out-of-memory error when BDP cannot allocate sufficient memory. '
1515
1515
)
1516
-
1516
+
1517
1517
class BDP (CommandLine ):
1518
1518
"""
1519
1519
BrainSuite Diffusion Pipeline (BDP) enables fusion of diffusion and
@@ -1523,7 +1523,7 @@ class BDP(CommandLine):
1523
1523
flexible and diverse tool which supports wide variety of diffusion
1524
1524
datasets.
1525
1525
For more information, please see:
1526
-
1526
+
1527
1527
http://brainsuite.org/processing/diffusion/
1528
1528
1529
1529
Examples
@@ -1535,13 +1535,13 @@ class BDP(CommandLine):
1535
1535
>>> bdp.inputs.inputDiffusionData = '/directory/subdir/prefix.dwi.nii.gz'
1536
1536
>>> bdp.inputs.BVecBValPair = ['/directory/subdir/prefix.dwi.bvec', '/directory/subdir/prefix.dwi.bval']
1537
1537
>>> results = bdp.run() #doctest: +SKIP
1538
-
1539
-
1538
+
1539
+
1540
1540
"""
1541
1541
1542
1542
input_spec = BDPInputSpec
1543
1543
_cmd = 'bdp.sh'
1544
-
1544
+
1545
1545
def _format_arg (self , name , spec , value ):
1546
1546
if name == 'BVecBValPair' :
1547
1547
return spec .argstr % (value [0 ], value [1 ])
@@ -1555,30 +1555,30 @@ class ThicknessPVCInputSpec(CommandLineInputSpec):
1555
1555
argstr = '%s' , mandatory = True ,
1556
1556
desc = 'Absolute path and filename prefix of the subject data'
1557
1557
)
1558
-
1558
+
1559
1559
class ThicknessPVC (CommandLine ):
1560
1560
"""
1561
1561
ThicknessPVC computes cortical thickness using partial tissue fractions.
1562
- This thickness measure is then transferred to the atlas surface to
1562
+ This thickness measure is then transferred to the atlas surface to
1563
1563
facilitate population studies. It also stores the computed thickness into
1564
1564
separate hemisphere files and subject thickness mapped to the atlas
1565
1565
hemisphere surfaces. ThicknessPVC is not run through the main SVReg
1566
- sequence, and should be used after executing the BrainSuite and SVReg
1566
+ sequence, and should be used after executing the BrainSuite and SVReg
1567
1567
sequence.
1568
1568
For more informaction, please see:
1569
-
1569
+
1570
1570
http://brainsuite.org/processing/svreg/svreg_modules/
1571
-
1571
+
1572
1572
Examples
1573
1573
--------
1574
-
1574
+
1575
1575
>>> from nipype.interfaces import brainsuite
1576
1576
>>> thicknessPVC = brainsuite.ThicknessPVC()
1577
1577
>>> thicknessPVC.inputs.subjectFilePrefix = 'home/user/btestsubject/testsubject'
1578
1578
>>> results = thicknessPVC.run() #doctest: +SKIP
1579
-
1579
+
1580
1580
"""
1581
-
1581
+
1582
1582
input_spec = ThicknessPVCInputSpec
1583
1583
_cmd = 'thicknessPVC.sh'
1584
1584
0 commit comments