Hi
I have this error running the h5ad2rds.R file to convert Anndata to RDS.
Rscript ~/Projects/SpatialTranscriptomics/stereoseq/stereoseq_brain_mouse_001/rscript/h5ad2rds.R --infile ./adjusted_seurat_out.h5ad --outfile ./adjusted_seurat_out.rds
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Attaching SeuratObject
Seurat v4 was just loaded with SeuratObject v5; disabling v5 assays and
validation routines, and ensuring assays work in strict v3/v4
compatibility mode
Registered S3 method overwritten by 'SeuratDisk':
method from
as.sparse.H5Group Seurat
Warning: Unknown file type: h5ad
Creating h5Seurat file for version 3.1.5.9900
Adding X as data
Adding X as counts
Adding meta.features from var
Adding X_pca as cell embeddings for pca
Adding X_umap as cell embeddings for umap
Adding spatial as cell embeddings for spatial
Adding gene_exp_leiden to miscellaneous data
Adding hvg to miscellaneous data
Adding raw_cellname to miscellaneous data
Adding raw_counts to miscellaneous data
Adding raw_genename to miscellaneous data
Adding sn to miscellaneous data
[1] "Finished! Converting h5ad to h5seurat file at:"
[2] "./adjusted_seurat_out.h5seurat"
[1] "h5seurat time consuming: 233.897"
Validating h5Seurat file
Initializing Spatial with data
Adding counts for Spatial
Adding feature-level metadata for Spatial
Error: Missing required datasets 'levels' and 'values'
Execution halted
Hi I have this error running the h5ad2rds.R file to convert Anndata to RDS.
My Rsession :