A SummarizedExperiment from RSEM values
Source:R/rsem_as_summarizedexperiment.R
rsem_as_summarizedexperiment.RdWraps 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.
Arguments
- x
The result of
rsem_import(), or one table fromrsem_read()(the assay is then named after itsexpr, or"values").- metadata
The sample table, a path to a CSV file or a data frame with a
sample_idcolumn; the rows are put in the order of the samples. Optional.
Examples
if (FALSE) { # \dontrun{
se <- rsem_import("rsem", metadata = NULL) |> rsem_as_summarizedexperiment("metadata.csv")
} # }