crossTab-Seurat-method: Gets contingency table

Description Usage Arguments Value Author(s)

Description

Creates a cross table using two columns from the metadata

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'Seurat'
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(s)

Jose Alquicira Hernandez


powellgenomicslab/scPred documentation built on July 16, 2021, 12:14 a.m.