Error in converting seurat object to anndata class
0
0
Entering edit mode
5.5 years ago
Duckula ▴ 50

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 • 2.2k views
ADD COMMENT

Login before adding your answer.

Traffic: 2412 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6