factorNames: factorNames: set and retrieve factor names

Description Usage Arguments Value Examples

Description

Function to set and retrieve factor names.

Usage

1
2
3
4
5
6
7
8
9
factorNames(object)

factorNames(object) <- value

## S4 method for signature 'MOFAmodel'
factorNames(object)

## S4 replacement method for signature '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

1
2
3
4
5
6
# 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)

bioFAM/MOFA documentation built on Oct. 3, 2020, 12:53 a.m.