samples_metadata {MOFA2} | R Documentation

## samples_metadata: retrieve sample metadata

### Description

samples_metadata: retrieve sample metadata

### Usage

    samples_metadata(object)

    samples_metadata(object) <- value

    ## S4 method for signature 'MOFA'
    samples_metadata(object)

    ## S4 replacement method for signature 'MOFA,data.frame'
    samples_metadata(object) <- value

### Arguments

`object` | a `MOFA` object.
`value` | data frame with sample metadata, it must at least contain the columns `sample` and `group`. The order of the rows must match the order of `samples_names(object)`

### Value

a data frame with sample metadata

### Examples

    # Using an existing trained model on simulated data
    file <- system.file("extdata", "model.hdf5", package = "MOFA2")
    model <- load_model(file)
    samples_metadata(model)

[Package MOFA2 version 1.0.1 Index]