ComputePCOR {SEPIRA} | R Documentation

## Compute partial correlation coefficient

### Description

`ComputePCOR` computes partial correlation between transcription regulators and their targets.

### Usage

    ComputePCOR(idx, mapTG.idx, mapTF.idx, selbinNET.m, exp)

### Arguments

`idx` | Numeric, the index of target genes in the row of a binarized network `selbinNET.m`.
`mapTG.idx` | A vector of indexes output from `match` function when mapping the target genes in the network to rows of the original expression data matrix.
`mapTF.idx` | A vector of indexes output from `match` function when mapping the transcription factors (TFs) in the network to rows of the original expression data matrix.
`selbinNET.m` | A matrix, the binarized network with rows referring to TF target genes, and columns to TFs (the regulators). 0s means no regulation between TF-gene, while 1s means significant regulation (either positive or negative).
`exp` | A matrix, the original gene expression data matrix across different tissue types with rows referring to genes, columns to samples.

### Details

This function is used to calculate partial correlations between a TF target gene and all its regulators.

User needs to first provide the index (`idx`) of the gene in the binarized matrix, then all its regulators are detected from the network. Then the expression profile of this gene and its regulators are retrieved from the expression data matrix (`exp`) with `mapTG.idx` and `mapTF.idx` indexes which indicates the number of rows they are in `exp` (from `match` function).

The output could be: 1) a matrix storing the partial correlation coefficients; 2) NULL if the selected gene has only one regulator according to the binarized network.

### Value

A matrix with partial correlation coefficients between TF targets and their regulators.

[Package SEPIRA version 1.2.0 Index]