| filter_regulon | R Documentation |
Subsets a regulon by centroid, by edge likelihood and by absolute correlation. Centroids left without targets are removed.
filter_regulon(
regulon,
tf_list = NULL,
likelihood_threshold = 0,
correlation_threshold = 0
)
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 |
A regulon object, or NULL if no edge survives
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.