wrap_data: A data wrapper for datasets and trajectories

View source: R/wrap_data.R

wrap_dataR Documentation

A data wrapper for datasets and trajectories

Description

A data wrapper for datasets and trajectories

Usage

wrap_data(
  id = NULL,
  cell_ids,
  cell_info = NULL,
  feature_ids = NULL,
  feature_info = NULL,
  ...
)

is_data_wrapper(dataset)

Arguments

id

A unique identifier for the data. If NULL, a random string will be generated.

cell_ids

The identifiers of the cells.

cell_info

Optional meta-information pertaining the cells.

feature_ids

The identifiers of the features.

feature_info

Optional meta-information pertaining the features.

...

Extra information to be stored in the wrapper.

dataset

A dataset created by wrap_data() or wrap_expression()

Value

A list containing id, cell_ids and cell_info (if specified)

Examples

dataset <- wrap_data(
  cell_ids = c("A", "B", "C")
)
dataset$cell_ids

dynwrap documentation built on July 26, 2023, 5:15 p.m.