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

# nipype.interfaces.bru2nii module

The bru2nii module provides basic functions for dicom conversion

## Bru2

Link to code

> Bases: CommandLine

> Wrapped executable: `Bru2`.

> Uses bru2nii’s Bru2 to convert Bruker files

> Examples

>     >>> from nipype.interfaces.bru2nii import Bru2
>     >>> converter = Bru2()
>     >>> converter.inputs.input_dir = "brukerdir"
>     >>> converter.cmdline
>     'Bru2 -o .../data/brukerdir brukerdir'

> input_dira pathlike object or string representing an existing directory

>   Input Directory. Maps to a command-line argument: `%s` (position: -1).

> actual_sizea boolean

>   Keep actual size - otherwise x10 scale so animals match human. Maps to a command-line argument: `-a`.

> append_protocol_namea boolean

>   Append protocol name to output filename. Maps to a command-line argument: `-p`.

> argsa unicode string

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

> compressa boolean

>   Gz compress images (“.nii.gz”). Maps to a command-line argument: `-z`.

> 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: `{}`)

> force_conversiona boolean

>   Force conversion of localizers images (multiple slice orientations). Maps to a command-line argument: `-f`.

> output_filenamea unicode string

>   Output filename (“.nii” will be appended, or “.nii.gz” if the “-z” compress option is selected). Maps to a command-line argument: `-o %s`.

> nii_file : a pathlike object or string representing an existing file