modulePhenotypeCorrelations {ProCoNA} | R Documentation |
Computes the relation between the modules and the phenotypes.
modulePhenotypeCorrelations(pnet, phenotypes)
pnet |
The peptide net object |
phenotypes |
The matrix of traits |
returns a matrix of correlations between modules and phenotypes.
David L Gibbs
data(ProCoNA_Data) #net1 <- buildProconaNetwork("peptide network", peptideData, pow=13) n <- length(samples(net1)) phenotypes <- matrix(rnorm(10*n), nrow=60) m <- modulePhenotypeCorrelations(net1, phenotypes) # To plot the heatmap: # moduleCors <- correlationWithPhenotypesHeatMap(net1, phenotypes, modules = 1:5, # plot = NULL, title = "Module-trait relationships", textSize = 0.5)