Closed nick-youngblut closed 2 weeks ago
Providing the Seurat object as a constant variable works:
fx = function(x, pbmc) {
library(Seurat)
return(pbmc)
}
ret = Q(fx, x=1, const=list("pbmc"=pbmc), pkgs=c("Seurat"), n_jobs=1, job_size=1, memory=12 * 1024)
I see that Q
was trying to iterate through the Seurat object instead of passing it directly. So, one must wrap a single Seurat object in an iterable:
fx = function(x) {
library(Seurat)
return(x)
}
ret = Q(fx, x=c(pbmc), pkgs=c("Seurat"), n_jobs=1, job_size=1, memory=12 * 1024)
reprex:
The output:
It appears that clustermq is not (de)serializing the Seurat v5 object correctly.
sessionInfo