
Build a graph object from multiple numeric matrices
Source:R/build_graph_from_multi_mat.R
build_graph_from_multi_mat.RdBuild a graph object from multiple numeric matrices
Usage
build_graph_from_multi_mat(
mat1,
mat2,
...,
module.method = c("Fast_greedy", "Walktrap", "Edge_betweenness", "Spinglass"),
node_annotation = NULL,
directed = FALSE,
top_modules = 15,
seed = 1115
)Arguments
- mat1
Numeric matrix. A numeric matrix with samples in colums and variables in rows
- mat2
Numeric matrix. A numeric matrix with samples in colums and variables in rows
- ...
Additional numeric matrices with samples in columns and variables in rows.
- module.method
Character. Network community detection (module identification) method. Options include "Fast_greedy", "Walktrap", "Edge_betweenness", and "Spinglass".
- node_annotation
Data frame. Optional node annotation table, containing metadata such as taxonomy or functional categories.
- directed
Logical (default:
FALSE). Whether edges between nodes are directed.- top_modules
Integer. Number of top-ranked modules to retain for downstream visualization or analysis.
- seed
Integer (default = 1115). Random seed for reproducibility.