SingleR annotation of seurat clusters

0

Hello!

I am running the following code in order to annotate my seurat clusters

SingleR(GetAssayData(seu_fin, assay = "RNA", slot = "data"), clusters = Idents(seu_fin),ref = immgen, labels = immgen$label.fine)

or

SingleR(as.SingleCellExperiment(seu_fin), ref=immgen, labels=immgen$label.main, clusters=Idents(seu_fin))

but I am getting in both cases i get the following error:

Error in `rownames<-`(`*tmp*`, value = tolower(rownames(ref_data))) : 
  attempt to set 'rownames' on an object with no dimensions

Is any way to deal wit this? Thanks 🙂


seurat


singleR


10x

• 180 views



Source link