Learn R Programming

symphony (version 0.1.2)

calcPerCellMappingMetric: 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.

Description

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.

Usage

calcPerCellMappingMetric(
  reference,
  query,
  Z_orig = TRUE,
  metric = "mahalanobis"
)

Value

A vector of per-cell mapping metric scores for each cell.

Arguments

reference

Reference object as returned by Symphony buildReference()

query

Query object as returned by Symphony mapQuery()

Z_orig

Define reference distribution using original PCA embedding or harmonized PC embedding

metric

Uses Mahalanobis by default, but added as a parameter for potential future use