Skip to contents

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)