Learn R Programming

MOFA (version 1.3.1)

Expectations: Expectations: set and retrieve expectations of model components

Description

Function to set and retrieve expectations of model components.

Usage

Expectations(object)

Expectations(object) <- value

# S4 method for MOFAmodel Expectations(object)

# S4 method for MOFAmodel,list Expectations(object) <- value

Arguments

object

a MOFAmodel object.

value

a list with matrices for expectations of unobserved model components

Value

list of matrices containing expectations of model components

Examples

Run this code
# NOT RUN {
# load a trained MOFAmodel object
filepath <- system.file("extdata", "scMT_model.hdf5", package = "MOFAdata")
MOFAobject <- loadModel(filepath)
names(Expectations(MOFAobject))
# }

Run the code above in your browser using DataLab