View source: R/network_stats.R
net_stats | R Documentation |
Calculate network statistics
net_stats(
adj_matrix = NULL,
net_type = c("gcn", "ppi", "grn"),
calculate_additional = FALSE
)
adj_matrix |
Adjacency matrix that represents the network. |
net_type |
One of "gcn" (gene coexpression network), "ppi" (protein-protein interaction), or "grn" (gene regulatory network). |
calculate_additional |
Logical indicating whether to calculate additional network statistics (betweenness and closeness). Default is FALSE. |
A list containing the following elements:
Connectivity
ScaledConnectivity
ClusterCoef
MAR (for gcn only)
Density
Centralization
Heterogeneity (gcn only)
Diameter
Betweenness
Closeness
graph_from_adjacency_matrix
,
cliques
,diameter
,
estimate_betweenness
,V
,
closeness
,degree
,
transitivity
,edge_density
,
centr_degree
fundamentalNetworkConcepts
data(filt.se)
set.seed(12)
filt.se <- exp_preprocess(
filt.se, Zk_filtering = FALSE, variance_filter = TRUE, n = 200
)
gcn <- exp2gcn(
filt.se, SFTpower = 7, cor_method = "pearson", net_type = "signed hybrid"
)
stats <- net_stats(gcn$adjacency_matrix, net_type = "gcn")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.