create_module_from_adjacency_matrix: Create a module from an adjacency matrix

Description Usage Arguments Value Examples

View source: R/modules.R

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

1
2
3
4
5
6
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 NULL, the module will be unnamed.

run_checks

If TRUE, then the adjacency_matrix argument is checked.

Value

A 'network_module' object.

Examples

1
2
3
4

SeqNet documentation built on July 9, 2021, 9:08 a.m.