Learn R Programming

viper (version 1.6.0)

pruneRegulon: Prune Regulons

Description

This function limits the maximum size of the regulons

Usage

pruneRegulon(regulon, cutoff = 50, eliminate = FALSE)

Arguments

regulon
Object of class regulon
cutoff
Number indicating the maximum size for the regulons (maximum number of target genes)
eliminate
Logical whether regulons smalles than cutoff should be eliminated

Value

Prunned regulon

See Also

viper, msviper

Examples

Run this code
data(bcellViper, package="bcellViper")
hist(sapply(regulon, function(x) sum(x$likelihood)/max(x$likelihood)), nclass=20)
preg <- pruneRegulon(regulon, 400)
hist(sapply(preg, function(x) sum(x$likelihood)/max(x$likelihood)), nclass=20)

Run the code above in your browser using DataLab