Renames the cell type columns in deconvolution results to standardized names. It uses predefined mappings to replace specific cell type names with more consistent labels (e.g., "CD8T" to "T cell CD8+"). Unrecognized names are labeled as "other".
Examples
deconv_results <- data.frame(CD8T = c(0.1, 0.2), CD4T = c(0.3, 0.4))
rename_cell_types(deconv_results)
#> T cell CD8+ T cell CD4+
#> 1 0.1 0.3
#> 2 0.2 0.4