I previously worked with
Seurat to annotate my clusters. I have followed the workflow stated here and it all worked fine.
Seurat object is already scaled and normalized.
Now, when trying to do it again, with the same data set,:
sce <- as.SingleCellExperiment(seurat_starsolo) ref <- cells_highquality_ovary.sce pred <- SingleR(test=sce, ref=ref, labels=ref$ident, method = "wilcox", clusters = colData(sce)$ident) seurat_starsolo[["SingleR.labels"]] <- pred$labels
it throws an error:
Error: Cannot add more or fewer cell meta.data information without values being named with cell names
I don't understand why it's not working no, that I haven't change anything.
any help would be appreciated.