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 sciraRegAct.

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 sciraInfNet, 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 <- SCIRA:::InferTFact(exp.v, regnet.m)

WangNing0420/SCIRA documentation built on Aug. 5, 2019, 4:11 p.m.