Hi Milad,
Sorry to get back to you on this only now. It seems my recent messages related to the cmtk-users group went into my spams. This should be now fixed.
I would recommend you to ignore this repository, which is very experimental. This was indeed part of a test to separate the resources (heavy files) of cmp3 that are not employed by the cmpbidsappmanager GUI to be able to publish it to PyPI.
The solution employed now in cmp3 is to use two different setup.py package installation files:
- setup.py: provide a full installation of all modules of cmp3 (including all files in cmtklib/data)
- setup_pypi.py: provide a light-weight installation of cmp3 (which should include all resource files related to parcellations - cmtklib/data/parcellation - but does not contain any resources related to brain segmentation - cmtklib/data/segmentation.
The problem here is that the labels are defined in the Freesurfer range in the annot files but are from 1 to n (#ROIs) in the color LUT.
This is indeed handled by the parcellation stage of cmp3.
Thus, in your case, I would run only the anatomical pipeline of cmp3 with Lausanne2018. This would generate consistent FreeSurfer color LUT and volumetric parcellation files.
Note also that cmp3 create dynamically the _FreesurferColorLUT.txt, _dseg.tsv, _dseg.graphml, and _stats.tsv as Lausanne 2018 can also but not necessarily include extra segmented structures such as the the thalamic nuclei.
Let me know if you have further questions.
Best,
Seb