meltSE: meltSE

View source: R/meltSE.R

meltSER Documentation

meltSE

Description

Melts a SE object into a ggplot-ready long data.frame.

Usage

meltSE(
  x,
  features,
  assayName = NULL,
  colDat.columns = NULL,
  rowDat.columns = NULL,
  flatten = TRUE,
  baseDF = TRUE
)

Arguments

x

An object of class SummarizedExperiment-class

features

A vector of features (i.e. row.names) to include. Use 'features=NULL' to include all.

assayName

The name(s) of the assay(s) to use. If NULL and the assays are named, all of them will be included.

colDat.columns

The colData columns to include (defaults includes all). Use 'colDat.columns=NA' in order not to include any.

rowDat.columns

The rowData columns to include (default all). Use 'rowData=NA' to not include any.

flatten

Logical, whether to flatten nested data.frames.

baseDF

Logical, whether to return a base data.frame (removing columns containing other objects such as atomic lists). Filtering is applied after flattening.

Value

A data.frame (or a DataFrame).

Examples

data("Chen2017", package="sechm")
head(meltSE(Chen2017,"Fos"))


plger/sechm documentation built on Nov. 21, 2023, 8:53 p.m.