Add or create a dimensionality reduction

add_dimred(model, dimred, dimred_milestones = NULL,
  dimred_trajectory_segments = NULL, expression_source = "expression",
  ...)

is_wrapper_with_dimred(model)

get_dimred(model, dimred = NULL, expression_source = "expression")

Arguments

model

The model to which a dimensionality reduction will be added.

dimred

The dimensionality reduction matrix (with cell_ids as rownames) or function which will run the dimensionality reduction

dimred_milestones

An optional dimensionality reduction of the milestones.

dimred_trajectory_segments

An optional dimensionality reduction of the trajectory segments.

expression_source

The source of expression, can be "counts", "expression", an expression matrix, or another model which contains expression

...

extra information to be stored in the wrapper