I am trying to convert rds
file (or Seurat object
) to h5ad
files using the following command in R
:
library(scater)
library(Seurat)
library(cowplot)
pbmc_ad <- Convert(from = pbmc, to = "anndata", filename = "results/pbmc3k.h5ad")
in which pbmc
is a Seurat object
. but keep getting the following error:
Error in Convert(from = pbmc, to = "anndata", filename = "results/pbmc3k.h5ad") :
could not find function "Convert"
I made sure that all the libraries are installed completely. do you know what the problem could be?