PartitionDensity {MODA}R Documentation

Illustration of partition density

Description

Calculate the average density of all resulting modules from a partition. The density of each module is defined as the average adjacency of the module genes.

Usage

PartitionDensity(ADJ, PartitionSet)

Arguments

ADJ

gene similarity matrix

PartitionSet

vector indicates the partition label for genes

Value

partition density, defined as average density of all modules

Author(s)

Dong Li, dxl466@cs.bham.ac.uk

References

Langfelder, Peter, and Steve Horvath. "WGCNA: an R package for weighted correlation network analysis." BMC bioinformatics 9.1 (2008): 1.

Examples

data(synthetic)
ADJ1=abs(cor(datExpr1,use="p"))^10
dissADJ=1-ADJ1
hierADJ=hclust(as.dist(dissADJ), method="average" )
groups <- cutree(hierADJ, h = 0.8)
pDensity <- PartitionDensity(ADJ1,groups) 

[Package MODA version 1.14.0 Index]