This function constructs a network of relationships between different biological entities. The network can include functional modules, modules, pathways, and molecules.

create_relation_network(
  object,
  include_functional_modules = TRUE,
  include_modules = TRUE,
  include_pathways = TRUE,
  include_molecules = TRUE
)

Arguments

object

An object of class functional_module containing the functional module data.

include_functional_modules

Logical; whether to include functional modules in the network. Defaults to TRUE.

include_modules

Logical; whether to include modules in the network. Defaults to TRUE.

include_pathways

Logical; whether to include pathways in the network. Defaults to TRUE.

include_molecules

Logical; whether to include molecules in the network. Defaults to TRUE.

Value

A list containing edge_data and node_data data frames.

  • edge_data is a data frame containing the relationships between nodes, including their classes.

  • node_data is a data frame containing information about each node, such as annotation and class.

Author

Xiaotao Shen shenxt1990@outlook.com