Learn R Programming

WGCNA (version 1.68)

sigmoidAdjacencyFunction: Sigmoid-type adacency function.

Description

Sigmoid-type function that converts a similarity to a weighted network adjacency.

Usage

sigmoidAdjacencyFunction(ss, mu = 0.8, alpha = 20)

Arguments

ss

similarity, a number between 0 and 1. Can be given as a scalar, vector or a matrix.

mu

shift parameter.

alpha

slope parameter.

Value

Adjacencies returned in the same form as the input ss

Details

The sigmoid adjacency function is defined as \(1/(1+\exp[-\alpha(ss - \mu)])\).

References

Bin Zhang and Steve Horvath (2005) "A General Framework for Weighted Gene Co-Expression Network Analysis", Statistical Applications in Genetics and Molecular Biology: Vol. 4: No. 1, Article 17