Entering edit mode
8.2 years ago
carlos_marchi
▴
80
Hi Everyone!
I applied the pca in my dataset and return a matrix of maximum variance of the data. I'd like to convert this data result to a correlation matrix where each value of matrix is the p-value.
Is it possible to do it? Is there a paper or python package that shows how to do it?
Thank you very much.
The p-value of what? That the correlation (of what? A pairwise comparison of samples?) is different from zero? Why not just directly compute that rather than trying to convert PCA output into it?
My dataset has values about the differential gene expression. So, each column corresponds a specific gene and rows are the samples. I already applied pearson and spearman correlation, but I'd like to apply pca and get the correlation.
I'm not sure if I understand how you link 'pca' and 'correlation'...
I don't know if it is possible... Is there another algorithm to calculate correlation instead of spearman and pearson correlations where result in a correlation matrix?
Yes, there are other measures of correlation. However, why don't you state what you're actually trying to do (i.e., what type of data do you have and what type of question are you trying to answer with it?).
I'd like to generate a gene network correlation. I've already applied spearman and pearson correlation in the dataset, I may apply fisher correlation, however I didn't find any python implementation for it.
There's no "fisher correlation", that's just a transform on the pearson correlation (normally). You don't need a python implementation, it's a trivial function: