modulePhenotypeCorrelations: modulePhenotypeCorrelations

Description Usage Arguments Value Author(s) Examples

Description

Computes the relation between the modules and the phenotypes.

Usage

1

Arguments

pnet

The peptide net object

phenotypes

The matrix of traits

Value

returns a matrix of correlations between modules and phenotypes.

Author(s)

David L Gibbs

Examples

1
2
3
4
5
6
7
8
9
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)

Gibbsdavidl/ProCoNA documentation built on May 8, 2019, 7:51 p.m.