View source: R/decoupleR-pre.R
intersect_regulons | R Documentation |
Keep only edges which its target features belong to the input matrix.
intersect_regulons(mat, network, .source, .target, minsize)
mat |
Matrix to evaluate (e.g. expression matrix).
Target nodes in rows and conditions in columns.
|
network |
Tibble or dataframe with edges and it's associated metadata. |
.source |
Column with source nodes. |
.target |
Column with target nodes. |
minsize |
Minimum number of targets per source allowed. |
Filtered tibble.
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
mat <- readRDS(file.path(inputs_dir, "mat.rds"))
net <- readRDS(file.path(inputs_dir, "net.rds"))
intersect_regulons(mat, net, source, target, minsize=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.