filter_regulon: filter_regulon - Filter a Regulon Object

filter_regulonR Documentation

filter_regulon - Filter a Regulon Object

Description

Subsets a regulon by centroid, by edge likelihood and by absolute correlation. Centroids left without targets are removed.

Usage

filter_regulon(
  regulon,
  tf_list = NULL,
  likelihood_threshold = 0,
  correlation_threshold = 0
)

Arguments

regulon

A regulon object, as generated by corto()

tf_list

A character vector of centroid names to keep. Default is NULL, i.e. all centroids

likelihood_threshold

Minimum edge likelihood, between 0 and 1. Default is 0

correlation_threshold

Minimum absolute correlation. Default is 0

Value

A regulon object, or NULL if no edge survives

Examples

load(system.file("extdata","inmat.rda",package="corto",mustWork=TRUE))
load(system.file("extdata","centroids.rda",package="corto",mustWork=TRUE))
regulon<-corto(inmat,centroids=centroids,nbootstraps=10,p=1e-30,nthreads=2)
filtered<-filter_regulon(regulon,likelihood_threshold=0.5,correlation_threshold=0.9)
length(filtered)

corto documentation built on Aug. 21, 2026, 9:06 a.m.