ThomasYeoLab / CBIG

MIT License
570 stars 380 forks source link

HCP fs_lr32k 1000 parcel atlas cannot be loaded #40

Closed avaruuser closed 1 year ago

avaruuser commented 1 year ago

Hi all,

I wanted to map the Schaefer 1000 parcellation to the vertices of the fs_lr32k surface, however, if I try loading the .dlabel.nii file using nibabel's nibabel.load() it returns an error saying Cannot work out file type of "/Schaefer2018_1000Parcels_17Networks_order.dlabel.nii". I tested loading the same data using cifti-MATLAB using ft_read_cifti('Schaefer2018_1000Parcels_7Networks_order.dlabel.nii', 'mapname', 'array');, however, I end up getting this error

Warning: could not determine filetype of
Schaefer2018_1000Parcels_7Networks_order.dlabel.nii 
Error using read_nifti2_hdr (line 56)
cannot open
Schaefer2018_1000Parcels_7Networks_order.dlabel.nii
as nifti file, hdr size = 168430090, should be 348 or 540

Error in ft_read_cifti (line 79)
hdr = read_nifti2_hdr(filename);

If I use the same loading functions with the 400 parcel atlas it works. Could it be that the 1000 parcel atlas file is corrupted?

avaruuser commented 1 year ago

Sorry, that seemed to be an issue with the download. The system recognized the file as a cifti but apparently it got corrupted every time I downloaded it.