R/cell_type_mapping.R
map_cell_types.Rd
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)
list of cell types from the CV to map to
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 or dataset with which fractions
was generated. If NULL, the input data already uses the CV.
numeric vector with CV cell types as names