I do not know how to solve this issue. However, if I run is.null(names(seuratDt@meta.data)), I get FALSE. So I am not sure why the above line is still run. Secondly, names(seuratDt@meta.data) returns column names in the data frame, whereas colnames(count) returns cell barcode. So that is why I got the error above (I have 4074 cells, and my metadata has 8 columns).
Hi, I am using
CreateSinglerSeuratObject()
function and got the following error:I checked the code and the error seems to come from this line:
https://github.com/dviraran/SingleR/blob/4bb890a9b89b284c65f89a0c74fb00c6cc2c3367/R/SingleR.Create.R#L264
I do not know how to solve this issue. However, if I run
is.null(names(seuratDt@meta.data))
, I getFALSE
. So I am not sure why the above line is still run. Secondly,names(seuratDt@meta.data)
returns column names in the data frame, whereascolnames(count)
returns cell barcode. So that is why I got the error above (I have 4074 cells, and my metadata has 8 columns).Is there any way to solve this?
Many thanks