Home · Quickstart · User Guide and Examples · Interfaces Index · Developers · About · Nipy

# nipype.interfaces.ants.base module

The ants module provides basic functions for interfacing with ANTS tools.

## ANTSCommand

Link to code

> Bases: CommandLine

> Base class for ANTS interfaces

> argsa unicode string

>   Additional parameters to the command. Maps to a command-line argument: `%s`.

> environa dictionary with keys which are a bytes or None or a value of class ‘str’ and with values which are a bytes or None or a value of class ‘str’

>   Environment variables. (Nipype default value: `{}`)

> num_threadsan integer (int or long)

>   Number of ITK threads to use. (Nipype default value: `1`)

> classmethod ANTSCommand.set_default_num_threads(num_threads)

>   Set the default number of threads for ITK calls

>   This method is used to set the default number of ITK threads for all the ANTS interfaces. However, setting this will not update the output type for any existing instances. For these, assign the <instance>.inputs.num_threads

> property ANTSCommand.version

>   interfaces should implement a version property

class nipype.interfaces.ants.base.Info

  Bases: `nipype.interfaces.base.core.PackageInfo`

  static parse_version(raw_info)
  version_cmd = 'antsRegistration --version'