MICA-MNI / BrainSpace

BrainSpace is an open-access toolbox that allows for the identification and analysis of gradients from neuroimaging and connectomics datasets | available in both Python and Matlab |
http://brainspace.readthedocs.io
BSD 3-Clause "New" or "Revised" License
180 stars 72 forks source link

Different dimensions of timeseries and atlas #81

Open StephDocTUM opened 1 year ago

StephDocTUM commented 1 year ago

Dear all,

I am using the fmriprep output which has the dimension of [325325, 238]. E.g. as in the example given using the atlas = datasets.fetch_atlas_surf_destrieux() only has 20484 regions. What do you suggest to fit the timeseries fmriprep output to an surface atlas?

Best,

PeerHerholz commented 1 year ago

Hi @StephDocTUM,

thank you very much for opening this issue.

I think there are several options you could try, including resampling the fmriprep output to the atlas of your choice or the other way around. The basic idea would be to use the fmriprep preproc.nii.gzfiles in combination with thedestrieux`atlas? Maybe the neuromaps package could be helpful to obtain the respective files (e.g. example here)?

HTH, cheers, Peer

P.S.: there's also neurostars for all questions related to neuroimaging, etc.. It's a great community providing a lot of support. Questions like yours are definitely more than welcome there!