-
Notifications
You must be signed in to change notification settings - Fork 532
FSL FLIRT '-omat' affine matrix output not in decimal format #2813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
this is really weird because nipype doesn't write the file, fsl does. are you running the nipype command and the bash version in the same terminal (just to rule out environment issues). |
Thanks for the reply. I tried your suggestion, and started a new ipython session directly in the terminal and ran the same nipype commands. Looks like it is working normally this way, I was able to get a decimal format I have been running my nipype code in an ipython session in Emacs v25.3.2; since it is working properly via the terminal perhaps this an environment issue? |
@zmorrissey - seems like it. you may want to compare the environment variables inside emacs ipython and on the terminal. it may have something with language and encoding settings. |
@satra - I see, I will look into this to see if I can hunt down which environment variables are causing the issue in case others have similar problems. I appreciate your help and prompt reply! Thank you. |
Summary
Hello, I am using the
nipype.interfaces.fsl.FLIRT()
command to register a T2 atlas nifti image to a T2 subject nifti image, and I need the affine matrix output of this transformation for the following step to transform the atlas labels into the subject space.After running the FSL interface's
FLIRT
command using theout_matrix_file
input, it appears to run successfully without any errors, but the resulting.mat
file appears to be in a hex type of format instead of decimal format, and there don't appear to be any options listed in the documentation to specify the format for this output file. However, if I run the same command directly in bash, the affine matrix appears (normal) in decimal format.I'm not sure if this due to nipype or if there is a way to check which version of FSL nipype is calling? I had a similar issue using bash with an earlier version of FSL that was fixed after upgrading to FSL 6.0.
Any help would be appreciated. Thank you!
Actual behavior
The result of nipype's FLIRT
out_matrix_file
option is a.mat
file that is not in recognizable decimal format:Expected behavior
When I run the same command in bash using
flirt
, I get this matrix:Script/Workflow details
In Python:
If I take the
flt.cmdline
output and run it directly in bash, it works properly:Platform details:
Execution environment
Ubuntu 16.04 xenial
Python 3.5.2
ipython v6.4.0
nipype v1.5.6
fsl v6.0.0
The text was updated successfully, but these errors were encountered: