subset_samples: Subset samples

View source: R/subset.R

subset_samplesR 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)

bioFAM/MOFA2 documentation built on June 12, 2024, 3:57 p.m.