DGOnetplot: Draw a gene association network of DO and GO enrichment...

Description Usage Arguments Value Examples

View source: R/DGOassociationNetwork.R

Description

A function that draws a gene association network with DO and GO terms from enrichment analyses.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
DGOnetplot(
  DGOResult,
  showCategory = 6,
  pAdjustCutoff = 0.05,
  cluster.strength = 10,
  GOcol = c("blue", "lightblue"),
  DOcol = c("red", "mistyrose"),
  termCol = "PuOr",
  geneCol = "honeydew3"
)

Arguments

DGOResult

DO and GO enrichment analysis result returned from enrichDGO().

showCategory

number of ontology groups to show from DO and GO each.

pAdjustCutoff

p-value cutoff.

cluster.strength

clustering strength of each ontology group on the network graph

GOcol

vector of colors for gradient GO edges

DOcol

vector of colors for gradient DO edges

termCol

name of ColorBrewer color palettes for ontology term nodes

geneCol

color of gene nodes

Value

Returns a gene association network of DO and GO analyses.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# load data from DOSE
library(DOSE)
data(geneList)
gene <- names(geneList)[abs(geneList) > 2]
result <- enrichDGO(gene, universe=names(geneList))

# tamper the data little bit to see 
# the full functionalities of DGOplot
result$DO@result$p.adjust <-  result$DO@result$p.adjust / 10

DGOnetplot(result)
DGOnetplot(result,
           showCategory = 4,
           cluster.strength = 5)

## End(Not run)

JoelleJee/DGOplot documentation built on July 15, 2020, 8:32 a.m.