LowPC: Low order partial correlation

Description Usage Arguments Details Value References See Also

View source: R/LowPC.R

Description

Calculate the low order PC as shown in paper [1].

Usage

1
2
LowPC(data.exp, cutoff = 0.05, cutat = "pval", method = "pearson",
  progressbar = T)

Arguments

data.exp

gene expression data matrix with genes in columns and samples in rows.

cutoff

a cut-off of p-values or conenction proabibility.

cutat

a string indicates to cut the results at p-value "pval" or probability "prob" with a threshold cutoff.

method

a string character of method used to estimate correlation. Options are "pearson", "spearman" and "kendall".

progressbar

logical. If TRUE, a progressbar will show to indicate the code runing percentage.

Details

Zero order PC (correlation) is firstly computed. The significant edges in zero order PC network are used to calcuate first order PC. After that, the significant edges in first order PC are used to calculate second order PC. Instead of regressing all the remained genes one by one or pair by pair, the calculation of first and second PC only based on the subset of edges that significantly connect to the genes, which greatly reduces the computational cost compared to the paper [1]. For example, in a network with n genes, the first order PC between gene i and j is calculated by removing m shared genes, which significantly connect to i and j, one by one rather than all the n-2 remained genes (m<n-2). If a pair of genes do not connect to the same set of genes, the correlation between them is represeted as correlation, while if they connected only one shared gene, the edge connection is weighted as first order PC. The correlation significance is estimated using R package fdrtool.

Value

LowPC returns a list includes the results of zero order PC, first order PC and second order PC.

References

1. Zuo Y, Yu G, Tadesse MG, Ressom HW: Biological network inference using low order partial correlation. Methods (San Diego, Calif) 2014, 69(3):266-273.

See Also

zeroPC, firstPC, secondPC, RLowPC and cor2statistics.


wyguo/RLowPCor documentation built on May 4, 2019, 12:04 p.m.