Per-cell Confidence Score: Calculates the weighted Mahalanobis distance for the query cells to reference clusters. Returns a vector of distance scores, one per query cell. Higher distance metric indicates less confidence.
calcPerCellMappingMetric(
reference,
query,
Z_orig = TRUE,
metric = "mahalanobis"
)A vector of per-cell mapping metric scores for each cell.
Reference object as returned by Symphony buildReference()
Query object as returned by Symphony mapQuery()
Define reference distribution using original PCA embedding or harmonized PC embedding
Uses Mahalanobis by default, but added as a parameter for potential future use