Skip to contents

Construct a NicheNet ligand-target model

Usage

nichenet_build_model(optimization_results, networks, use_weights = TRUE)

Arguments

optimization_results

The outcome of NicheNet parameter optimization as produced by nichenet_optimization.

networks

A list with NicheNet format signaling, ligand-receptor and gene regulatory networks as produced by nichenet_networks.

use_weights

Logical: whether to use the optimized weights.

Value

A named list with two elements: `weighted_networks` and `optimized_parameters`.

Examples

if (FALSE) {
expression <- nichenet_expression_data()
networks <- nichenet_networks()
optimization_results <- nichenet_optimization(networks, expression)
nichenet_model <- nichenet_build_model(optimization_results, networks)
}