interfaces.mrtrix.convert

MRTrix2TrackVis

Link to code

Converts MRtrix (.tck) tract files into TrackVis (.trk) format using functions from dipy

Example

>>> import nipype.interfaces.mrtrix as mrt
>>> tck2trk = mrt.MRTrix2TrackVis()
>>> tck2trk.inputs.in_file = 'dwi_CSD_tracked.tck'
>>> tck2trk.inputs.image_file = 'diffusion.nii'
>>> tck2trk.run()                                   

Inputs:

[Mandatory]
in_file: (an existing file name)
        The input file for the tracks in MRTrix (.tck) format

[Optional]
image_file: (an existing file name)
        The image the tracks were generated from
matrix_file: (an existing file name)
        A transformation matrix to apply to the tracts after they have been
        generated (from FLIRT - affine transformation from image_file to
        registration_image_file)
out_filename: (a file name, nipype default value: converted.trk)
        The output filename for the tracks in TrackVis (.trk) format
registration_image_file: (an existing file name)
        The final image the tracks should be registered to.

Outputs:

out_file: (an existing file name)

read_mrtrix_header()

Link to code

read_mrtrix_streamlines()

Link to code

read_mrtrix_tracks()

Link to code

transform_to_affine()

Link to code