edgefinder: Detect edges in co-expression datasets.

Description Usage Arguments Value Examples

View source: R/edgefinder.R

Description

Fit the L2N model to normalized correlation coefficients between pairs of genes. The mixture model has three component - the null component follows a normal distribution, and the two non-null components follow lognormal distributions. An edge is in the graph if the correlation between the two end-point genes is large enough and determined to be in one of the non-null components.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
edgefinder(
  Exprs,
  BHthr = 0.01,
  rndseed = 112211,
  maxLen = 20000,
  LOvals = 30,
  ttl = "",
  trim = 0,
  verbose = FALSE,
  plot.it = FALSE
)

Arguments

Exprs

A numeric matrix with normalized gene expression data. Rows correspond to genes, and columns correspond to samples.

BHthr

the Benjamini-Hochberg fasle discovery rate threshold to be used to determine which pairs are strongly correlated. Default=0.01.

rndseed

The random seed used to select a subset of the pairs.

maxLen

The maximum number of pairs that will be randomly selected to fit the L2N model. Default=20000.

LOvals

the maximum log-odds ratio to be used to determine the cut-off points to declare which correlations are significant. The program will check which log-odds ratio (1,2,...,LOvals) results in FDR less than or equal to the user-specified BHthr. Default=30.

ttl

Title for the fitted-model plot. Default=""

trim

Fraction of extreme values to exclude from the fitted-model plot. Default=0 (show all the data).

verbose

Whether to show progress message to the user. Default=FALSE.

plot.it

Whether to show the fitted mixture plot to the user. Default=FALSE.

Value

A list with the following elements

Examples

1
2
   data(WT)
   WTres <- edgefinder(WT, ttl = "Wild Type")

haimbar/edgefinder documentation built on Dec. 20, 2021, 2:45 p.m.