Yes, going thru the MNI volume will mess everything up with regard to the surface. Also, you should consider turning off any volume smoothing in feat and do surface smoothing once you have it on the surface.
On 5/3/2021 5:27 AM, Mason Wells wrote:
External Email - Use Caution
Hi Doug,
Sorry to email again RE this, but please could I get your advice on my pipeline below. The surface resampling of the filtered_func from native volume to fs_average looks very different to the output from moving from native volume > MNI volume > fs_average. I expected some differences as going via MNI volume will result in some signal loss, but I want to confirm I understood your advice properly. For example, is register.dat an appropriate matrix for moving directly from native volume to fs_average surface?
For reference, this is my interpretation of your earlier suggestion:
I register the filtered_func to the T1 using bbregister with this command:
- bbregister--s sub-0006 --feat /media/HDD/ICA_SSD_files/GroupICA/PPT6_PreProc.feat/ --init-coreg
I then run the following command to sample the filtered_func to fsaverage surface:
- mri_vol2surf --mov filtered_func_data.nii.gz --hemi lh --reg reg/freesurfer/register.dat --trgsubject fsaverage --projfrac 0.5 --o lh_func_fsa.mgz
Any advice would be much appreciated.
Best wishes, Mason
*Mason T Wells, MSc*
*PhD student*
School of Optometry and Vision Sciences
& Cardiff University Brain Research
Imaging Centre (CUBRIC), School of Psychology
Cardiff University
Cardiff
CF24 4HQ
UK
*/Email/*: WellsMT1@cardiff.ac.uk mailto:WellsMT1@cardiff.ac.uk
*/Tel/*: 02920 879628
*Mason T Wells, MSc*
*Myfyriwr PhD*
Yr Ysgol Optometreg a Gwyddorau’r Golwg
& Canolfan Ymchwil Delweddu’r Ymennydd Prifysgol Caerdydd (CUBRIC), Yr Ysgol Seicoleg
Prifysgol Caerdydd
Heol Maindy
Caerdydd
CF24 4HQ
DU
*/E-bost/*: WellsMT1@caerdydd.ac.uk mailto:WellsMT1@caerdydd.ac.uk
*/Ffôn/*: 02920 879628
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Mason Wells WellsMT1@cardiff.ac.uk *Sent:* Monday, April 26, 2021 4:32 PM *To:* freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu *Cc:* Douglas N. Greve dgreve@MGH.HARVARD.EDU *Subject:* Re: [Freesurfer] Native volume to fs_average surface
External Email - Use Caution
Hi Doug,
If I understand you correctly. I register the filtered_func to the T1 using bbregister with this command:
- bbregister--s sub-0006 --feat /media/HDD/ICA_SSD_files/GroupICA/PPT6_PreProc.feat/ --init-coreg
I then run the following command to sample the filtered_func to fsaverage surface:
- mri_vol2surf --mov filtered_func_data.nii.gz --hemi lh --reg reg/freesurfer/register.dat --trgsubject fsaverage --projfrac 0.5 --o lh_func_fsa.mgz
Please could you let me know if you think this is correct?
Best wishes, Mason
*Mason T Wells, MSc*
*PhD student*
School of Optometry and Vision Sciences
& Cardiff University Brain Research
Imaging Centre (CUBRIC), School of Psychology
Cardiff University
Cardiff
CF24 4HQ
UK
*/Email/*: WellsMT1@cardiff.ac.uk mailto:WellsMT1@cardiff.ac.uk
*/Tel/*: 02920 879628
*Mason T Wells, MSc*
*Myfyriwr PhD*
Yr Ysgol Optometreg a Gwyddorau’r Golwg
& Canolfan Ymchwil Delweddu’r Ymennydd Prifysgol Caerdydd (CUBRIC), Yr Ysgol Seicoleg
Prifysgol Caerdydd
Heol Maindy
Caerdydd
CF24 4HQ
DU
*/E-bost/*: WellsMT1@caerdydd.ac.uk mailto:WellsMT1@caerdydd.ac.uk
*/Ffôn/*: 02920 879628
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Mason Wells WellsMT1@cardiff.ac.uk *Sent:* Monday, April 26, 2021 4:20 PM *To:* freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] Native volume to fs_average surface
External Email - Use Caution
Hi Doug,
Sorry for the slow reply to this. I am not sure I follow your suggestion. Are you suggesting I register the filtered_func to the T1 with bbregister which results in a reg.lta/dat file? How does one then use this transformation matrix to move from native space to fs_average space?
Thanks in advance, Mason
*Mason T Wells, MSc*
*PhD student*
School of Optometry and Vision Sciences
& Cardiff University Brain Research
Imaging Centre (CUBRIC), School of Psychology
Cardiff University
Cardiff
CF24 4HQ
UK
*/Email/*: WellsMT1@cardiff.ac.uk mailto:WellsMT1@cardiff.ac.uk
*/Tel/*: 02920 879628
*Mason T Wells, MSc*
*Myfyriwr PhD*
Yr Ysgol Optometreg a Gwyddorau’r Golwg
& Canolfan Ymchwil Delweddu’r Ymennydd Prifysgol Caerdydd (CUBRIC), Yr Ysgol Seicoleg
Prifysgol Caerdydd
Heol Maindy
Caerdydd
CF24 4HQ
DU
*/E-bost/*: WellsMT1@caerdydd.ac.uk mailto:WellsMT1@caerdydd.ac.uk
*/Ffôn/*: 02920 879628
*From:* freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU *Sent:* Tuesday, April 20, 2021 3:06 PM *To:* freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] Native volume to fs_average surface use the filtered func data. reg.lta the output of bbregister (might also be a .dat file). If the output is on fsaverage, then you can use nifit as output. FV will read mgh, mgz, nii, nii.gz, as well as dicom
On 4/19/2021 10:26 AM, Mason Wells wrote:
External Email - Use Caution
External Email - Use Caution
Hi Doug,
I have the data both in its native functional space (e.g. filtered_func_data). I also run bbregister so have the transformation matrix to register it to the T1 (e.g. anat2exf.register.dat). Do you suggest running vol2surf on the filtered_func_data file? Also is reg.lta generated by FreeSurfer during recon-all or do I need to generate this file? I would like to end up with the filtered_func_data file on the fs_average surrface, which would require the file format to be .mgh to load this an overlay on Freeview, right?
*Mason T Wells, MSc*
*PhD student*
School of Optometry and Vision Sciences
& Cardiff University Brain Research
Imaging Centre (CUBRIC), School of Psychology
Cardiff University
Cardiff
CF24 4HQ
UK
*/Email/*: WellsMT1@cardiff.ac.uk mailto:WellsMT1@cardiff.ac.uk
*/Tel/*: 02920 879628
*Mason T Wells, MSc*
*Myfyriwr PhD*
Yr Ysgol Optometreg a Gwyddorau’r Golwg
& Canolfan Ymchwil Delweddu’r Ymennydd Prifysgol Caerdydd (CUBRIC), Yr Ysgol Seicoleg
Prifysgol Caerdydd
Heol Maindy
Caerdydd
CF24 4HQ
DU
*/E-bost/*: WellsMT1@caerdydd.ac.uk mailto:WellsMT1@caerdydd.ac.uk
*/Ffôn/*: 02920 879628
*From:* freesurfer-bounces@nmr.mgh.harvard.edu mailto:freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu mailto:freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Douglas N. Greve dgreve@MGH.HARVARD.EDU mailto:dgreve@MGH.HARVARD.EDU *Sent:* Monday, April 19, 2021 2:57 PM *To:* freesurfer@nmr.mgh.harvard.edu mailto:freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu mailto:freesurfer@nmr.mgh.harvard.edu *Subject:* Re: [Freesurfer] Native volume to fs_average surface *External email to Cardiff University - *Take care when replying/opening attachments or links. *Nid ebost mewnol o Brifysgol Caerdydd yw hwn - * Cymerwch ofal wrth ateb/agor atodiadau neu ddolenni.
If you have the data in the native functional space, then just mri_vol2surf --mov func.nii --hemi rh --reg reg.lta --trgsubject fsaverage --projfrac 0.5 --o rh.func.fsa.mgz
On 4/19/2021 5:23 AM, Mason Wells wrote:
External Email - Use Caution
External Email - Use Caution
Hi experts,
I have some fMRI data that I have pre-processed in Feat. I want to resample a single subject's data to the fs_average surface but unsure of the most optimal way of doing this. At present I am warping the functional data to the MNI brain in the volume (using FSL's applywarp) and then resampling to fs_average using the following command.
- mri_vol2surf --src filtered_func_MNI.nii --out filtered_func_surf.mgh --hemi rh --mni152reg
My question is whether you think this is the most appropriate approach, and/or if there is way to move directly from native volume to fs_average surface without needing to go via MNI volume?
Best wishes, Mason
*Mason T Wells, MSc*
*PhD student*
School of Optometry and Vision Sciences
& Cardiff University Brain Research
Imaging Centre (CUBRIC), School of Psychology
Cardiff University
Cardiff
CF24 4HQ
UK
*/Email/*: WellsMT1@cardiff.ac.uk mailto:WellsMT1@cardiff.ac.uk
*/Tel/*: 02920 879628
*Mason T Wells, MSc*
*Myfyriwr PhD*
Yr Ysgol Optometreg a Gwyddorau’r Golwg
& Canolfan Ymchwil Delweddu’r Ymennydd Prifysgol Caerdydd (CUBRIC), Yr Ysgol Seicoleg
Prifysgol Caerdydd
Heol Maindy
Caerdydd
CF24 4HQ
DU
*/E-bost/*: WellsMT1@caerdydd.ac.uk mailto:WellsMT1@caerdydd.ac.uk
*/Ffôn/*: 02920 879628
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu mailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1inKs6mkATk9l4A-1W4d1Qq75G9FVsDrr19kxb1PUwo3SJI... https://secure-web.cisco.com/1G4z90MLfPdABUB1f4noFlPZFtxP1ACPXJf488giTLLOtVZjuc1m95-QnXLnxOXVA7BGiFczkRhZsWxM3Gtzk-hR0tv14WB2NmvX-vo4-1zrJGpLQEiESg6HVM-sshhpYtZ67sZ9QtAbnEkQsz7W9ZbAMHS4XOr6_iGgt7exeJMO4WTF6DLVZQ9hzJ2m_l69NbLHPks0S6bUZDSKmmbzJJA/https%3A%2F%2Feur03.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F1v7-fjKkuZVf434NaA-IgExVcOT5D39azV7mUiWkUrGKtqoxBZ3bzY3Y-FQNU5LVAJyd7cVYq0Mv22uujG5mYbTMTI3lPHe8QyjQa_7bf9NXVGyGUR9sxfhLVcvMxQIffPzYEzmpOahgX3gylWPwYDF9elHsH8eq-b1UWO54MGQkv-mJw0sEe11TYD3dFNX0kY0HLdFjVycew27PdXW7II9YLQhztUgsDQIbl3Gm-oJ4%252Fhttps%25253A%25252F%25252Feur03.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsecure-web.cisco.com%2525252F1tI_pcXLAsmfVx-pN_4MZ8Znbt8iy2i1sWaGydw5cEwIymlWYDsU3ILGrjXXhUSwaOAQvWsggK_3mBJXnZJXxEemlsJVmbHc5VjlhCsLGFFHomANMdiU9TKf6slRItYC_t85ICzoN4ctIu9_TI7UsocZ8_caRpTuGuwkkRwCtmd6Scja5MGgmE-TKhOin7ZApKPQBlQwIzV1CR6CRLZ1f1PVqA1L-VhVanVMsATvhBPk%2525252Fhttps%252525253A%252525252F%252525252Feur03.safelinks.protection.outlook.com%252525252F%252525253Furl%252525253Dhttps%25252525253A%25252525252F%25252525252Fsecure-web.cisco.com%25252525252F1wnuFqExz9oizFYNN4VUj5zSJLDdFGvq87TlIHW-O3mOxhKLDjX87tReMlXtt06gH7Yxdv6ctVEgF1yDC9G5C2URvrn7pQooiPAd8slazhi4qgVWOjLrTvjACn6r9SlpSmc9PQvIXMwZwFBezzdvbdBVdewIMV2XWXXbOeszS2ZPwdFlSb15ilHsGqff4fMZW14kB7MfSKeFdJJ_XtPBcCS0-Uv-gk5CC4ZXwjLcKpsLKZ4Er1zwbl9eV9c_30Z1rLi23_1ibx2F564tlgnu9Dw%25252525252Fhttps%2525252525253A%2525252525252F%2525252525252Feur03.safelinks.protection.outlook.com%2525252525252F%2525252525253Furl%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fsecure-web.cisco.com%252525252525252F1inKs6mkATk9l4A-1W4d1Qq75G9FVsDrr19kxb1PUwo3SJIzasjo5UqdO_zNla1MmfqmTW_UjyxKjaOzcgZ-34cmvBcj-twVDSjDeUdBMnfIQA6czUZ5Vr_q9mGbNXn_7mToecEWmYfGSE0PVRFfLnVUVqGvRB7EW657aXy9TDyUJo9XvcUdcs7MblDtwa3r9WFUz603xcRDAppL0KZfMto5GjYgrHa9MOoSsZp1ifyQghWl8Qe_fVmhvGeTsI71kHS0jbxKE43ugLOnZAXm14Q%252525252525252Fhttps%25252525252525253A%25252525252525252F%25252525252525252Fmail.nmr.mgh.harvard.edu%25252525252525252Fmailman%25252525252525252Flistinfo%25252525252525252Ffreesurfer%25252525252526data%2525252525253D04%252525252525257C01%252525252525257CWellsMT1%2525252525252540cardiff.ac.uk%252525252525257C3e5eb8ed6cfe42c21b7508d9033b59be%252525252525257Cbdb74b3095684856bdbf06759778fcbc%252525252525257C1%252525252525257C0%252525252525257C637544375715986305%252525252525257CUnknown%252525252525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%252525252525253D%252525252525257C1000%25252525252526sdata%2525252525253Dv6obWxRfZ55cJVTpyt8DfEsAbQRF89D7BLF0H7diuuk%252525252525253D%25252525252526reserved%2525252525253D0%2525252526data%252525253D04%25252525257C01%25252525257CWellsMT1%252525252540cardiff.ac.uk%25252525257C216ff6189ef043f3d90b08d9040598c4%25252525257Cbdb74b3095684856bdbf06759778fcbc%25252525257C1%25252525257C0%25252525257C637545244385214873%25252525257CUnknown%25252525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%25252525253D%25252525257C1000%2525252526sdata%252525253D2GaYJcvWQOS47quFfxqgQJXVaWIOGGb6bm6kK898vGE%25252525253D%2525252526reserved%252525253D0%252526data%25253D04%2525257C01%2525257CWellsMT1%25252540cardiff.ac.uk%2525257C0e0be6943ccf4b86997508d908c728b5%2525257Cbdb74b3095684856bdbf06759778fcbc%2525257C1%2525257C0%2525257C637550473758111133%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C2000%252526sdata%25253D%2525252F1NdVpXn1LfLQg7pSzYtjJQ0aDYgVKYrAvKYWZYYSIQ%2525253D%252526reserved%25253D0%26data%3D04%257C01%257CWellsMT1%2540cardiff.ac.uk%257C1e45c9237aba4d83601008d908c8dbef%257Cbdb74b3095684856bdbf06759778fcbc%257C1%257C0%257C637550481099988204%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C2000%26sdata%3DIizeizWllw8WCelhe6gCyECDhT0q6m3K4CkJgrKW8Po%253D%26reserved%3D0
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu mailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1PZ9GjOfRlHahpgoNhH0TgDniLp4hDYbj_VqKGl-BXTeP98... https://secure-web.cisco.com/1vqJE6ggoGK3YZHL-YGUk6If0yz4qd2Atq0zzG6XbDDUwLWuSA2fETcBSz5gXv7hgbVGOhLm-u_QQ0QXK10Ak8cUa-ReMg8s2xWqpcHq6tL-tpFLgk7DZAuYfCdkeP6KQzqVUgytUqIzoREPntoqheYTDiUZVh6Z-Pvs6F67BXiPfGMqbbi2dtOhM2HrhAZkphxySLpGN8H98V6vJ17G4vg/https%3A%2F%2Feur03.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F1ZxcwXwLjaduMji8FjQ6bsp3vqvrsriwtapEb-yOcDDwzIXkhC70hvyX3TTb2JpJqgY23ce1D4lKmc9HRiaAwHg07LN7D4ACpTxiU9Tjz0ZVYTb5IyBczNwuX-AYLqhfGvZ39r_MWKTKIOSZqYqDd_Xyf8ZiiUksiScPcWlyH5AY3FPlWQB4k3h9OLXCI6j4xxclS45c9w-7_BpD3LAVBOwPGxEBAJshlosOn8H0z7xE%252Fhttps%25253A%25252F%25252Feur03.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsecure-web.cisco.com%2525252F1z8taKw8rCN8Bks2eymAx-QMmFH8IsYlpu2616lr0Ht4Hk6T-FJlhbx0mbWH5toMSYQX0rMckOh36jLHNfHQ14CTx6YXuCoxEdcTfIApQ5p2DE-KGTZLhRqIULkuT0REg2-LGcvr6A14h5saxgzCOTiHrhxHftU7aZsDvpCvTTOms-Rgaj9oCwbxIrdYP7R6NKTrt9qCwo_rm9W5L3znYt-UPQpklA9G9VvXtKxPTMt0ZN7po6uEGF_1gnH_ewB6YldIRuK4Nn8YFyydj8HBu0Q%2525252Fhttps%252525253A%252525252F%252525252Feur03.safelinks.protection.outlook.com%252525252F%252525253Furl%252525253Dhttps%25252525253A%25252525252F%25252525252Fsecure-web.cisco.com%25252525252F1PZ9GjOfRlHahpgoNhH0TgDniLp4hDYbj_VqKGl-BXTeP98pd_e7svh5mEo14NVz1ZoQxjRImxAES_NjVBMw655QgYupMK4e1UbsnDD6NdvmWhPpWV1njYVjogVykTHs8P0GftNAFDdq8gzJSXcAVSlDTDItH7wakzPqz-sP8jROHueobmDGluZbXRWwEQIsje_jTE0xTahrAsMg3HkdM-h7JjHPKMpOSHNOYygX8NCegyPEOkbFoX-KTvRp5eUi3WAl3mMQT3Zk1ePOjpGsUzA%25252525252Fhttps%2525252525253A%2525252525252F%2525252525252Fmail.nmr.mgh.harvard.edu%2525252525252Fmailman%2525252525252Flistinfo%2525252525252Ffreesurfer%2525252526data%252525253D04%25252525257C01%25252525257CWellsMT1%252525252540cardiff.ac.uk%25252525257C216ff6189ef043f3d90b08d9040598c4%25252525257Cbdb74b3095684856bdbf06759778fcbc%25252525257C1%25252525257C0%25252525257C637545244385224867%25252525257CUnknown%25252525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%25252525253D%25252525257C1000%2525252526sdata%252525253DRh7hHePpMuXSm%25252525252B6WIfjVqT6ggxZwEoA1yjz%25252525252Foyo7htE%25252525253D%2525252526reserved%252525253D0%252526data%25253D04%2525257C01%2525257CWellsMT1%25252540cardiff.ac.uk%2525257C0e0be6943ccf4b86997508d908c728b5%2525257Cbdb74b3095684856bdbf06759778fcbc%2525257C1%2525257C0%2525257C637550473758121126%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C2000%252526sdata%25253DZY96cjFJ98YEFTHyXlvX5y8et9Rwj3t181KJwQRA7pQ%2525253D%252526reserved%25253D0%26data%3D04%257C01%257CWellsMT1%2540cardiff.ac.uk%257C1e45c9237aba4d83601008d908c8dbef%257Cbdb74b3095684856bdbf06759778fcbc%257C1%257C0%257C637550481100008190%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C2000%26sdata%3DFz04LfwikMETRluXWJ4xW7boBNha3UYEvu%252BmzVIAP9Q%253D%26reserved%3D0