Skip to contents

Get cell metadata

Usage

# S3 method for class 'MarchRDataset'
get_cell_metadata(proj)

# S3 method for class 'MarchRProject'
get_cell_metadata(
  proj,
  dataset_names = character(0),
  add_dataset_column = TRUE,
  append_dataset_names = FALSE
)

Arguments

proj

(MarchRDataset or MarchRProject) Object to get metadata from.

dataset_names

(character) Names of datasets to get metadata from. If not given, all datasets are used.

add_dataset_column

(logical) If TRUE, add a column with the dataset name to the metadata.

append_dataset_names

(logical) If TRUE, append dataset names to cell names. Helps to distinguish cells with the same name across datasets.

Value

(data.frame or matrix) Cell metadata. If proj is a MarchRProject, returns metadata concatted across all datasets.

Details

Requires the metadata from every dataset to have the same metadata feature names.