subset_samples: Subset samples

Description Usage Arguments Value Examples

View source: R/subset.R

Description

Method to subset (or sort) samples

Usage

1
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

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

MOFA2 documentation built on Nov. 8, 2020, 7:28 p.m.