R/alignCodexWithScRNAseq.R
buildClassifierFromSeurat.Rd
Prepare the KNN classifier from a given Seurat object.
buildClassifierFromSeurat(
seuObj,
markerList,
doLog2transform = TRUE,
assay = "RNA",
layer = "count"
)
An gknn object
if (FALSE) { # \dontrun{
markers <- readRDS(system.file('extdata', 'markers.name.map.rds',
package='cdQuPath'))
pseudo <- readRDS(system.file('extdata', 'pseudobulk.scRNAseq.rds',
package='cdQuPath'))
library(future.apply)
plan(multisession)
buildClassifierFromSeurat(pseudo, markers)
} # }