filter_regulons {decoupleR} | R Documentation |
Keep only sources which satisfied the condition min_size >= n <= max_size
,
where n
denotes the number of targets per source.
filter_regulons(network, .source, min_size = 1, max_size = Inf)
network |
Tibble or dataframe with edges and it's associated metadata. |
.source |
Column with source nodes. |
min_size |
Minimum number of targets allowed per regulon. |
max_size |
Maximum number of targets allowed per regulon. |
Filtered tibble.
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR") network <- readRDS(file.path(inputs_dir, "input-dorothea_genesets.rds")) filter_regulons(network, .source = tf, min_size = 30, max_size = 50)