PartitionDensity {MODA} | R Documentation |
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.
PartitionDensity(ADJ, PartitionSet)
ADJ |
gene similarity matrix |
PartitionSet |
vector indicates the partition label for genes |
partition density, defined as average density of all modules
Dong Li, dxl466@cs.bham.ac.uk
Langfelder, Peter, and Steve Horvath. "WGCNA: an R package for weighted correlation network analysis." BMC bioinformatics 9.1 (2008): 1.
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)