modulePhenotypeCorrelations {ProCoNA} | R Documentation

## modulePhenotypeCorrelations

### Description

Computes the relation between the modules and the phenotypes.

### Usage

    modulePhenotypeCorrelations(pnet, phenotypes)

### 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

    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)

[Package ProCoNA version 1.18.0 Index]