Dear Seb,
Many thanks for your answer - As you suggest, it would be easier to run the anatomical and diffusion pipelines in the subjects' native space and then, either have the pipeline generate the connectome using my custom parcellation (parcellation will have to be spatially normalized to each subjects' space) or register the tracktogram to the common space manually do the connectome later.
Does it seem relevant to you?
Also, while running the CMP3 (v3.0.4) pipeline on a HPC using singularity, I came accross an issue in the diffusion part of the process:
f"Exception raised while executing Node {self.name}.\n\n{result.runtime.traceback}" nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node compute_matrice.
Traceback (most recent call last):
File "/opt/conda/envs/py37cmp-core/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 398, in run
runtime = self._run_interface(runtime)
File "/opt/conda/envs/py37cmp-core/lib/python3.7/site-packages/cmtklib/connectome.py", line 765, in _run_interface
output_types=self.inputs.output_types,
File "/opt/conda/envs/py37cmp-core/lib/python3.7/site-packages/cmtklib/connectome.py", line 311, in cmat
np.mean(np.where(roiData == int(d["dn_multiscaleID"])), axis=1)
KeyError: 'dn_multiscaleID'
I believe it is a pandas DataFrame issue were it is trying to access the "dn_multiscaleID" column (or key) but it appears to not exist.
Do you have any idea of what might the issue? Should I open another threat here or issues on GH ?
Here's the parcellation part of my anatomical config for some context:
"parcellation_stage": {
"pipeline_mode": "Diffusion",
"parcellation_scheme": "NativeFreesurfer",
"include_thalamic_nuclei_parcellation": true,
"ants_precision_type": "double",
"segment_hippocampal_subfields": true,
"segment_brainstem": true,
"atlas_info": {}
I did not specify any particular parcellation as I initially wanted to build the connectome myself from the tracktogram. It might be a better idea to specify a custom parcellation and let CMP3 do the magics.
Thank you again for your time and answers,
Cheers,
Alex