featureNames: featureNames: set and retrieve feature names

Description Usage Arguments Value Examples

Description

Function to set and retrieve feature names.

Usage

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

featureNames(object) <- value

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

## S4 replacement method for signature 'MOFAmodel,list'
featureNames(object) <- value

Arguments

object

a MOFAmodel object.

value

list of character vectors with the feature names for each view

Value

list of character vectors with the feature names for each view

Examples

1
2
3
4
data("CLL_data", package = "MOFAdata")
MOFAobject  <- createMOFAobject(CLL_data)
featureNames(MOFAobject)$Mutations
head(featureNames(MOFAobject)$Drugs)

MOFA documentation built on Feb. 11, 2021, 2:01 a.m.