Many thanks for the link. I read thorough the explanation . I'd like to ask for clarifications on how to interpret the computation of correlation matrix
The following is the sample data that is considered
df
adrenal gland appendix bone marrow breast bronchus
ENSG00000000003 1 2.0 1 2.000000 4
ENSG00000000419 4 3.5 3 3.000000 3
ENSG00000000457 1 1.5 2 2.666667 1
ENSG00000000460 3 1.5 2 3.000000 3
Using corr <- cor(df,method = "spearman")
the following output is obtained
adrenal gland appendix bone marrow breast bronchus
adrenal gland 1.0000000 0.50000000 0.8333333 0.88888889 0.0000000
appendix 0.5000000 1.00000000 0.3333333 0.05555556 0.5000000
bone marrow 0.8333333 0.33333333 1.0000000 0.83333333 -0.5000000
breast 0.8888889 0.05555556 0.8333333 1.00000000 -0.3333333
bronchus 0.0000000 0.50000000 -0.5000000 -0.33333333 1.0000000
From what I understand the above matrix is constructed using df^T(transpose)*df which gives a tissue x tissue correlation matrix with variances on the diagonals and covariance on the non-diagonal entries. Could you please explain how this matrix can be interpreted?