Converts a connectivity matrix into an adjacency matrix for network analysis.
Examples
set.seed(123)
pe <- PhysioExperiment(
assays = list(raw = matrix(rnorm(500 * 4), nrow = 500, ncol = 4)),
samplingRate = 100
)
conn <- correlationMatrix(pe)
adj <- adjacencyMatrix(conn, threshold = 0.3)