create_module_from_adjacency_matrix {SeqNet} | R Documentation |
Create a module from an adjacency matrix
Description
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.
Usage
create_module_from_adjacency_matrix(
adjacency_matrix,
nodes = NULL,
module_name = NULL,
run_checks = TRUE
)
Arguments
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 |
Value
A 'network_module' object.
Examples
nw <- random_network(10)
nw <- gen_partial_correlations(nw)
adj_mat <- get_adjacency_matrix(nw)
create_module_from_adjacency_matrix(adj_mat)
[Package SeqNet version 1.1.3 Index]