I was trying to use sceasy to convert my Seurat object to anndata but I get this weird error no slot of name "meta.features" for this object of class "Assay5". For some unknown reason, meta.features is missing. I am using Seurat v5
c <- read.csv("/data/data/pf-ch10x-set4-ch10x-raw.csv", header = T, row.names = 1)
meta <- read.csv("/data/data/pf-ch10x-set4-ch10x-data.csv", header = T,row.names = 1)
## Normalising the reference data
mca <- CreateSeuratObject(counts = as.sparse(c), project = "MCA",meta.data=meta)
mca_subset<- mca[,mca$STAGE_HR %in% c("ring","trophozoite" ,"schizont")]
> sceasy::convertFormat(mca_subset, from="seurat", to="anndata",
+ outFile='filename.h5ad')
Error in ncol(df) :
no slot of name "meta.features" for this object of class "Assay5"
In addition: Warning message:
In .regularise_df(obj@meta.data, drop_single_values = drop_single_values) :
Dropping single category variables:orig.ident, HOST
Hi
I was trying to use
sceasy
to convert my Seurat object toanndata
but I get this weird errorno slot of name "meta.features" for this object of class "Assay5"
. For some unknown reason,meta.features
is missing. I am using Seurat v5