Learn R Programming

WGCNA (version 1.70-3)

dynamicMergeCut: Threshold for module merging

Description

Calculate a suitable threshold for module merging based on the number of samples and a desired Z quantile.

Usage

dynamicMergeCut(n, mergeCor = 0.9, Zquantile = 2.35)

Arguments

n

number of samples

mergeCor

theoretical correlation threshold for module merging

Zquantile

Z quantile for module merging

Value

The correlation threshold for module merging; a single number.

Details

This function calculates the threshold for module merging. The threshold is calculated as the lower boundary of the interval around the theoretical correlation mergeCor whose width is given by the Z value Zquantile.

See Also

moduleEigengenes, mergeCloseModules

Examples

Run this code
# NOT RUN {
  dynamicMergeCut(20)
  dynamicMergeCut(50)
  dynamicMergeCut(100)
# }

Run the code above in your browser using DataLab