View source: R/network_analysis.R
generateNetworkGraph | R Documentation |
igraph
for a Network Adjacency Matrix
Given the adjacency matrix of an undirected graph, returns the corresponding
igraph
containing the list of nodes and edges.
generateNetworkFromAdjacencyMat()
is a deprecated equivalent of
generateNetworkGraph()
.
generateNetworkGraph(
adjacency_matrix
)
# Deprecated equivalent:
generateNetworkFromAdjacencyMat(
adjacency_matrix
)
adjacency_matrix |
A symmetric matrix.
Passed to
|
An object of class igraph
,
containing the list of nodes and edges corresponding to adjacency_matrix
.
Brian Neal (Brian.Neal@ucsf.edu)
Hai Yang, Jason Cham, Brian Neal, Zenghua Fan, Tao He and Li Zhang. (2023). NAIR: Network Analysis of Immune Repertoire. Frontiers in Immunology, vol. 14. doi: 10.3389/fimmu.2023.1181825
set.seed(42)
toy_data <- simulateToyData(sample_size = 10)
adj_mat <-
generateAdjacencyMatrix(
toy_data$CloneSeq
)
igraph <-
generateNetworkGraph(
adj_mat
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.