load_transform_models: Load transform models into a cell_data_set.

View source: R/io.R

load_transform_modelsR Documentation

Load transform models into a cell_data_set.

Description

Load transform models, which were saved using save_transform_models, into a cell_data_set. This function over-writes existing models in the cell_data_set. For more information read the help information for save_transform_models.

Usage

load_transform_models(cds, directory_path)

Arguments

cds

a cell_data_set to be transformed using the models.

directory_path

a string giving the name of the directory from which to read the model files.

Value

a cell_data_set with the transform models loaded by load_transform_models.

Examples

  ## Not run: 
    cds <- load_a549()
    cds <- preprocess_cds(cds)
    cds <- reduce_dimension(cds)
    save_transform_models(cds, 'tm')
    cds1 <- load_a549()
    cds1 <- load_transform_models(cds1, 'tm')
  
## End(Not run)

cole-trapnell-lab/monocle3 documentation built on May 24, 2022, 5:25 p.m.