Skip to content

DOCs: fix/improve descriptions for commands and interfaces #2593

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 6 commits into from
Jul 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions nipype/interfaces/ants/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ class ANTSInputSpec(ANTSCommandInputSpec):
traits.Int(),
requires=['metric'],
mandatory=True,
desc='radius of the region (i.e. number of layers'
' around a voxel point)'
desc='radius of the region (i.e. number of layers around a voxel/pixel)'
' that is used for computing cross correlation')

output_transform_prefix = Str(
Expand Down Expand Up @@ -126,8 +125,8 @@ class ANTSOutputSpec(TraitedSpec):


class ANTS(ANTSCommand):
"""

"""ANTS wrapper for registration of images
(old, use Registration instead)

Examples
--------
Expand Down Expand Up @@ -557,7 +556,8 @@ class RegistrationOutputSpec(TraitedSpec):


class Registration(ANTSCommand):
"""
"""ANTs Registration command for registration of images

`antsRegistration <http://stnava.github.io/ANTs/>`_ registers a ``moving_image`` to a ``fixed_image``,
using a predefined (sequence of) cost function(s) and transformation operations.
The cost function is defined using one or more 'metrics', specifically
Expand Down Expand Up @@ -601,12 +601,12 @@ class Registration(ANTSCommand):
Examples
--------

Set up a Registation node with some default settings. This Node registers
Set up a Registration node with some default settings. This Node registers
'fixed1.nii' to 'moving1.nii' by first fitting a linear 'Affine' transformation, and
then a non-linear 'SyN' transformation, both using the Mutual Information-cost
metric.

The registration is initailized by first applying the (linear) transform
The registration is initialized by first applying the (linear) transform
trans.mat.

>>> import copy, pprint
Expand Down
18 changes: 9 additions & 9 deletions nipype/interfaces/ants/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,15 +493,15 @@ class ApplyTransformsToPointsInputSpec(ANTSCommandInputSpec):
argstr='--input %s',
mandatory=True,
desc=
("Currently, the only input supported is a csv file with "
"columns including x,y (2D), x,y,z (3D) or x,y,z,t,label (4D) column headers."
"The points should be defined in physical space."
"If in doubt how to convert coordinates from your files to the space"
"required by antsApplyTransformsToPoints try creating/drawing a simple"
"label volume with only one voxel set to 1 and all others set to 0."
"Write down the voxel coordinates. Then use ImageMaths LabelStats to find"
"out what coordinates for this voxel antsApplyTransformsToPoints is"
"expecting."),
("Currently, the only input supported is a csv file with"
" columns including x,y (2D), x,y,z (3D) or x,y,z,t,label (4D) column headers."
" The points should be defined in physical space."
" If in doubt how to convert coordinates from your files to the space"
" required by antsApplyTransformsToPoints try creating/drawing a simple"
" label volume with only one voxel set to 1 and all others set to 0."
" Write down the voxel coordinates. Then use ImageMaths LabelStats to find"
" out what coordinates for this voxel antsApplyTransformsToPoints is"
" expecting."),
exists=True)
output_file = traits.Str(
argstr='--output %s',
Expand Down
Loading