
Assign fine cell type labels from enrichment scores
Source:R/method-L3_subcluster.R
assign_fine_labels.RdSelects the best-matching fine cell type label for each cluster based on minimum Fisher p-value, with ties broken by descending overlap similarity.
Arguments
- cluster_col
Factor or character vector. Cluster identifiers per cell, typically a
colDatacolumn from aSingleCellExperiment. Values must matchcluster_nameentries inscores.- scores
A
data.frameas returned byscore_markers_against_panel, with columnscluster_name,marker_set_name,fisher_p, andsimilarity.