They are -log10(pvalue)*sign(effect) as with all FS.External Email - Use Caution
Hi Douglas,
Thank you. From your explanation, the software's numbers from 0 to 1 aren't corrected p-values -- specifically, they aren't corrections in the well-accepted sense of Bonferroni corrections or other analagous multiple-comparisons corrections. They seem to be percentiles (what you refer to as ranks), where 1 corresponds to an extreme ranking in the basket of 10k, and 0 indicates the other extreme, per voxel/vertex.
Almost, it is more like this:
Hope I have that right. I'm also not sure what you meant about converting the noise into p-values. Below is my interpretation of what the pseudocode would be. Is it right? I suspect it's not quite ready yet for sharing, because the concept of a maximum needs to be inserted.
for each voxel:p0 = the p-value from a t-test or similar between the two groups, as they are
x0 = -log10(p0)for i from 1 to 10k:perform a random split between the two groups comprising the contrast analysisp = the p-value from a t-test or similar between the two groupsx[i] = -log10(p)r = percentile indicating where x0 falls within the distribution of x's 10k values
# N.B.: r represents the result for this voxel, from 0 to 1, to go in cache.th40.pos.sig.voxel.mgh
Thanks for any help. Also, how would the pseudocode differ for sig.cluster.mgh vs sig.voxel.mgh?
Thanks,
Mark
From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Douglas N. Greve <dgreve@mgh.harvard.edu>
Sent: Sunday, June 19, 2022 10:37 AM
To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] How is cache.th40.pos.sig.voxel.mgh computed, exactly?from mri_glmfit-sim --help
csdbase.sig.voxel.mgh - the sig volume corrected for multiple comparisons on a voxel-wise basis. The threshhold and sign are irrelevant. The value at each voxel is the corrected -log10(p-value) for that voxel.
It is computed from a simulation in which gaussian noise is smoothed, then converted to p-values (log10(p)), then the maximum log10(p) is found. This is repeated 10,000 times to give 10k maximums. A corrected p-value for each voxel is then computed based upon the rank of the raw pvalue in this list of 10k.
On 6/10/2022 4:14 PM, Mark Ebden wrote:
External Email - Use Caution
Hi,
I was wondering if anyone knows how the numbers in cache.th40.pos.sig.voxel.mgh are computed, or where I'd look to learn this. There is a one-liner in the documentation but I'd like the mathematical details of the correction etc. so I can determine what the final numbers (from 0 to 1) represent. I've noticed from browsing the plot in FreeView that significant areas have values close to 1, which is puzzling.
Thanks if you could point me in the right direction.
Kind regards,
Mark
Mar
This e-mail may contain confidential, personal and/or health information(information which may be subject to legal restrictions on use, retention and/or disclosure) for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
This e-mail may contain confidential, personal and/or health information(information which may be subject to legal restrictions on use, retention and/or disclosure) for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer