createNetwork | R Documentation |
User selected enrichment terms are used to create a Cytoscape network where the selected terms and the genes that where part of the enrichment analysis are all represented as nodes. Edges are linking the genes to their terms. The selection of the term can by specifying the source of the terms (GO:MF, REAC, TF, etc.) or by listing the selected term IDs. The network is only generated when there is at least on significant term to graph. When the enrichment analysis contains more than one query, only one query can be selected to generate the network.
createNetwork(
gostObject,
source = c("TERM_ID", "GO:MF", "GO:CC", "GO:BP", "KEGG", "REAC", "TF", "MIRNA", "HPA",
"CORUM", "HP", "WP"),
termIDs = NULL,
removeRoot = TRUE,
query = NULL,
title = "gprofiler network",
collection = "enrichment results",
fileName = "gprofilerNetwork.cx"
)
gostObject |
a |
source |
a |
termIDs |
a |
removeRoot |
a |
query |
a |
title |
a |
collection |
a |
fileName |
a |
TRUE
Astrid DeschĂȘnes
## Loading dataset containing result from an enrichment analysis done with
## gprofiler2
data(parentalNapaVsDMSOEnrichment)
## Some of the enrichment results present in the dataset
head(parentalNapaVsDMSOEnrichment$result)
## Create network for Gene Ontology - Molecular Function related results
## in Cytoscape (when the application is opened)
## Otherwise, create a CX file in the temporary directory
## The file can be opened in Cytoscape
createNetwork(gostObject=parentalNapaVsDMSOEnrichment, source="KEGG",
removeRoot=FALSE, title="KEGG Graph",
fileName=file.path(tempdir(), "KEGG_demo.cx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.