Found a couple of small bugs in CreateBigSingleRObject, but they caused a lot of issues for me. Default parameter min.genes was set to 200, whereas in CreateSinglerObject min.genes was set to 0. This caused issues when combining objects as dimensions to original count matrix was different.
Furthermore, ref.list = list() parameter is not passed on to function CreateSinglerObject so you cannot assign a certain annotation object for CreateBigSingleRObject:
Found a couple of small bugs in CreateBigSingleRObject, but they caused a lot of issues for me. Default parameter min.genes was set to 200, whereas in CreateSinglerObject min.genes was set to 0. This caused issues when combining objects as dimensions to original count matrix was different.
function (counts, annot = NULL, project.name, xy, clusters, N = 10000, min.genes = 200, technology = "10X", species = "Human", citation = "", ref.list = list(), normalize.gene.length = F, variable.genes = "de", fine.tune = T, reduce.file.size = T, do.signatures = F, do.main.types = T, temp.dir = getwd(), numCores = SingleR.numCores) {
--> Fix:
CreateBigSingleRObject=function (counts, annot = NULL, project.name, xy, clusters, N = 10000, min.genes = 0, technology = "10X", species = "Human", citation = "", ref.list = list(), normalize.gene.length = F, variable.genes = "de", fine.tune = T, reduce.file.size = T, do.signatures = F, do.main.types = T, temp.dir = getwd(), numCores = SingleR.numCores) {
Furthermore, ref.list = list() parameter is not passed on to function CreateSinglerObject so you cannot assign a certain annotation object for CreateBigSingleRObject:
singler = CreateSinglerObject(counts[, A], annot = annot[A], project.name = project.name, min.genes = min.genes, technology = technology, species = species, citation = citation, do.signatures = do.signatures, clusters = NULL, numCores = numCores)
--> Fix: