Entering edit mode
3.4 years ago
chi.delta
▴
40
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 :)
We need the full code used (to retrieve the reference data, etc), and your
sessionInfo()
. This is a crosspost of the github issue (which is fine, Aaron is just more likely to figure it out and respond there before I do here, so a trail is helpful).Thanks a lot for your prompt response, here is the code to generate my seurat clusters:
and my session info:
How are you getting the reference data (
immgen
)?Oh yes sorry, I get an error there that I didnt notice..
This is a problem with your R environment. Does
BiocManager::valid()
clear okay?