InferTFact: Estimate TF activity score in a sample

Description Usage Arguments Details Value Examples

View source: R/InferTFact.R

Description

InferTFact is an auxiliary function for function sepiraRegAct.

Usage

1
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

1
2
3
4
5
6
# 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)

SEPIRA documentation built on Nov. 8, 2020, 6:33 p.m.