Map cell types to cell ontology terms.

map_celltype(
  results,
  input_col = "CellType",
  map = KGExplorer::get_data_package(package = "MSTExplorer", name = "celltype_maps"),
  rm_prefixes = c("Adult", "Fetus", "HESC"),
  by = c("ctd", "author_celltype"),
  add_stage = TRUE
)

Arguments

results

The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results

input_col

Column to use for linking with the map data.

map

1:1 mapping between cell ontology terms and cell type names used in results.

rm_prefixes

Prefixes to remove from cell type names in input_col before performing mapping.

by

Columns to merge on.

add_stage

Add developmental stage information.

Examples

results <- load_example_results()
results2 <- map_celltype(results = results)
#> Mapping cell types to cell ontology terms.
#> Adding stage information.