Skip to contents

This function handles a network object that may be a raw matrix, sparse matrix, or a WGCNA result list containing `TOM` or `adjacency`. It extracts the appropriate matrix for downstream use.

Usage

extract_network_matrix(network)

Arguments

network

A matrix, sparse Matrix, or a list from WGCNA with `TOM` or `adjacency`.

Value

A base or sparse matrix suitable for analysis.