Closed danshu closed 5 years ago
Its kind of impossible to guess... you pasted the function code, and the error doesn't say much. Only suggestion I can make is that you post your SingleR object (a small version of it - run it with a small subset of cells).
Its kind of impossible to guess... you pasted the function code, and the error doesn't say much. Only suggestion I can make is that you post your SingleR object (a small version of it - run it with a small subset of cells).
test.nGene200.zip Thanks for your reply! Here is a test case using 100 cells.
Yeah, its failing because you don't have a field 'clusters' in meta.data. You need it for some functionalities in the browser.
Just do something like this:
singler$meta.data$clusters = factor(clusters)
with whatever cluster ids you have.
singler$meta.data$clusters <- as.character(1:100) singler.new = convertSingleR2Browser(singler) Error in initialize(value, ...) : trying to get slot "data" from an object of a basic class ("NULL") with no slots singler$meta.data$clusters <- factor(1:100) singler.new = convertSingleR2Browser(singler) Error in
.rowNamesDF<-
(x, value = value) : invalid 'row.names' length
Still having errors after assigning clusters
Apparently, this function assumed the use of the SInglerSeurat pipeline. I removed this assumption in a new version I just deployed. It works for me on your file.
You can avoid using clusters altogether by setting the variable 'use.singler.cluster.annot' to FALSE.
Thanks! It works now!
Hi,
After generating singler, there is an error running "convertSingleR2Browser". Here is the error message: Error in
.rowNamesDF<-
(x, value = value) : invalid 'row.names' lengthBest, Danshu