Compute adjaceny matrix from similary (correlation) matrix for different network types.

sim2adj(s.mat, soft.power, network.type)

Arguments

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".

Value

adjaceny matrix (a.mat)

Author

Nicholas Mikolajewicz

Examples


# Convert similary to adjacency
a.mat <- sim2adj(s.mat, soft.power = 2, network.type = "signed")
#> Error in sim2adj(s.mat, soft.power = 2, network.type = "signed"): could not find function "sim2adj"