Learn R Programming

dyngen (version 0.4.0)

wrap_dataset: Wrap a simulation into a dynwrap object

Description

The output of this object can be used with dyno.

Usage

wrap_dataset(
  model,
  store_cellwise_grn = !is.null(model$experiment$cellwise_grn),
  store_dimred = !is.null(model$experiment$dimred),
  store_rna_velocity = !is.null(model$experiment$rna_velocity)
)

Arguments

model

A dyngen output model for which the experiment has been emulated with generate_experiment().

store_cellwise_grn

Whether or not to also store cellwise GRN information.

store_dimred

Whether or not to store the dimensionality reduction constructed on the true counts.

store_rna_velocity

WHether or not to store the log propensity ratios.

Value

A dynwrap object.

Examples

Run this code
# NOT RUN {
data("example_model")
dataset <- wrap_dataset(example_model)

# dynplot::plot_dimred(dataset)
# }

Run the code above in your browser using DataLab