View source: R/build_network.R
build_network | R Documentation |
Construct a PPI network from input genes and InnateDB's database
build_network(
df,
col,
order,
hub_measure = "betweenness",
ppi_data = innatedb_exp,
seed = 1
)
df |
Input data frame containing genes of interest |
col |
Column of input genes as Ensembl IDs (character) |
order |
Desired network order. Possible options are "zero" (default), "first," "min_simple," or "min_steiner." |
hub_measure |
Character denoting what measure should be used in
determining which nodes to highlight as hubs when plotting the network.
Options include "betweenness" (default), "degree", and "hubscore". These
represent network statistics calculated by their respective
|
ppi_data |
Data frame of PPI data; must contain rows of interactions as pairs of Ensembl gene IDs, with columns named "ensembl_gene_A" and "ensembl_gene_B". Defaults to pre-packaged InnateDB PPI data. |
seed |
Number used in call to |
The "min_steiner" method is implemented with the SteinerNet
package.
The "hub_measure" argument determines how build_network
assesses
connectedness of nodes in the network, which will be used to highlight nodes
when visualizing with plot_network
. The options are "degree",
"betweenness", or "hubscore". This last option uses the igraph implementation
of the Kleinburg hub centrality score - details on this method can be found
at ?igraph::hub_score
.
tidygraph
object for plotting or further analysis
See https://cran.r-project.org/web/packages/SteinerNet/index.html for details on the Steiner network trimming.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.