Hi Sarah,
antsRegistrationSyN.sh -d 3 -o ants -f brain.nii.gz -m aal2.nii.gz
This looks like you are performing image registration using the parcellation data. That image does not contain anatomical information that can be used to drive image registration. Please see relevant Wiki pages.
brain.nii.gz:
native.nii.gz:
Showing two images separately like this can be deceiving if trying to assess whether or not they overlap spatially, as the camera is not guaranteed to remain fixed when you switch from one image to the next. The Overlay tool in mrview
is preferable.
native_relabel.nii.gz:
connectome.csv is empty:
The fact that image native_relabel.nii.gz
appears to contain only zeroes is likely the primary observation of interest; failing to produce a connectome from such is kind of to be expected.
I can’t help noticing that file aal2.nii.gz
and file ROI_MNI_V5.txt
are coming from two different locations on your file system. If the content of those two files do not correspond to one another, then the labelconvert
process will not have the intended effect. Indeed just looking at the parcellation image in isolation, there’s a good chance that the values within that image already increment from 1 with no gaps, in which case that command is not even necessary. If the values in file ROI_MNI_V5.txt
are e.g. in the thousands, then the problem is that you are using a LUT that is inappropriate for the parcellation image you are using. This page explains what this command does and why, so will hopefully also show why it could go wrong.
Cheers
Rob