subset_samples {MOFA2} | R Documentation

## Subset samples

### Description

Method to subset (or sort) samples

### Usage

    subset_samples(object, samples)

### Arguments

`object` | a `MOFA` object.
`samples` | character vector with the sample names or numeric vector with the sample indices.

### Value

A `MOFA` object

### Examples

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

    # (TO-DO) Remove a specific sample from the model (an outlier)

[Package MOFA2 version 1.0.1 Index]