Closed amnsbr closed 4 years ago
I figured it out. The problem was that I've been using an incorrect mask. The mask I used was the FSL's MNI152_T1_1mm_brain_mask.nii which was aligned with the beta images that were in the MNI space, but they didn't have the same dimensions.
Great!
On Aug 14, 2020, at 2:23 PM, Amin Saberi notifications@github.com wrote:
I figured it out. The problem was that I've been using an incorrect mask. The mask I used was the FSL's MNI152_T1_1mm_brain_mask.nii which was aligned with the beta images that were in the MNI space, but they didn't have the same dimensions.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/canlab/MediationToolbox/issues/12#issuecomment-674204213, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPY7LDBTAKRR52GLGIE6E3SAV6L7ANCNFSM4PTJPKDA.
Hi,
I am doing a multilevel mediation analysis on N = 21 subjects with the following variables:
I ran mediation_brain_multilevel with and without bootstrapping using the following codes:
mediation_brain_multilevel(X, Y, M, struct('names', names, 'mask', '../MNI152_T1_1mm_brain_mask.nii'), 'nopreproc');
mediation_brain_multilevel(X, Y, M, struct('mask', '../MNI152_T1_1mm_brain_mask.nii', 'pvals', 5, 'bootsamples', 10000), 'boot', 'nopreproc')
Which runs without any errors and generates pval images for different pathways (X -> M, M -> Y, X -> M -> Y) that I can easily view in fsleyes.
Now the problem is at the last stage, where I call mediation_brain_results_all_script or publish_mediation_report to get the final results. When I call mediation_brain_results_all_script I get this output:
And when I call publish_mediation_report I get an incomplete html report, with this output in Matlab:
By looking at pval images, it looks like there are no significant clusters in any of the pathways (although there are some significant voxels), maybe that's why I'm getting this error?
Of note, all the subjects had 48 trials except for subject 1 for which the data of 48th trial is missing. I also tried removing the first subject, but still got the same error.
My Matlab version is R2018b, and I have tested it with both spm8 and spm5 and none of them have worked. Can you please help me in identifying the source of the problem? Thank you very much.