Skip to content

Commit

Permalink
Merge pull request #15 from nipype/develop
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
tclose authored Mar 17, 2024
2 parents 9deb792 + 25a4a26 commit 5f93d84
Show file tree
Hide file tree
Showing 22 changed files with 296 additions and 269 deletions.
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/afn_ito_nifti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
in_file: medimage-afni/threed
in_file: medimage-afni/three-d
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
out_file: Path
# type=file: output file
Expand Down
4 changes: 2 additions & 2 deletions example-specs/task/nipype/afni/cat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
in_files: medimage-afni/oned+list-of
in_files: medimage-afni/one-d+list-of
# type=list|default=[]:
out_file: Path
# type=file: output file
Expand All @@ -59,7 +59,7 @@ outputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
out_file: medimage-afni/oned
out_file: medimage-afni/one-d
# type=file: output file
# type=file|default='catout.1d': output (concatenated) file name
callables:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/cat_matvec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ outputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
out_file: medimage-afni/oned
out_file: medimage-afni/one-d
# type=file: output file
# type=file|default=<undefined>: File to write concattenated matvecs to
callables:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/center_mass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ tests:
automask:
# type=bool|default=False: Generate the mask automatically
set_cm:
# 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.
# 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.
local_ijk:
# type=bool|default=False: Output values as (i,j,k) in local orientation
roi_vals:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/deconvolve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ outputs:
# type=file|default=<undefined>: output statistics file
reml_script: generic/file
# type=file: automatically generated script to run 3dREMLfit
x1D: medimage-afni/oned
x1D: medimage-afni/one-d
# type=file: save out X matrix
# type=file|default=<undefined>: specify name for saved X matrix
callables:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/dot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ tests:
mask:
# type=file|default=<undefined>: Use this dataset as a mask
mrange:
# 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.
# 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.
demean:
# type=bool|default=False: Remove the mean from each volume prior to computing the correlation
docor:
Expand Down
6 changes: 3 additions & 3 deletions example-specs/task/nipype/afni/eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
in_file_a: medimage-afni/oned
in_file_a: medimage-afni/one-d
# type=file|default=<undefined>: input file to 1deval
in_file_b: medimage-afni/oned
in_file_b: medimage-afni/one-d
# type=file|default=<undefined>: operand file to 1deval
in_file_c: generic/file
# type=file|default=<undefined>: operand file to 1deval
Expand All @@ -66,7 +66,7 @@ outputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
out_file: medimage-afni/oned
out_file: medimage-afni/one-d
# type=file: output file
# type=file|default=<undefined>: output image file name
callables:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/fim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
ideal_file: medimage-afni/oned
ideal_file: medimage-afni/one-d
# type=file|default=<undefined>: ideal time series file name
in_file: medimage/nifti1
# type=file|default=<undefined>: input file to 3dfim+
Expand Down
6 changes: 3 additions & 3 deletions example-specs/task/nipype/afni/one_d_tool_py.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
in_file: medimage-afni/oned
in_file: medimage-afni/one-d
# type=file|default=<undefined>: input file to OneDTool
out_file: Path
# type=file: output of 1D_tool.py
Expand All @@ -54,7 +54,7 @@ outputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
out_file: medimage-afni/oned
out_file: medimage-afni/one-d
# type=file: output of 1D_tool.py
# type=file|default=<undefined>: write the current 1D data to FILE
callables:
Expand Down Expand Up @@ -82,7 +82,7 @@ tests:
show_censor_count:
# 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.
censor_motion:
# 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
# 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
censor_prev_TR:
# type=bool|default=False: for each censored TR, also censor previous
show_trs_uncensored:
Expand Down
6 changes: 3 additions & 3 deletions example-specs/task/nipype/afni/qwarp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
base_file: medimage/nifti1
base_file: medimage/nifti1,medimage/nifti-gz
# type=file|default=<undefined>: Base image (opposite phase encoding direction than source image).
emask: generic/file
# 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.
gridlist: generic/file
# 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.
in_file: medimage/nifti1
in_file: medimage/nifti1,medimage/nifti-gz
# type=file|default=<undefined>: Source image (opposite phase encoding direction than base image).
iniwarp: medimage-afni/head+list-of
# 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.
Expand Down Expand Up @@ -193,7 +193,7 @@ tests:
wball:
# 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.
wmask:
# 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.
# 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.
out_weight_file:
# type=file|default=<undefined>: Write the weight volume to disk as a dataset
blur:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/qwarp_plus_minus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ tests:
wball:
# 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.
wmask:
# 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.
# 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.
out_weight_file:
# type=file|default=<undefined>: Write the weight volume to disk as a dataset
blur:
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/remlfit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ inputs:
# 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.
matim: generic/file
# 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.
matrix: medimage-afni/oned
matrix: medimage-afni/one-d
# type=file|default=<undefined>: the design matrix file, which should have been output from Deconvolve via the 'x1D' option
obeta: Path
# type=file: dataset for beta weights from the OLSQ estimation (if generated)
Expand Down
4 changes: 2 additions & 2 deletions example-specs/task/nipype/afni/retroicor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ inputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
card: medimage-afni/oned
card: medimage-afni/one-d
# type=file|default=<undefined>: 1D cardiac data file for cardiac correction
cardphase: generic/file
# type=file|default=<undefined>: Filename for 1D cardiac phase output
Expand All @@ -61,7 +61,7 @@ inputs:
out_file: Path
# type=file: output file
# type=file|default=<undefined>: output image file name
resp: medimage-afni/oned
resp: medimage-afni/one-d
# type=file|default=<undefined>: 1D respiratory waveform data for correction
respphase: generic/file
# type=file|default=<undefined>: Filename for 1D resp phase output
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/synthesize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inputs:
# passed to the field in the automatically generated unittests.
cbucket: medimage/nifti1
# type=file|default=<undefined>: Read the dataset output from 3dDeconvolve via the '-cbucket' option.
matrix: medimage-afni/oned
matrix: medimage-afni/one-d
# type=file|default=<undefined>: Read the matrix output from 3dDeconvolve via the '-x1D' option.
out_file: Path
# type=file: output file
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/t_corr_1d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inputs:
# type=file|default=<undefined>: output filename prefix
xset: medimage/nifti1
# type=file|default=<undefined>: 3d+time dataset input
y_1d: medimage-afni/oned
y_1d: medimage-afni/one-d
# type=file|default=<undefined>: 1D time series file input
callable_defaults:
# dict[str, str] - names of methods/callable classes defined in the adjacent `*_callables.py`
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/afni/t_corr_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tests:
polort:
# type=int|default=0:
bandpass:
# type=tuple|default=(<traits.trait_types.Float object at 0x107a24890>, <traits.trait_types.Float object at 0x107a24850>):
# type=tuple|default=(<traits.trait_types.Float object at 0x114ff9c90>, <traits.trait_types.Float object at 0x114ff9f90>):
regress_out_timeseries:
# type=file|default=<undefined>:
blur_fwhm:
Expand Down
4 changes: 2 additions & 2 deletions example-specs/task/nipype/afni/volreg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ outputs:
md1d_file: generic/file
# type=file: max displacement info file
# type=file|default=<undefined>: max displacement output file
oned_file: medimage-afni/oned
oned_file: medimage-afni/one-d
# type=file: movement parameters info file
# type=file|default=<undefined>: 1D movement parameters output file
oned_matrix_save: medimage-afni/oned
oned_matrix_save: medimage-afni/one-d
# type=file: matrix transformation from base to input
# type=file|default=<undefined>: Save the matrix transformation
out_file: medimage-afni/r1
Expand Down
2 changes: 1 addition & 1 deletion example-specs/task/nipype/freesurfer/paint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ outputs:
# from the nipype interface, but you may want to be more specific, particularly
# for file types, where specifying the format also specifies the file that will be
# passed to the field in the automatically generated unittests.
out_file: medimage-freesurfer/avg_curv
out_file: generic/file
# type=file: File containing a surface-worth of per-vertex values, saved in 'curvature' format.
# type=file|default=<undefined>: File containing a surface-worth of per-vertex values, saved in 'curvature' format.
callables:
Expand Down
Loading

0 comments on commit 5f93d84

Please sign in to comment.