nichenet_remove_orphan_ligands {OmnipathR} | R Documentation

## Removes experiments with orphan ligands

### Description

Removes from the expression data the perturbation experiments involving ligands without connections.

### Usage

    nichenet_remove_orphan_ligands(expression, lr_network)

### Arguments

`expression` | Expression data as returned by `nichenet_expression_data`.
`lr_network` | A NicheNet format ligand-recptor network data frame as produced by `nichenet_lr_network`.

### Value

The same list as 'expression' with certain elements removed.

### Examples

    lr_network <- nichenet_lr_network()
    expression <- nichenet_expression_data()
    expression <- nichenet_remove_orphan_ligands(expression, lr_network)

[Package OmnipathR version 3.0.0 Index]