create_module_from_adjacency_matrix {SeqNet} | R Documentation |
The edges in the module will be set to the edges in the adjacency matrix.
The edges are undirected, and only the lower triangle of the
matrix is considered. See set_module_edges
for more details.
create_module_from_adjacency_matrix(
adjacency_matrix,
nodes = NULL,
module_name = NULL,
run_checks = TRUE
)
adjacency_matrix |
The adjacency matrix used to create the module. |
nodes |
A numeric vector indicating which nodes in the network are contained in this module. |
module_name |
(optional) Character string specifying the name of the
module. If |
run_checks |
If |
A 'network_module' object.
nw <- random_network(10)
nw <- gen_partial_correlations(nw)
adj_mat <- get_adjacency_matrix(nw)
create_module_from_adjacency_matrix(adj_mat)