crossTab: Gets contingency table

Description Usage Arguments Value Author(s)

Description

If the predMeta slot contains a column with the true classes of the cells, builds a contingency table by using this column as reference and comparing it to the predicted classes obtained with scPredict. If an independent column with predicted classes is in the prediction metadata, this column instead of the default classes assigned by scPred can be provided using the pred parameter.

Usage

1
2
crossTab(object, true, pred = NULL, fill = 0, prop = TRUE,
  digits = 2)

Arguments

object

scPred object

true

Column name in predMeta slot that corresponds to the true known classes

pred

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

fill

Value to fill contingency table ff unique cell classes from the true and the predicted columns do not match.

prop

Return proportions or counts? Default: proportions

digits

If proportions are returned, number of digits to round numbers

Value

A contingency table

Author(s)

Jos<c3><a9> Alquicira Hern<c3><a1>ndez


IMB-Computational-Genomics-Lab/scPred documentation built on Jan. 11, 2020, 7:37 a.m.