Learn R Programming

MOFA (version 1.3.1)

factorNames: factorNames: set and retrieve factor names

Description

Function to set and retrieve factor names.

Usage

factorNames(object)

factorNames(object) <- value

# S4 method for MOFAmodel factorNames(object)

# S4 method for MOFAmodel,vector factorNames(object) <- value

Arguments

object

a MOFAmodel object.

value

a character vector of factor names

Value

character vector with the features names

Examples

Run this code
# NOT RUN {
# load a trained MOFAmodel object
filepath <- system.file("extdata", "scMT_model.hdf5", package = "MOFAdata")
MOFAobject <- loadModel(filepath)
factorNames(MOFAobject)
factorNames(MOFAobject) <- paste("Factor",1:3,sep="_")
factorNames(MOFAobject)
# }

Run the code above in your browser using DataLab