Learn R Programming

dynwrap (version 1.2.4)

wrap_data: 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)

Value

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

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()

Examples

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

Run the code above in your browser using DataLab