3dmaskave error

Dear AFNI experts,

I ran 3dMVM for resting-state data and got some brain regions that survived the statistical threshold. I then ran 3dmaskave to extract z scores from each surviving region, but for some reason, almost all subjects’ z scores appear zero, although it seems there were no problems during extracting the data. I have attached the screenshot of the terminal and extracted values. I did exactly the same for another analysis which resulted in non-zero values. Could you please let me know what could be an issue here?


Screen Shot 2021-05-27 at 1.30.55 PM.png

Screen Shot 2021-05-27 at 1.31.28 PM.png


Could you please copy+paste your 3dmaskave command?


Hi pt,

I used the 3dmaskave script below. It did work for another result and only this particular dataset continuously generates zero values. Thank you!

subjects=“subj1 subj2 subj3 subj4”
for subject in $subjects ; do
echo $subject > ROIavgs.$subject.txt

for roi in 1; do

3dmaskave -quiet -mrange $roi $roi -mask Clust_mask_0001+tlrc /Volumes/$subject/Proc_results/r2z+tlrc \