sim2adj: Compute adjaceny matrix from similary (correlation) matrix

View source: R/utility_functions.R

sim2adjR Documentation

Compute adjaceny matrix from similary (correlation) matrix

Description

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

Usage

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(s)

Nicholas Mikolajewicz

Examples


# Convert similary to adjacency
a.mat <- sim2adj(s.mat, soft.power = 2, network.type = "signed")


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.