map_cv: Run a single round of cross-validation of cluster mapping...

View source: R/annotate.R

map_cvR Documentation

Run a single round of cross-validation of cluster mapping using a subset of marker genes

Description

Run a single round of cross-validation of cluster mapping using a subset of marker genes

Usage

map_cv(
  norm.dat,
  cl,
  markers,
  n.bin = 5,
  g.perc = 1,
  method = "median",
  verbose = TRUE
)

Arguments

norm.dat

a normalized data matrix for clustered cells

cl

a cluster factor object for the cells in norm.dat

markers

a character object with the marker genes to use for cross-validation

n.bin

an integer indicating the number of bins to use

g.perc

the fraction of genes to use for validation.

method

Method for mapping. Must be either "median" (Default) or "mean".

verbose

Whether or not to display progress notifications.

Value

a named character object with the results of one round of cross-validation


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.