map_cell_types: Use a tree-hierarchy to map cell types among different...

View source: R/cell_type_mapping.R

map_cell_typesR Documentation

Use a tree-hierarchy to map cell types among different methods.

Description

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.

Usage

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


grst/immunedeconv documentation built on Nov. 10, 2023, 1:33 a.m.