runAUC.Rd
Run AUCell classification to identify active genesets in scRNAseq sample. Wrapper for AUCell package.
runAUC(
object,
genelist,
assay = DefaultAssay(object),
n.workers = 1,
n.repeats = 5,
n.iterations = 1000,
posterior.p = 0.9,
mixture.analysis = T,
size = autoPointSize(ncol(object)),
reduction = "umap",
...
)
Seurat object
Named list of genesets.
Assay used for expression matrix.
Number of workers for parallelized implementation. Default is 1.
Number of fitting repeats (best fit taken). Default is 5.
Number of fitting iterations per a repeat. Default is 1000.
Posterior distribution membership threshold. Default is 0.9 (e.g., p > 0.9 is member).
logical to perform mixture analysis. Default = T (computationally intensive).
UMAP point size.
reduction used for visualization. Default is "umap".
additional parameters passed to geom_point(...)
list of results along with ggplot handles visualizing class predictions overlaid on UMAP.
AUCell_calcAUC
# get genesets
verhaak.df <- geneSets[["Verhaak_CancerCell_2010"]]
verhaak.list <- wideDF2namedList(verhaak.df)
gsc.df <- geneSets[["Richards_NatureCancer_2021_sc"]]
gsc.list <- wideDF2namedList(gsc.df)
neftel.df <- geneSets[["GBM_Hs_Neftel2019"]]
neftel.list <- wideDF2namedList(neftel.df)
verhaak.list <- lapply(verhaak.list, toupper)
gsc.list <- lapply(gsc.list, toupper)
neftel.list <- lapply(neftel.list, toupper)
# classify cells based on provided genesets
v.auc <- runAUC(object = so.query, genelist = verhaak.list, n.workers = 12)
#> Error in withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning")): object 'so.query' not found
v.auc$plot.auc
#> Error in eval(expr, envir, enclos): object 'v.auc' not found
v.auc$plot.nm
#> Error in eval(expr, envir, enclos): object 'v.auc' not found
v.auc$plot.max.score
#> Error in eval(expr, envir, enclos): object 'v.auc' not found
g.auc <- runAUC(object = so.query, genelist = gsc.list, n.workers = 12)
#> Error in withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning")): object 'so.query' not found
g.auc$plot.auc
#> Error in eval(expr, envir, enclos): object 'g.auc' not found
g.auc$plot.nm
#> Error in eval(expr, envir, enclos): object 'g.auc' not found
g.auc$plot.max.score
#> Error in eval(expr, envir, enclos): object 'g.auc' not found
n.auc <- runAUC(object = so.query, genelist = neftel.list, n.workers = 12)
#> Error in withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) tryInvokeRestart("muffleWarning")): object 'so.query' not found
n.auc$plot.auc
#> Error in eval(expr, envir, enclos): object 'n.auc' not found
n.auc$plot.nm
#> Error in eval(expr, envir, enclos): object 'n.auc' not found
n.auc$plot.max.score
#> Error in eval(expr, envir, enclos): object 'n.auc' not found