nichenet_build_model {OmnipathR} | R Documentation

## Construct a NicheNet ligand-target model

### Description

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

    expression <- nichenet_expression_data()

    networks <- nichenet_networks()
    optimization_results <- nichenet_optimization(networks, expression)
    nichenet_model <- nichenet_build_model(optimization_results, networks)

[Package OmnipathR version 3.2.0 Index]