Skip to contents

Wraps the values of rsem_import() (or one table) with the sample table and the gene IDs in a SummarizedExperiment, the object that most Bioconductor packages take. Nothing is calculated or changed: each assay is one of the tables, colData is the sample table, rowData has the original gene IDs behind each row (several joined by ";" where rows were merged), and the steps taken so far (see rsem_steps()) are kept in metadata(se)$steps. For DESeq2 on RSEM gene results, the list of rsem_as_tximport() is the more direct way.

Usage

rsem_as_summarizedexperiment(x, metadata = NULL)

Arguments

x

The result of rsem_import(), or one table from rsem_read() (the assay is then named after its expr, or "values").

metadata

The sample table, a path to a CSV file or a data frame with a sample_id column; the rows are put in the order of the samples. Optional.

Value

A SummarizedExperiment.

Details

The SummarizedExperiment package is needed (it is not installed with rsemverse).

Examples

if (FALSE) { # \dontrun{
se <- rsem_import("rsem", metadata = NULL) |> rsem_as_summarizedexperiment("metadata.csv")
} # }