find_threshold: Find threshold for reconstruction error

Description Usage Arguments Value Author(s) Examples

View source: R/reconstruction_error.R

Description

Determines threshold for reconstruction errors computed from multiple resamples

Usage

1
2
3
4
5
6
7
8
9
find_threshold(
  object,
  labels,
  nfolds = 5,
  fn_perc = 0.01,
  seed = 66,
  scaledata = FALSE,
  verbose = FALSE
)

Arguments

object

Seurat object used as reference

labels

Response variable

nfolds

Number of resamples

fn_perc

TBD

seed

Numeric seed to create resamples

verbose

Display Seurat messages?

Value

A numeric value corresponding to the threshold for reconstruction error

Author(s)

Lieke Michielsen and Jose Alquicira-Hernandez

Examples

1
2
3
library(scPred)
data(pbmc_1)
res <- find_threshold(pbmc_1, pbmc_1$cell_type)

joseah/HierscPred documentation built on Nov. 25, 2021, 12:20 p.m.