Skip to content

Commit 46f38d9

Browse files
committed
Merge pull request #1 from juhuntenburg/enh/AddInterfaceFSLWarpUtils
Enh/add interface fsl warp utils
2 parents 7d05c7e + 956d51f commit 46f38d9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,23 +1575,26 @@ class ConvertWarpInputSpec(FSLCommandInputSpec):
15751575
desc='filename for pre-transform (affine matrix)')
15761576

15771577
warp1 = File(exists=True, argstr='--warp1=%s',
1578-
desc=('Name of file containing warp-fields/coefficients. This could e.g. be a '
1578+
desc=('Name of file containing inital warp-fields/coefficients (follows premat). This could e.g. be a '
15791579
'fnirt-transform from a subjects structural scan to an average of a group '
15801580
'of subjects.'))
1581+
1582+
midmat=File(exists=True, argstr="--midmat=%s",
1583+
desc="Name of file containing mid-warp-affine transform")
15811584

15821585
warp2 = File(exists=True, argstr='--warp2=%s',
1583-
desc=('Name of file containing warp-fields/coefficients. This could e.g. be a '
1586+
desc=('Name of file containing secondary warp-fields/coefficients (after warp1/midmat but before postmat). This could e.g. be a '
15841587
'fnirt-transform from the average of a group of subjects to some standard '
15851588
'space (e.g. MNI152).'))
15861589

15871590
postmat = File(exists=True, argstr='--postmat=%s',
1588-
desc=('Name of file containing an affine transform. It could e.g. be an affine '
1591+
desc=('Name of file containing an affine transform (applied last). It could e.g. be an affine '
15891592
'transform that maps the MNI152-space into a better approximation to the '
15901593
'Talairach-space (if indeed there is one).'))
15911594

15921595
shift_in_file = File(exists=True, argstr='--shiftmap=%s',
15931596
desc=('Name of file containing a "shiftmap", a non-linear transform with '
1594-
'displacements only in one direction. This would typically be a '
1597+
'displacements only in one direction (applied first, before premat). This would typically be a '
15951598
'fieldmap that has been pre-processed using fugue that maps a '
15961599
'subjects functional (EPI) data onto an undistorted space (i.e. a space '
15971600
'that corresponds to his/her true anatomy).'))
@@ -1626,12 +1629,12 @@ class ConvertWarpInputSpec(FSLCommandInputSpec):
16261629
'coordinates in the next space.'))
16271630

16281631
out_abswarp = traits.Bool(argstr='--absout', xor=['out_relwarp'],
1629-
desc=('If set it indicates that the warps in --out should be relative, i.e. '
1630-
'the vaulues in --out are displacements from the coordinates in --ref.'))
1632+
desc=('If set it indicates that the warps in --out should be absolute, i.e. '
1633+
'the values in --out are displacements from the coordinates in --ref.'))
16311634

16321635
out_relwarp = traits.Bool(argstr='--relout', xor=['out_abswarp'],
16331636
desc=('If set it indicates that the warps in --out should be relative, i.e. '
1634-
'the vaulues in --out are displacements from the coordinates in --ref.'))
1637+
'the values in --out are displacements from the coordinates in --ref.'))
16351638

16361639

16371640
class ConvertWarpOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)