This ends up successul and I have a list of SCTransformed objects. However, when I try another list that is subsetted for specific cell types then I get the following error:
_subset.obj.list<-lapply(subset.obj.lis,FUN=SCTransform)
Calculating cell attributes from input UMI matrix: log_umi
Error in row_gmean(umi, eps = gmeaneps) :
matrix x needs to be of class matrix or dgCMatrix
The original list and subsetted list are both 36 different Seurat objects. The SCTransform works on the first 2 subsetted Seurat objects in the list and gives the error on the 3rd object. What could be the problem?
Hi, I have a list of seurat objects that I'm trying to apply SCTransform in this way:
objects.list<-lapply(objects.list,FUN=SCTransform)
This ends up successul and I have a list of SCTransformed objects. However, when I try another list that is subsetted for specific cell types then I get the following error:
_subset.obj.list<-lapply(subset.obj.lis,FUN=SCTransform) Calculating cell attributes from input UMI matrix: log_umi Error in row_gmean(umi, eps = gmeaneps) : matrix x needs to be of class matrix or dgCMatrix
The original list and subsetted list are both 36 different Seurat objects. The SCTransform works on the first 2 subsetted Seurat objects in the list and gives the error on the 3rd object. What could be the problem?