Thank you Jean-Karim, I do this :
#cor is symmetric, so we can keep only the half of the pairs of indices
idx<-which( (abs(cor) > 0.8) & (upper.tri(cor)), arr.ind=TRUE)
correlated.genes <- matrix[idx, ]
Then I have to remove the duplicated genes from 'correlated.genes' ?
• 0 views
•
link