Skip to contents

The datasets this tab can open by name: the built-in samples and the person's own datasets opened before in this browser (My datasets, each with its size and what this browser keeps of it), with the one open now.

Usage

cellucid_datasets_list(viewer)

Arguments

viewer

A viewer cellucid_view() or cellucid_serve() returned.

Value

A cellucid_action_request, at once and invisibly: the action is sent now, or when the viewer's channel opens. cellucid_action_result(request) returns what it read: a list of my_datasets (Most recently opened first), open (The dataset open now, or null), samples. Cells in it are original positions (0-based rows of the dataset's obs).

Details

The viewer's action datasets.list (Datasets). It reads, and changes nothing: it makes no step of the history.

See also

cellucid_act() sends any action by its type, and cellucid_action_result() collects its answer.

Examples

if (interactive() && requireNamespace("SeuratObject", quietly = TRUE)) {
  data("pbmc_small", package = "SeuratObject")
  viewer <- cellucid_view(SeuratObject::UpdateSeuratObject(pbmc_small))
  request <- cellucid_datasets_list(viewer)
  print(request)
  # cellucid_action_result(request) waits for what it read.
  cellucid_stop(viewer)
}