I am calculating gene correlations for all patients gene expression data against clinical parameters. Then I want to derive p values by permutation. Is it OK to randomly permute the sample columns and then re calculate the correlation for every gene N times. Then ask how many times are correlations observed equal to or greater than a genes correlation by chance?
E.g. If my correlation is 0.3
Then the p value would be, n obs > 0.3/ total obs
So I have one distribution per gene?