Whitematteranalysis subject space problem

Operating system: Mac OS
Slicer version: 4.11
Expected behavior:
Actual behavior:


I run de pipeline to perform the whole-brain tractography parcellation using the WMA. software and the anatomically ORG white matter atlas.
This includes the “wm_harden_transform.py” to transforms the fiber clusters in the atlas space back to the DWI subject space (Ussing “-i” in the command).
Finally I get the anatomical fibers, but they are not in the subject or the atlas space (see picture).

Any suggestions?

Thanks a lot

DICOM and all medical image computing software standardized on using LPS coordinate system in files. It was painful to achieve this in 3D Slicer (only reached it in Slicer-4.11), but now we are fully compliant. See more information here.

In your case, probably the simplest is to specify to Slicer that the input model is in RAS by changing this line:

To this (to use a lower level API that allows specification of the coordinate system of the loaded model):

slicer.util.loadNodeFromFile(str(polydata), 'ModelFile',
  {'coordinateSystem': slicer.vtkMRMLModelStorageNode.CoordinateSystemRAS},

Thanks Andras for your answer.
I use the Slicer 4.11v and I can choose the coordinate system before loading the model (RAS or LPS) but neither of the two works (see picture for the T_CST_left tract)

Best regards

NRRD image file coordinate system is very well defined, surface mesh coordinate systems are also clearly defined (as long as you know if LPS or RAS axis directions are used), so if there is misalignment then it is how the data is created or processed. You need to contact WMA software developers, for example by submitting a bug report to their repository. Copy here the link to the submitted bug report for future reference.