nipype.interfaces.niftyreg.base module

The niftyreg module provides classes for interfacing with niftyreg command line tools.

These are the base tools for working with niftyreg.

Registration tools are found in niftyreg/reg.py Every other tool is found in niftyreg/regutils.py

Examples

See the docstrings of the individual classes for examples.

class nipype.interfaces.niftyreg.base.Info

Bases: nipype.interfaces.base.core.PackageInfo

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

NiftyRegCommand

Link to code

Bases: CommandLine

Base support interface for NiftyReg commands.

Optional Inputs:
  • args (a string) – Additional parameters to the command. Maps to a command-line argument: %s.

  • environ (a 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: {})

  • omp_core_val (an integer) – Number of openmp thread to use. Maps to a command-line argument: -omp %i. (Nipype default value: 1)

NiftyRegCommand.check_version()
NiftyRegCommand.exists()
property NiftyRegCommand.version

interfaces should implement a version property

nipype.interfaces.niftyreg.base.get_custom_path(command, env_dir='NIFTYREGDIR')