Skip to contents

Read a multiOmicDataSet from RDS

Usage

read_multiOmicDataSet(filepath)

Arguments

filepath

Path to an RDS file produced by write_multiOmicDataSet()

Value

A multiOmicDataSet object.

Examples

sample_metadata <- data.frame(sample_id = c("s1", "s2"), group = c("A", "B"))
counts_dat <- data.frame(
  feature_id = c("gene1", "gene2"),
  s1 = c(10, 20),
  s2 = c(15, 25)
)
moo <- create_multiOmicDataSet_from_dataframes(sample_metadata, counts_dat)
filepath <- tempfile(fileext = ".rds")
write_multiOmicDataSet(moo, filepath)
moo2 <- read_multiOmicDataSet(filepath)