summarize_metadata: Renders a component containing an HTML table of summarized...

Description Usage Arguments Value

Description

Renders a component containing an HTML table of summarized sample or feature metadata of single-cell experiment objects or data.frames.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
summarize_metadata(dashboard, object, ...)

## S4 method for signature 'i2dashboard,missing'
summarize_metadata(
  dashboard,
  data,
  columns = colnames(data),
  FUNS = c("min", "max", "mean", "median"),
  group_by = NULL,
  caption = NULL,
  description = NULL,
  title = NULL
)

## S4 method for signature 'i2dashboard,SingleCellExperiment'
summarize_metadata(
  dashboard,
  object,
  from = c("colData", "rowData"),
  columns = NULL,
  group_by = NULL,
  caption = "Table: ",
  description = NULL,
  ...
)

## S4 method for signature 'i2dashboard,Seurat'
summarize_metadata(
  dashboard,
  object,
  from = c("meta.data", "meta.features"),
  assay = "RNA",
  columns = NULL,
  group_by = NULL,
  caption = "Table",
  description = NULL,
  ...
)

Arguments

dashboard

An object of class i2dashboard.

object

An object of class Seurat or SingleCellExperiment.

...

Further parameters passed to the core function.

data

Data.frame containing numeric observations to summarize.

columns

The metadata columns to summarize.

FUNS

A named vector indicating summary functions.

group_by

A column name of a column containing grouping factors for grouping.

caption

The tables caption.

description

The tables description.

title

The title of the component.

from

A character specifying where to obtain the data from object, e.g. colData/rowData.

assay

A character defining the assay of object.

Value

A string containing markdown code for the rendered component


loosolab/i2dash.scrnaseq documentation built on Jan. 1, 2021, 8:23 a.m.