prepare_network: Prepare network for repeated NSEA runs

View source: R/nsea.R

prepare_networkR Documentation

Prepare network for repeated NSEA runs

Description

Prepare network for repeated NSEA runs

Usage

prepare_network(network, directed = FALSE, normalize = "column")

Arguments

network

edge list (data.frame with 2 or 3 columns), a sparse matrix, or a mechgraph object. For mechgraph, its edges table must have from/to columns; a numeric score or weight column, if present, is used as the edge weight, otherwise unit weights are used.

directed

logical, whether the network is directed. Default is FALSE.

normalize

one of "column", "row", or "none". Default is "column".

Value

A sparse matrix (dgCMatrix) that has been properly formatted and normalized.


enrichit documentation built on Oct. 28, 2026, 9:07 a.m.