FindAUC: Calculate AUPRC or AUROC for one dataset

View source: R/FindDoublets.R

FindAUCR Documentation

Calculate AUPRC or AUROC for one dataset

Description

Calculate AUPRC and AUROC based on doublet scores and annotations for different doublet-detection methods on one dataset.

Usage

FindAUC(score.list, label, type)

Arguments

score.list

A list of doublet scores on one dataset.

label

A vector of 0/1 doublet annotations.

type

A character of "AUPRC" or "AUROC".

Value

A list of AUPRCs or AUROCs of different doublet-detection methods.

Examples

auprc.list <- FindAUC(score.list = score.list, label = label.list$`J293t-dm`, type = 'AUPRC')
auroc.list <- FindAUC(score.list = score.list, label = label.list$`J293t-dm`, type = 'AUROC')


xnnba1984/DoubletCollection documentation built on Dec. 10, 2022, 11:13 a.m.