Creates a cross table using two columns from the metadata

crossTab(
  object,
  true = NULL,
  pred = NULL,
  output = c("counts", "fraction", "prop"),
  digits = 2
)

Arguments

object

Seurat object

true

Column name in meta.data slot that corresponds to the true known classes

pred

Column name in meta.data slot that corresponds to the predicted classes if they have been assigned independently from the scPredict() function

output

Return counts, fraction, or proportions? Default: counts

digits

If proportions are returned, number of digits to round numbers

Value

A contingency table

Author

Jose Alquicira Hernandez