View source: R/extract_subnetwork.R
extract_subnetwork | R Documentation |
Extract a subnetwork based on pathway genes
extract_subnetwork(network, genes = NULL, enrich_result = NULL, pathway_name)
network |
Input network object; output from |
genes |
List of Ensembl gene IDs to use as the starting point to extract
a subnetwork from the initial network. You must provide either |
enrich_result |
Pathway enrichment result, output from |
pathway_name |
Name of the pathway determining what genes (nodes) are pulled from the input network. |
Uses functions from the igraph package to extract a minimally
connected subnetwork or module from the starting network, using either a
list of Ensembl genes or genes from an enriched pathway as the basis. To
see what genes were pulled out for the pathway, check attr(x, "starters")
.
tidygraph
object for plotting or further analysis
Code for network module (subnetwork) extraction was based off of that used in jboktor/NetworkAnalystR on Github.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.