ggnetmap: generate network based on Enrichment results

View source: R/ggnetmap.R

ggnetmapR Documentation

generate network based on Enrichment results

Description

generate network based on Enrichment results

Usage

ggnetmap(
  richRes,
  gene = NULL,
  top = 50,
  top.display = NULL,
  pvalue = 0.05,
  padj = NULL,
  usePadj = TRUE,
  low = "orange",
  high = "red",
  weightcut = 0.2,
  useTerm = TRUE,
  writeCyt = FALSE,
  cytoscapeFile = "cytoscape.txt",
  cytoscapeFormat = "graphml",
  label.color = "black",
  label.size = 2,
  node.shape = NULL,
  layout = "fruchtermanreingold",
  savefig = FALSE,
  visNet = FALSE,
  smooth = TRUE,
  nodeselect = FALSE,
  edit = FALSE,
  savehtml = FALSE,
  filename = "network",
  width = 7,
  height = 7,
  segment.size = 0.2,
  node.alpha = 0.7,
  ...
)

Arguments

richRes

list of enrichment object

gene

vector contains gene names or dataframe with DEGs information

top

number of terms to display

top.display

top number to display

pvalue

cutoff value of pvalue (if padj set as NULL)

padj

cutoff value of p adjust value

usePadj

use adjust p value as color or not (should use with padj)

low

color used for small value

high

color used for large value

weightcut

cutoff valule for edge

writeCyt

write out the cytoscape file

cytoscapeFile

output cytoscape File

cytoscapeFormat

Character string giving the output file format

label.color

label color

label.size

label size

layout

layout method ('fruchtermanreingold','kamadakawai','target','circle')

savefig

save the figure or not

filename

figure output name

width

figure width

height

figure height

segment.size

size for label segment

node.alpha

alpha-transparency scales

label.font

label font

Author(s)

Kai Guo

Examples

## Not run: 
hsako <- buildAnnot(species="human",keytype="SYMBOL",anntype = "KEGG")
hsago <- buildAnnot(species="human",keytype="SYMBOL",anntype = "GO")
gene <- sample(unique(hsako$GeneID),1000)
resko <-richKEGG(gene,kodata = hsako)
resgo <- richGO(gene,hsago)
ggnetmap(list(resgo,resko))

## End(Not run)

hurlab/RichR documentation built on Feb. 5, 2024, 8:07 p.m.