View source: R/utility_functions.R
sim2adj | R Documentation |
Compute adjaceny matrix from similary (correlation) matrix for different network types.
sim2adj(s.mat, soft.power, network.type)
s.mat |
Similarity matrix. Symmetric matrix with rows and columns corresponding to genes, and diagonal = 1. |
soft.power |
Numeric specifying soft power used to calculate adjacency matrix. |
network.type |
character specifying network type. Must be one of "unsigned", "signed", or "signed hybrid". |
adjaceny matrix (a.mat)
Nicholas Mikolajewicz
# Convert similary to adjacency
a.mat <- sim2adj(s.mat, soft.power = 2, network.type = "signed")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.