combine_models: Combine multiple dyngen models

View source: R/combine_models.R

combine_modelsR Documentation

Combine multiple dyngen models

Description

Assume the given models have the exact same feature ids and ran up until the generate_cells() step. In addition, the user is expected to run generate_experiment() on the combined models.

Usage

combine_models(models, duplicate_gold_standard = TRUE)

Arguments

models

A named list of models. The names of the list will be used to prefix the different cellular states in the combined model.

duplicate_gold_standard

Whether or not the gold standards of the models are different and should be duplicated and prefixed.

Details

See the vignette on simulating batch effects on how to use this function.

Value

A combined dyngen model.

Examples


data("example_model")
model_ab <- combine_models(list("left" = example_model, "right" = example_model))

# show a dimensionality reduction
plot_simulations(model_ab)
plot_gold_mappings(model_ab, do_facet = FALSE)


dyngen documentation built on Oct. 12, 2022, 5:06 p.m.