The length of *dscalar structural data

Hi everyone,

I am planing to use .*dscalar data from the dHCP 3rd release.
But when I checked the dimensions of those data from different neonates using the Matlab function “cifti_read”, I found that variable cdata has a different length, such as the following two data.


And I am aware that all surfaces have already aligned to the template with MSM. I am curious about whether the different data length (the number of vertex) was caused by the fact that different age templates were used during the MSM alignment. If the answer is yes, could I resample (cifti_resampe from workbench) those data to the same number of vertex?

Thank you very much.


Hi @Bertram,

To my knowledge, the 3rd release dHCP neonatal data is released in native space, which would account for the difference in the number of vertices/length of the cdata variable. We do provide the transforms to get from native to template space ( xfm/sub-{subid}_ses-{sesid}_hemi-{hemi}, and the script to do this is located here: dHCP_template_alignment/ at master · ecr05/dHCP_template_alignment · GitHub

All the template spaces for the 3rd release cortical surface atlas have the same number of vertices (32,492 per hemisphere).

Best wishes,


Hi Logan,

Thank you very much for answering my questions.
I have checked the scripts you suggested, but I still have some questions on these scripts.

(1) (Line 63-68) seems need * files that are not provided by the downloaded data.

(2) Regarding rotational_transforms, can I use “rotational_transforms/week40_toFS_LR_rot.%hemi%.txt” for all ages (e.g., 28 weeks, 30 weeks, etc.)

(3) Actually, I found there are no Native folders in downloaded 3rd release data, so files in anat folder are all in the native space, right?

Best wishes,