ThomasYeoLab / CBIG

MIT License
570 stars 380 forks source link

fsaverage to MNI projection #8

Closed MRC-CBSU closed 1 year ago

MRC-CBSU commented 4 years ago

I've downloaded the standalone scripts for MNI to fsaverage projection. Can these be used to do the reverse, i.e., project data from fsaverage to MNI space?

Thanks, Marta

jadecci commented 4 years ago

Hi! Right now there isn't a standalone script for fsaverage to MNI projection.

To project data from fsaverage to MNI space, you would need to download the CBIG repository. Then use the script CBIG_RF_projectfsaverage2Vol_single.m or CBIG_RF_projectfsaverage2Vol_batch.sh in the stable_projects/registration/Wu2017_RegistrationFusion/bin/scripts_final_proj directory.

mitchellxh commented 4 years ago

Just to clarify, after completing my recon-all of a subject what are my lh and rh inputs to the .sh script? I see the following:

-l <input_list>  absolute path to file containing input data file names. Each line in the file should contain full path to one file. Note that the inputs should be in .mat format, containing two variables 'lh_label' and 'rh_label', corresponding to the input data in left and right hemispheres respectively.

I'm not entirely sure what .mat files I should be directing to in my input list. I think I'm missing a step between recon-all and running this script creating the .mat files.

jadecci commented 4 years ago

You can create the .mat file by putting your data in left and right hemisphere in the variables 'lh_label' and 'rh_label' respectively. Each of the variables should be a vector of length 163842, for example, for data on the fsaverage surface.

May I know which data from recon-all do you want to project to MNI space?

Reine0017 commented 3 years ago

Hi! Right now there isn't a standalone script for fsaverage to MNI projection.

To project data from fsaverage to MNI space, you would need to download the CBIG repository. Then use the script CBIG_RF_projectfsaverage2Vol_single.m or CBIG_RF_projectfsaverage2Vol_batch.sh in the stable_projects/registration/Wu2017_RegistrationFusion/bin/scripts_final_proj directory.

Really sorry to trouble you but may I ask for my detailed instructions on how to do this? Or some documentation you'd be able to refer me to?

jadecci commented 3 years ago

All the relevant commands that you can use should be on this page.

Is there a specific function/script that you need help with?

Reine0017 commented 3 years ago

Hey @jadecci! Thanks so much for replying me and sending that link! I'll look into it :)