External Email - Use Caution
So which file do I put as an argument to --thfile? Or I just don't put the --thfile?
And about that tool to convert the table into a map. That's what appeared in that link you sent me.Do I run the second line to get the tool?
Thanks again,Laura Willers de Souza
Master Student in Biochemistry
Zimmer Lab - Federal University of Rio Grande do Sul
- Porto Alegre/RS - Brazil
De: Douglas N. Greve <dgreve@mgh.harvard.edu>
Enviado: terça-feira, 4 de janeiro de 2022 19:35
Para: Laura Willers de Souza <laura.w.desouza@hotmail.com>
Cc: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Assunto: Re: [Freesurfer] Doubts about analysis of hippocampal subfields and nuclei of the amygdalaoh, sorry, the --thfile should not be the table file. The sig.mgh has the same info as the table file, so you do not need to pass the table file.
On 1/4/2022 4:44 PM, Laura Willers de Souza wrote:
External Email - Use Caution
Sorry, let me explain better!
When mri_glmfit finishes it generates the sig.table.dat file which has the p values of the ROIs (first image below).Then, when mri_fdr finishes, that same sig.table.dat file no longer contains the p-values of the ROIs, but the FDR value (second image). In this way, the p-values of the ROIs are lost.
What I would like is to end mri_fdr with a file with the value of fdr + the original sig.table.dat file with the p values of the ROIs.Is there a way to do this?
On this link you sent there is the following:
Was it supposed to be like this?
Best,Laura Willers de Souza
Master Student in Biochemistry
Zimmer Lab - Federal University of Rio Grande do Sul
- Porto Alegre/RS - Brazil
De: Douglas N. Greve <dgreve@mgh.harvard.edu>
Enviado: terça-feira, 4 de janeiro de 2022 17:21
Para: Laura Willers de Souza <laura.w.desouza@hotmail.com>
Cc: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Assunto: Re: [Freesurfer] Doubts about analysis of hippocampal subfields and nuclei of the amygdala
On 1/4/2022 2:42 PM, Laura Willers de Souza wrote:
I don't understand what you mean. The value in the file is the threshold that you would use to divide your ROIs into significant vs nonsig groups in a way that meets the FDR criteria; in your case, it looks all but subiculum will pass. Or are you looking for an FDR-corrected p-value for each ROI?External Email - Use Caution
The command worked fine! But, in the end, the file that contains the thresholds for each of the ROI (first image below) ends up being replaced by the FDR value (second image below), which is not very good, because this information ends up getting lost.
That definitely will not work.Is there any way to save the FDR value in another file and not in the same one where the p-values of the ROI are?
And is it possible to visualize the ROIs with the significance scale in freeview?I tried to overlay the sig.mgh file over the inflated surface and also the mri_fdr output.mgh file, but it didn't work.
You have to convert the table into a map. You can get a tool to do this from here MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://gate.nmr.mgh.harvard.edu/safelinks/greve/table2mapWhat should I do to make this work?
username 'guest'
password 'collab'
I'm not totally sure it will work as a stand-alone. You might have to download the development version of FS to get it. Specify the subfields segmenation as the --seg option.
Thank you so much again,Laura Willers de Souza
Master Student in Biochemistry
Zimmer Lab - Federal University of Rio Grande do Sul
- Porto Alegre/RS - Brazil
De: Douglas N. Greve <dgreve@mgh.harvard.edu>
Enviado: terça-feira, 4 de janeiro de 2022 15:21
Para: Laura Willers de Souza <laura.w.desouza@hotmail.com>
Cc: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Assunto: Re: [Freesurfer] Doubts about analysis of hippocampal subfields and nuclei of the amygdalathat looks right; I don't think you need a 2nd --thfile (but does not hurt it).
On 1/3/2022 3:27 PM, Laura Willers de Souza wrote:
External Email - Use Caution
Dear Douglas,
Once again, thanks so much for the reply!
About the mask, I just don't put anything or put "nomask"?With your suggestions, the command looks like this:
mri_fdr --fdr .05 --pos --thfile $SUBJECTS_DIR/hipposubfields.lh.T1.v21.CU_CI.glmdir/sig.table.dat --i $SUBJECTS_DIR/hipposubfields.lh.T1.v21.CU_CI.glmdir/group.diff.CU_CI/sig.mgh nomask hipposubfields.lh.T1.v21.CU_CI.mgh--thfile $SUBJECTS_DIR/hipposubfields.rh.T1.v21.CU_CI.glmdir/sig.table.dat --i $SUBJECTS_DIR/hipposubfields.rh.T1.v21.CU_CI.glmdir/group.diff.CU_CI/sig.mgh nomask hipposubfields.rh.T1.v21.CU_CI.mgh
Do you think this is correct?
As it was before (without the input to --thfile) it was giving the following error:
I believe that with these fixes it should work fine, right?Thank you so much again!
Best,Laura Willers de Souza
Master Student in Biochemistry
Zimmer Lab - Federal University of Rio Grande do Sul
- Porto Alegre/RS - Brazil
---------------------------------------------------------------------------------------------------
De: Douglas N. Greve <dgreve@mgh.harvard.edu>
Enviado: domingo, 02 de dezembro de 2022
Para: Laura Willers de Souza <laura.w.desouza@hotmail.com>
Cc: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Assunto: Re: [Freesurfer] Doubts about analysis of hippocampal subfields and nuclei of the amygdala
For this one, you don't need a mask. Also, don't use --no-log10p (the output of mri_glmfit is in log10p). --thfile needs an argument (eg, threshold.dat)Dear Douglas, Thanks so much for your answer.Could you check if the following commands to perform ROI analysis with GLM are correct?*1.* Create the table with the volumes of the hippocampal segmentation (1 command for each hemisphere - only replace lh with rh):asegstats2table --statsfile hipposubfields.lh.T1.v21.stats --fsgd CU_CI.fsgd\ --meas volume \ --all-segs \ --tablefile hipposubfields.lh.T1.v21.CU_CI.dat*2.* GLM Analysis – DODS (1 command for each hemisphere - only replace lh with rh):mri_glmfit \ --table hipposubfields.lh.T1.v21.CU_CI.dat \ --fsgd CU_CI.fsgddods \ --C group.diff.CU_CI.mtx \ --glmdir hipposubfields.lh.T1.v21.CU_CI.glmdir *3.* Correction for multiple comparisons – FDR:mri_fdr --fdr .05 --pos --thfile --i contrast/lh.sig.mgh lh.mask.mghhipposubfields.lh.T1.v21.CU_CI.mgh --no-log10p --i contrast/rh.sig.mgh rh.mask.mghhipposubfields.rh.T1.v21.CU_CI.mgh --no-log10p
Are these commands correct?Another question, in this type of analysis is image smoothing common? Like was done here MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg52203.html <https://secure-web.cisco.com/1we0tWxEcmAWpL06CsQ9vqTCkjuPHErSGyrotLh2MGxv3lQ9oLaGS5mPuSAbSeU01BLaT_kHew9Lf3DdE0p8vh0IaIEDCGwKQF1Ulcz8LxixmB8KkLj-1Vi6H7ciW9Rl7qpnwB3OaaAKyp1s2kuKMToWAMnsnCFVDfVBIu4wUzjLINbCXQaahGk7iCPSUCIKvCK-BA8dJGmeP8tow2PcpEF-f9eZm8laYLJJ7x8fL9lIqe_bHBt2kwhAII8fd2wBoAtwHL0Jx0YNP2NdY7WNZFwGGKG7LnbRBFoqHmeVCKsZZ1_M2y-58G2Xw3B7YsD0l/https%3A%2F%2Fwww.mail-archive.com%2Ffreesurfer%40nmr.mgh.harvard.edu%2Fmsg52203.html>No, it would make no sense here because this is an ROI analysisThank you so much again! Best regards, *Laura Willers de Souza *
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.