hi marcel,
the easiest thing might be to add a function node with the following function
```
from nipype.interfaces.utility import Function
from nipype.pipeline.engine import Node
def matrix_to_file(matrix):
import numpy as np
import os
filename = os.path.join(os.getcwd(), 'matrix.txt')
np.savetxt(filename, matrix, fmt='%.10f', delimiter=' ')
return filename
converter = Node(Function(input_names['matrix'], output_names['matrix_file'],
function=matrix_to_file),
name='avscale2txt')
```
you might need to change the savetxt function to match flirt's expected format.