cell_type refers to a cell type from the controlled vocabulary (CV). method_cell_type refers to a cell type from a method or dataset.

map_cell_types(use_cell_types, fractions, method_dataset = NULL)

Arguments

use_cell_types

list of cell types from the CV to map to

fractions

Dataframe with cell types as rows and samples as columns. Rownames corresponds to the method_cell_types. A named vector will be coerced into a one-column dataframe.

method_dataset

method or dataset with which fractions was generated. If NULL, the input data already uses the CV.

Value

numeric vector with CV cell types as names