This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in converting seurat object to anndata class

Hi everyone, I would like to convert my seurat object to an anndata format and for that I am using the following code

Convert(from = Geissmann_Seurat,
        to = "anndata", 
        filename = "Seurat_object_for_python.h5ad",
        chunk.dims = "auto",
        overwrite = F,
        display.progress = T)

But I receive the following error:

Error in py_call_impl(callable, dots$args, dots$keywords) :

ValueError: Variables annot. var must have number of columns of X (23169), but has 0 rows.

Is something wrong in my seurat object or does anyone has an idea what can be the source of the problem?

Thanks alot

seurat python r rna-seq

0 answers

No answers yet.

Log in to answer this question.