3dANOVA3: fatal error of Max clevels

Hello. I received a fatal error in running 3dANOVA3: ** FATAL ERROR: Program 3dANOVA3: -clevels param must be in {1…MAX}, when using the following command:
3dANOVA3 -type 4
-alevels 2 -blevels 4 -clevels 900
-mask. brainMask.nii.gz
-fab interaction
-fa group
-fb time
-bucket anova3_test \


The command works fine if reducinng -clevels to 200 or less ( but not sure where is the threshold for it to work). So what is the MAX for -clevels as mentioned in the error message? Is it fixed or modifiable? is it due to a limit of memory usage? The brain image size here is 182x218x182.

Any suggestions will be greatly appreciated.

Hello,

Yes, the limit (which ought to be printed) is 300. It is a compile time limit, due to fixed-sized arrays in this case.

To be sure, you have 7200 dataset volumes that you want to run this command on?

  • rick

Thanks a lot, Rick! Yes, it is a big dataset. It would be very helpful to have the Max number print out.

Zhuang

I did put in an update to output that maximum, though we did not run a build last night.

If really important, I could build a distinct 3dANOVA3 program with a sufficient limit for you. Just let me know.

  • rick

Thanks, Rick! It would be very helpful. What would be the highest and does it depend on system configuration?

The system I am working on is “CentOS Linux release 7.7.1908”. Please let me know if you need more information.

Thanks again,
Zhuang

Hi Zhuang,

Sorry for being so slow, I was finally able to connect.

Try this 3dANOVA3.centos7.1000 version.
The -help output should show MAX_LEVELS == 1000.

Please let me know how it goes.

  • rick

Hi Rick,

I am terribly sorry for this slow response. I was having a problem to log in this forum for quite a while. Unfortunately the 3dANOVA3.centos7.1000 version cannot be executed in the centos server that I am working on. The error message is:
“./3dANOVA3.centos7.1000: error while loading shared libraries: libmri.so: cannot open shared object file: No such file or directory”

I guess the problem is to tell this program the path of libmri.so in our server, where I don’t have permission to edit. Is it possible to compile another version to MAC OS (Darwin Kernel Version 17.7.0) so that i can test on my personal computer? The path of afni libraries including libmri.so is /Users/songz7/tools/afni/abin.

Please let me know if you have any other suggestions.

Many thanks!
Zhuang