fractionCorrectPerNode: Fraction of correct calls per node

View source: R/markerGenesAndMapping.r

fractionCorrectPerNodeR Documentation

Fraction of correct calls per node

Description

This function returns the fraction correctly assigned to each node (as defined that the actual and predicted cluster are both in the same node)

Usage

fractionCorrectPerNode(
  dendIn,
  clActual,
  clPredict,
  minCount = 0.1,
  defaultSum = -1,
  out = NULL
)

Arguments

dendIn

dendrogram for mapping. Ignored if minimizeHeight=FALSE

clActual

character vector of actual cluster assignments

clPredict

character vector of predicted cluster assignments

minCount

set to 0 results from clusters with fewer than this number of cells (default is to consider all clusters)

defaultSum

value to return in cases where there are fewer than minCount cells in the actual cluster (e.g., cases that aren't considered at all)

out

required for recursive function. Do not set!

Value

matrix of two columns: (1) node name and (2) the fraction of cells in that node that are correctly assigned


AllenInstitute/mfishtools documentation built on July 5, 2023, 4:20 p.m.