intersect_regulons {decoupleR} | R Documentation

## Intersect network target features with input matrix.

### Description

Keep only edges which its target features belong to the input matrix.

### Usage

    intersect_regulons(mat, network, .source, .target, minsize)

### Arguments

`mat` | Matrix to evaluate (e.g. expression matrix). Target nodes in rows and conditions in columns. `rownames(mat)` must have at least one intersection with the elements in `network` `.target` column.
`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.

### Value

Filtered tibble.

### Examples

    inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
    mat <- readRDS(file.path(inputs_dir, "input-expr_matrix.rds"))
    network <- readRDS(file.path(inputs_dir, "input-dorothea_genesets.rds"))
    intersect_regulons(mat, network, tf, target, minsize=5)

[Package decoupleR version 2.0.1 Index]