meancorr function

Compute mean column-wise correlation and determine its significance via Monte Carlo randomizations