Skip to content

Instantly share code, notes, and snippets.

@vjcitn
Created June 16, 2024 10:14
Show Gist options
  • Save vjcitn/321d35aa1c9da2bd5d6a7931975f620c to your computer and use it in GitHub Desktop.
Save vjcitn/321d35aa1c9da2bd5d6a7931975f620c to your computer and use it in GitHub Desktop.
library(TENxPBMCData)
p68 = TENxPBMCData("pbmc68k")
rownames(p68) = make.names(rowData(p68)$Symbol_TENx, unique=TRUE)
library(scater)
library(scran)
p68 = logNormCounts(p68)
library(celldex)
hpca = HumanPrimaryCellAtlasData()
library(SingleR)
library(BiocParallel)
myb = MulticoreParam(6)
p68s = SingleR(p68, hpca, hpca$label.main, BPPARAM=myb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment