plotCommunityDetection: Community detection plot

Description Usage Arguments Value Examples

Description

This function performs community detection on an undirected PANDA network. The function optionally returns the graph and community.

Usage

1
plotCommunityDetection(x, scaleEdge = 5, verbose = TRUE, ...)

Arguments

x

Toy PANDA output represented as a TF, Gene, and Score.

scaleEdge

Visualization parameter for the edges.

verbose

TRUE/FALSE - Report community structure.

...

Options for the plot function.

Value

Optionally return a list with the graph and community.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# start with some toy PANDA output
mat <- cbind(rep(1:5, each=10), rep(seq(11,20),5), sample(100, 50)/100)
x =plotCommunityDetection(mat)
str(x)

#example of very different edges
set.seed(1)
subst <- sample(50,10)
mat[subst, 3] <- subst
plotCommunityDetection(mat,scaleEdge=0.5)

QuackenbushLab/pandaR documentation built on May 8, 2019, 3:49 a.m.