fractionCorrectWithGenes: Fraction of cells correctly assigned

View source: R/markerGenesAndMapping.r

fractionCorrectWithGenesR Documentation

Fraction of cells correctly assigned

Description

This function takes as input an ordered set of marker genes (e.g., from at iterative algorithm), and returns a vector showing the fraction of cells correctly mapped.

Usage

fractionCorrectWithGenes(
  orderedGenes,
  mapDat,
  medianDat,
  clustersF,
  verbose = FALSE,
  plot = TRUE,
  return = TRUE,
  ...
)

Arguments

orderedGenes

an ordered list of input genes (e.g. from an iterative algorithm)

mapDat

normalized data of the mapping (=reference) data set.

medianDat

median value for each leaf

clustersF

cluster calls for each cell

verbose

whether or not to show progress in the function

plot

if TRUE, plotCorrectWithGenes is run

return

if TRUE, the value is returned

...

parameters passed to plotCorrectWithGenes (if plot=TRUE)

Value

a vector showing the fraction of cells correctly mapped to each cluster


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