Skip to content

Commit 5f93d84

Browse files
authored
Merge pull request #15 from nipype/develop
Bug fixes
2 parents 9deb792 + 25a4a26 commit 5f93d84

22 files changed

+296
-269
lines changed

example-specs/task/nipype/afni/afn_ito_nifti.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ inputs:
3636
# from the nipype interface, but you may want to be more specific, particularly
3737
# for file types, where specifying the format also specifies the file that will be
3838
# passed to the field in the automatically generated unittests.
39-
in_file: medimage-afni/threed
39+
in_file: medimage-afni/three-d
4040
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
4141
out_file: Path
4242
# type=file: output file

example-specs/task/nipype/afni/cat.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inputs:
3838
# from the nipype interface, but you may want to be more specific, particularly
3939
# for file types, where specifying the format also specifies the file that will be
4040
# passed to the field in the automatically generated unittests.
41-
in_files: medimage-afni/oned+list-of
41+
in_files: medimage-afni/one-d+list-of
4242
# type=list|default=[]:
4343
out_file: Path
4444
# type=file: output file
@@ -59,7 +59,7 @@ outputs:
5959
# from the nipype interface, but you may want to be more specific, particularly
6060
# for file types, where specifying the format also specifies the file that will be
6161
# passed to the field in the automatically generated unittests.
62-
out_file: medimage-afni/oned
62+
out_file: medimage-afni/one-d
6363
# type=file: output file
6464
# type=file|default='catout.1d': output (concatenated) file name
6565
callables:

example-specs/task/nipype/afni/cat_matvec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ outputs:
5454
# from the nipype interface, but you may want to be more specific, particularly
5555
# for file types, where specifying the format also specifies the file that will be
5656
# passed to the field in the automatically generated unittests.
57-
out_file: medimage-afni/oned
57+
out_file: medimage-afni/one-d
5858
# type=file: output file
5959
# type=file|default=<undefined>: File to write concattenated matvecs to
6060
callables:

example-specs/task/nipype/afni/center_mass.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ tests:
9191
automask:
9292
# type=bool|default=False: Generate the mask automatically
9393
set_cm:
94-
# type=tuple|default=(<traits.trait_types.Float object at 0x107b12910>, <traits.trait_types.Float object at 0x107b12a10>, <traits.trait_types.Float object at 0x107b12a90>): After computing the center of mass, set the origin fields in the header so that the center of mass will be at (x,y,z) in DICOM coords.
94+
# type=tuple|default=(<traits.trait_types.Float object at 0x1150ec450>, <traits.trait_types.Float object at 0x1150ec550>, <traits.trait_types.Float object at 0x1150ec5d0>): After computing the center of mass, set the origin fields in the header so that the center of mass will be at (x,y,z) in DICOM coords.
9595
local_ijk:
9696
# type=bool|default=False: Output values as (i,j,k) in local orientation
9797
roi_vals:

example-specs/task/nipype/afni/deconvolve.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ outputs:
8181
# type=file|default=<undefined>: output statistics file
8282
reml_script: generic/file
8383
# type=file: automatically generated script to run 3dREMLfit
84-
x1D: medimage-afni/oned
84+
x1D: medimage-afni/one-d
8585
# type=file: save out X matrix
8686
# type=file|default=<undefined>: specify name for saved X matrix
8787
callables:

example-specs/task/nipype/afni/dot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ tests:
8585
mask:
8686
# type=file|default=<undefined>: Use this dataset as a mask
8787
mrange:
88-
# type=tuple|default=(<traits.trait_types.Float object at 0x107b18fd0>, <traits.trait_types.Float object at 0x107b18ed0>): Means to further restrict the voxels from 'mset' so thatonly those mask values within this range (inclusive) willbe used.
88+
# type=tuple|default=(<traits.trait_types.Float object at 0x1150eeb90>, <traits.trait_types.Float object at 0x1150eea90>): Means to further restrict the voxels from 'mset' so thatonly those mask values within this range (inclusive) willbe used.
8989
demean:
9090
# type=bool|default=False: Remove the mean from each volume prior to computing the correlation
9191
docor:

example-specs/task/nipype/afni/eval.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ inputs:
3939
# from the nipype interface, but you may want to be more specific, particularly
4040
# for file types, where specifying the format also specifies the file that will be
4141
# passed to the field in the automatically generated unittests.
42-
in_file_a: medimage-afni/oned
42+
in_file_a: medimage-afni/one-d
4343
# type=file|default=<undefined>: input file to 1deval
44-
in_file_b: medimage-afni/oned
44+
in_file_b: medimage-afni/one-d
4545
# type=file|default=<undefined>: operand file to 1deval
4646
in_file_c: generic/file
4747
# type=file|default=<undefined>: operand file to 1deval
@@ -66,7 +66,7 @@ outputs:
6666
# from the nipype interface, but you may want to be more specific, particularly
6767
# for file types, where specifying the format also specifies the file that will be
6868
# passed to the field in the automatically generated unittests.
69-
out_file: medimage-afni/oned
69+
out_file: medimage-afni/one-d
7070
# type=file: output file
7171
# type=file|default=<undefined>: output image file name
7272
callables:

example-specs/task/nipype/afni/fim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ inputs:
3939
# from the nipype interface, but you may want to be more specific, particularly
4040
# for file types, where specifying the format also specifies the file that will be
4141
# passed to the field in the automatically generated unittests.
42-
ideal_file: medimage-afni/oned
42+
ideal_file: medimage-afni/one-d
4343
# type=file|default=<undefined>: ideal time series file name
4444
in_file: medimage/nifti1
4545
# type=file|default=<undefined>: input file to 3dfim+

example-specs/task/nipype/afni/one_d_tool_py.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ inputs:
3131
# from the nipype interface, but you may want to be more specific, particularly
3232
# for file types, where specifying the format also specifies the file that will be
3333
# passed to the field in the automatically generated unittests.
34-
in_file: medimage-afni/oned
34+
in_file: medimage-afni/one-d
3535
# type=file|default=<undefined>: input file to OneDTool
3636
out_file: Path
3737
# type=file: output of 1D_tool.py
@@ -54,7 +54,7 @@ outputs:
5454
# from the nipype interface, but you may want to be more specific, particularly
5555
# for file types, where specifying the format also specifies the file that will be
5656
# passed to the field in the automatically generated unittests.
57-
out_file: medimage-afni/oned
57+
out_file: medimage-afni/one-d
5858
# type=file: output of 1D_tool.py
5959
# type=file|default=<undefined>: write the current 1D data to FILE
6060
callables:
@@ -82,7 +82,7 @@ tests:
8282
show_censor_count:
8383
# type=bool|default=False: display the total number of censored TRs Note : if input is a valid xmat.1D dataset, then the count will come from the header. Otherwise the input is assumed to be a binary censorfile, and zeros are simply counted.
8484
censor_motion:
85-
# type=tuple|default=(<traits.trait_types.Float object at 0x107b49590>, <nipype.interfaces.base.traits_extension.File object at 0x107b49650>): Tuple of motion limit and outfile prefix. need to also set set_nruns -r set_run_lengths
85+
# type=tuple|default=(<traits.trait_types.Float object at 0x115116ed0>, <nipype.interfaces.base.traits_extension.File object at 0x115116f90>): Tuple of motion limit and outfile prefix. need to also set set_nruns -r set_run_lengths
8686
censor_prev_TR:
8787
# type=bool|default=False: for each censored TR, also censor previous
8888
show_trs_uncensored:

example-specs/task/nipype/afni/qwarp.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ inputs:
109109
# from the nipype interface, but you may want to be more specific, particularly
110110
# for file types, where specifying the format also specifies the file that will be
111111
# passed to the field in the automatically generated unittests.
112-
base_file: medimage/nifti1
112+
base_file: medimage/nifti1,medimage/nifti-gz
113113
# type=file|default=<undefined>: Base image (opposite phase encoding direction than source image).
114114
emask: generic/file
115115
# type=file|default=<undefined>: Here, 'ee' is a dataset to specify a mask of voxelsto EXCLUDE from the analysis -- all voxels in 'ee'that are NONZERO will not be used in the alignment.The base image always automasked -- the emask isextra, to indicate voxels you definitely DON'T wantincluded in the matching process, even if they areinside the brain.
116116
gridlist: generic/file
117117
# type=file|default=<undefined>: This option provides an alternate way to specify the patch grid sizes used in the warp optimization process. 'gl' is a 1D file with a list of patches to use -- in most cases, you will want to use it in the following form: ``-gridlist '1D: 0 151 101 75 51'`` * Here, a 0 patch size means the global domain. Patch sizes otherwise should be odd integers >= 5. * If you use the '0' patch size again after the first position, you will actually get an iteration at the size of the default patch level 1, where the patch sizes are 75% of the volume dimension. There is no way to force the program to literally repeat the sui generis step of lev=0.
118-
in_file: medimage/nifti1
118+
in_file: medimage/nifti1,medimage/nifti-gz
119119
# type=file|default=<undefined>: Source image (opposite phase encoding direction than base image).
120120
iniwarp: medimage-afni/head+list-of
121121
# type=list|default=[]: A dataset with an initial nonlinear warp to use. * If this option is not used, the initial warp is the identity. * You can specify a catenation of warps (in quotes) here, as in program 3dNwarpApply. * As a special case, if you just input an affine matrix in a .1D file, that will work also -- it is treated as giving the initial warp via the string "IDENT(base_dataset) matrix_file.aff12.1D". * You CANNOT use this option with -duplo !! * -iniwarp is usually used with -inilev to re-start 3dQwarp from a previous stopping point.
@@ -193,7 +193,7 @@ tests:
193193
wball:
194194
# type=list|default=[]: "``-wball x y z r f`` Enhance automatic weight from '-useweight' by a factor of 1+f\*Gaussian(FWHM=r) centered in the base image at DICOM coordinates (x,y,z) and with radius 'r'. The goal of this option is to try and make the alignment better in a specific part of the brain. Example: -wball 0 14 6 30 40 to emphasize the thalamic area (in MNI/Talairach space). * The 'r' parameter must be positive! * The 'f' parameter must be between 1 and 100 (inclusive). * '-wball' does nothing if you input your own weight with the '-weight' option. * '-wball' does change the binary weight created by the '-noweight' option. * You can only use '-wball' once in a run of 3dQwarp. **The effect of '-wball' is not dramatic.** The example above makes the average brain image across a collection of subjects a little sharper in the thalamic area, which might have some small value. If you care enough about alignment to use '-wball', then you should examine the results from 3dQwarp for each subject, to see if the alignments are good enough for your purposes.
195195
wmask:
196-
# type=tuple|default=(<nipype.interfaces.base.traits_extension.File object at 0x107a43190>, <traits.trait_types.Float object at 0x107a431d0>): Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
196+
# type=tuple|default=(<nipype.interfaces.base.traits_extension.File object at 0x115018350>, <traits.trait_types.Float object at 0x1150183d0>): Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
197197
out_weight_file:
198198
# type=file|default=<undefined>: Write the weight volume to disk as a dataset
199199
blur:

example-specs/task/nipype/afni/qwarp_plus_minus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ tests:
129129
wball:
130130
# type=list|default=[]: "``-wball x y z r f`` Enhance automatic weight from '-useweight' by a factor of 1+f\*Gaussian(FWHM=r) centered in the base image at DICOM coordinates (x,y,z) and with radius 'r'. The goal of this option is to try and make the alignment better in a specific part of the brain. Example: -wball 0 14 6 30 40 to emphasize the thalamic area (in MNI/Talairach space). * The 'r' parameter must be positive! * The 'f' parameter must be between 1 and 100 (inclusive). * '-wball' does nothing if you input your own weight with the '-weight' option. * '-wball' does change the binary weight created by the '-noweight' option. * You can only use '-wball' once in a run of 3dQwarp. **The effect of '-wball' is not dramatic.** The example above makes the average brain image across a collection of subjects a little sharper in the thalamic area, which might have some small value. If you care enough about alignment to use '-wball', then you should examine the results from 3dQwarp for each subject, to see if the alignments are good enough for your purposes.
131131
wmask:
132-
# type=tuple|default=(<nipype.interfaces.base.traits_extension.File object at 0x107a43190>, <traits.trait_types.Float object at 0x107a431d0>): Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
132+
# type=tuple|default=(<nipype.interfaces.base.traits_extension.File object at 0x115018350>, <traits.trait_types.Float object at 0x1150183d0>): Similar to '-wball', but here, you provide a dataset 'ws' that indicates where to increase the weight. * The 'ws' dataset must be on the same 3D grid as the base dataset. * 'ws' is treated as a mask -- it only matters where it is nonzero -- otherwise, the values inside are not used. * After 'ws' comes the factor 'f' by which to increase the automatically computed weight. Where 'ws' is nonzero, the weighting will be multiplied by (1+f). * As with '-wball', the factor 'f' should be between 1 and 100.
133133
out_weight_file:
134134
# type=file|default=<undefined>: Write the weight volume to disk as a dataset
135135
blur:

example-specs/task/nipype/afni/remlfit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ inputs:
6060
# type=file|default=<undefined>: filename of 3D mask dataset; only data time series from within the mask will be analyzed; results for voxels outside the mask will be set to zero.
6161
matim: generic/file
6262
# type=file|default=<undefined>: read a standard file as the matrix. You can use only Col as a name in GLTs with these nonstandard matrix input methods, since the other names come from the 'matrix' file. These mutually exclusive options are ignored if 'matrix' is used.
63-
matrix: medimage-afni/oned
63+
matrix: medimage-afni/one-d
6464
# type=file|default=<undefined>: the design matrix file, which should have been output from Deconvolve via the 'x1D' option
6565
obeta: Path
6666
# type=file: dataset for beta weights from the OLSQ estimation (if generated)

example-specs/task/nipype/afni/retroicor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ inputs:
5252
# from the nipype interface, but you may want to be more specific, particularly
5353
# for file types, where specifying the format also specifies the file that will be
5454
# passed to the field in the automatically generated unittests.
55-
card: medimage-afni/oned
55+
card: medimage-afni/one-d
5656
# type=file|default=<undefined>: 1D cardiac data file for cardiac correction
5757
cardphase: generic/file
5858
# type=file|default=<undefined>: Filename for 1D cardiac phase output
@@ -61,7 +61,7 @@ inputs:
6161
out_file: Path
6262
# type=file: output file
6363
# type=file|default=<undefined>: output image file name
64-
resp: medimage-afni/oned
64+
resp: medimage-afni/one-d
6565
# type=file|default=<undefined>: 1D respiratory waveform data for correction
6666
respphase: generic/file
6767
# type=file|default=<undefined>: Filename for 1D resp phase output

example-specs/task/nipype/afni/synthesize.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ inputs:
4040
# passed to the field in the automatically generated unittests.
4141
cbucket: medimage/nifti1
4242
# type=file|default=<undefined>: Read the dataset output from 3dDeconvolve via the '-cbucket' option.
43-
matrix: medimage-afni/oned
43+
matrix: medimage-afni/one-d
4444
# type=file|default=<undefined>: Read the matrix output from 3dDeconvolve via the '-x1D' option.
4545
out_file: Path
4646
# type=file: output file

example-specs/task/nipype/afni/t_corr_1d.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ inputs:
3939
# type=file|default=<undefined>: output filename prefix
4040
xset: medimage/nifti1
4141
# type=file|default=<undefined>: 3d+time dataset input
42-
y_1d: medimage-afni/oned
42+
y_1d: medimage-afni/one-d
4343
# type=file|default=<undefined>: 1D time series file input
4444
callable_defaults:
4545
# dict[str, str] - names of methods/callable classes defined in the adjacent `*_callables.py`

example-specs/task/nipype/afni/t_corr_map.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ tests:
164164
polort:
165165
# type=int|default=0:
166166
bandpass:
167-
# type=tuple|default=(<traits.trait_types.Float object at 0x107a24890>, <traits.trait_types.Float object at 0x107a24850>):
167+
# type=tuple|default=(<traits.trait_types.Float object at 0x114ff9c90>, <traits.trait_types.Float object at 0x114ff9f90>):
168168
regress_out_timeseries:
169169
# type=file|default=<undefined>:
170170
blur_fwhm:

example-specs/task/nipype/afni/volreg.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ outputs:
8686
md1d_file: generic/file
8787
# type=file: max displacement info file
8888
# type=file|default=<undefined>: max displacement output file
89-
oned_file: medimage-afni/oned
89+
oned_file: medimage-afni/one-d
9090
# type=file: movement parameters info file
9191
# type=file|default=<undefined>: 1D movement parameters output file
92-
oned_matrix_save: medimage-afni/oned
92+
oned_matrix_save: medimage-afni/one-d
9393
# type=file: matrix transformation from base to input
9494
# type=file|default=<undefined>: Save the matrix transformation
9595
out_file: medimage-afni/r1

example-specs/task/nipype/freesurfer/paint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ outputs:
6262
# from the nipype interface, but you may want to be more specific, particularly
6363
# for file types, where specifying the format also specifies the file that will be
6464
# passed to the field in the automatically generated unittests.
65-
out_file: medimage-freesurfer/avg_curv
65+
out_file: generic/file
6666
# type=file: File containing a surface-worth of per-vertex values, saved in 'curvature' format.
6767
# type=file|default=<undefined>: File containing a surface-worth of per-vertex values, saved in 'curvature' format.
6868
callables:

0 commit comments

Comments
 (0)