InferTFact {SEPIRA} | R Documentation

## Estimate TF activity score in a sample

### Description

`InferTFact` is an auxiliary function for function `sepiraRegAct`.

### Usage

    InferTFact(exp, regnet)

### Arguments

`exp` | A numeric vector of gene expression levels for all TF target genes in a sample.
`regnet` | A matrix, the network estimated by function `sepiraInfNet`, with +1 referring to positive regulation, -1 negative regulation, and 0 no regulation.

### Details

`InferTFact` regresses the expression profiles of TF target genes against the binding profile of this TF on these genes. The output t-statistics are taken as the TF activity scores.

### Value

A vector storing the activity scores of all TFs in a specific sample.

### Examples

    # TF regulatory network with 100 genes and 5 TFs.
    regnet.m <- matrix(sample(c(-1, 0, 1), 500, replace = TRUE), nrow = 100)
    # gene expression vector (for one sample)
    exp.v <- rnorm(100)
    # TF activity score
    TFact.v <- SEPIRA:::InferTFact(exp.v, regnet.m)

[Package SEPIRA version 1.10.0 Index]