wgcnaPower: soft-thresholding powers picking

Description Usage Arguments Value References Examples

Description

As suggested by WGCNA, the 1st number that hists between 0.8-0.9 region should be picked as the soft-threshold

Usage

1

Arguments

x

- adjacency matrix returned by phaseLockingMatrix, grangerTest or coherenceTest

Value

pdf file with R^2 plot and average connectivity

References

[1] Langfelder, P. & Horvath, S. WGCNA: an R package for weighted correlation network analysis. BMC Bioinformatics 9, 559 (2008)

Examples

1
2
3
4
5
#example 1
#be aware that this example data is generating a random matirx, so the plot does not match the real situation.  
x = replicate(1000, qunif(sort(runif(1000,min=0,max=1)), min = 0, max = 1))
x[lower.tri(x)] = t(x)[lower.tri(x)]
wgcnaPower(x)

TTYE/CoSync-TestVersion documentation built on May 9, 2019, 7:08 p.m.