Hi,
I am trying to import diffusion data.
I have built a .ima file with my b=0 data + b = 1000 data and modified the .ima.minf file as this :
attributes = {
'bvalues' : [ 0, 0, 0, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000 ],
'diffusion_gradient_orientations' : [ [ 0, 0, 0], [ 0, 0, 0 ], [ 0, 0, 0 ], [ 0.86152579, -0.36090945, 0.35392411 ], [ 0.86239121, 0.3601066, 0.35311424 ], [ 0.86152579, 0.36090945, -0.35392411 ], [ 0.86239121, -0.3601066, - 0.35311424 ], [ 0.35780469, -0.36062205, -0.85647736 ], [ 0.3567275, -0.86232553, -0.35110974 ], [ 0.35601476, -0.86340587, 0.35321149 ], [ 0.35708548, - 0.36270887, 0.85756749 ], [ 0.35780469, 0.36062205, 0.85647736 ], [ 0.3567275, 0.86232553, 0.35110974 ], [ 0.35601476, 0.86340587, -0.35321149 ], [ 0.35708548, 0.36270887, -0.85756749 ], [ 0.86152579, -0.36090945, 0.35392411 ], [ 0.86239121, 0.3601066, 0.35311424 ], [ 0.86152579, 0.36090945, -0.35392411 ], [ 0.86239121, -0.3601066, -0.35311424 ], [ 0.35780469, -0.36062205, -0.85647736 ], [ 0.3567275, -0.86232553, -0.35110974 ], [ 0.35601476, -0.86340587, 0.35321149 ], [ 0.35708548, -0.36270887, 0.85756749 ], [ 0.35780469, 0.36062205, 0.85647736 ], [ 0.3567275, 0.86232553, 0.35110974 ], [ 0.35601476, 0.86340587, -0.35321149 ], [ 0.35708548, 0.36270887, -0.85756749 ], [ 0.86152579, -0.36090945, 0.35392411 ], [ 0.86239121, 0.3601066, 0.35311424 ],[ 0.86152579, 0.36090945, -0.35392411 ], [ 0.86239121, -0.3601066, -0.35311424 ], [ 0.35780469, -0.36062205, -0.85647736 ], [ 0.3567275, -0.86232553, -.35110974 ], [ 0.35601476, -0.86340587, 0.35321149 ], [ 0.35708548, -0.36270887, 0.85756749 ], [ 0.35780469, 0.36062205, 0.85647736 ], [ 0.3567275, 0.86232553, 0.35110974 ], [ 0.35601476, 0.86340587, -0.35321149 ], [ 0.35708548, 0.36270887, -0.85756749 ] ],
}
When I launch the AimsDiffusionConcatenation command, I receive the message error :
Key diffusion_gradient_orientations not found in Dictionary
Where have I made a mistake ??
Thanks
Josselin HOUENOU
AimsDiffusionConcatenation error message
- Yann Cointepas
- Posts: 316
- Joined: Tue Jan 20, 2004 2:56 pm
- Location: Neurospin, Saint Aubin, France
- Contact:
I do not see any obvious mistake. The syntax is correct as well as the number of elements. Try AimsFileInfo on all the files you pass to AimsDiffusionConcatenation to be sure that each one has information about b-values and gradients. If you cannot find the problem, post the full command (with parameters) and the minf file(s) content.