View source: R/decoupleR-pre.R
filt_minsize | R Documentation |
Filter sources of a net with less than minsize targets
filt_minsize(mat_f_names, network, minsize = 5)
mat_f_names |
Feature names of mat. |
network |
Tibble or dataframe with edges and it's associated metadata. |
minsize |
Integer indicating the minimum number of targets per source. |
Filtered network.
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
mat <- readRDS(file.path(inputs_dir, "mat.rds"))
net <- readRDS(file.path(inputs_dir, "net.rds"))
net <- rename_net(net, source, target, mor)
filt_minsize(rownames(mat), net, minsize = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.