map_celltype: Map cell type

View source: R/map_celltype.R

map_celltypeR Documentation

Map cell type

Description

Map cell types to cell ontology terms.

Usage

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)

neurogenomics/MultiEWCE documentation built on Sept. 28, 2024, 2:27 a.m.