Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble converting SeuratObject to h5ad #174

Open
ncedi12 opened this issue Feb 21, 2024 · 1 comment
Open

trouble converting SeuratObject to h5ad #174

ncedi12 opened this issue Feb 21, 2024 · 1 comment

Comments

@ncedi12
Copy link

ncedi12 commented Feb 21, 2024

Hi there, I've been trying to use the h5Seurat interface for converting a seurat object to h5ad.
But I keep getting the same error

First it creates the h5Seurat file but registers some warnings and errors

SaveH5Seurat(shh, filename = "SHH_tumorHUman.h5Seurat")

Creating h5Seurat file for version 3.1.5.9900
Adding counts for RNA
Adding data for RNA
No variable features found for RNA
No feature-level metadata found for RNA
Adding counts for SCT
Adding data for SCT
Adding scale.data for SCT
Adding variable features for SCT
No feature-level metadata found for SCT
Error in slot(object = object, name = x) :
no slot of name "median_umi" for this object of class "SCTModel"

when I run the conversion, this is the response

Convert("Obj_tum.h5Seurat", dest = "h5ad")

Validating h5Seurat file

Warning: Cannot find dataset with cell names

Warning: 'assay' not set, setting to 'RNA'

Error: Unknown file type: h5seurat

Pls advise on why this error keeps happening
Session info:

R version 4.2.2 (2022-10-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 14.3

other attached packages:
[1] SeuratDisk_0.0.0.9021 lubridate_1.9.3 forcats_1.0.0
[4] stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2
[7] readr_2.1.4 tidyr_1.3.1 tibble_3.2.1
[10] ggplot2_3.4.4 tidyverse_2.0.0 jsonlite_1.8.8
[13] pbmcref.SeuratData_1.0.0 pbmcsca.SeuratData_3.0.0 singscore_1.18.0
[16] GSEABase_1.60.0 graph_1.76.0 annotate_1.76.0
[19] XML_3.99-0.16 AnnotationDbi_1.60.2 IRanges_2.32.0
[22] S4Vectors_0.36.2 Biobase_2.58.0 BiocGenerics_0.44.0
[25] patchwork_1.2.0 ifnb.SeuratData_3.0.0 SeuratData_0.2.2.9001
[28] Azimuth_0.5.0 shinyBS_0.61.1 Seurat_5.0.1
[31] SeuratObject_5.0.1 sp_2.1-3

@FlowerPurr
Copy link

Hi there, I've been trying to use the h5Seurat interface for converting a seurat object to h5ad. But I keep getting the same error

First it creates the h5Seurat file but registers some warnings and errors

SaveH5Seurat(shh, filename = "SHH_tumorHUman.h5Seurat")

Creating h5Seurat file for version 3.1.5.9900 Adding counts for RNA Adding data for RNA No variable features found for RNA No feature-level metadata found for RNA Adding counts for SCT Adding data for SCT Adding scale.data for SCT Adding variable features for SCT No feature-level metadata found for SCT Error in slot(object = object, name = x) : no slot of name "median_umi" for this object of class "SCTModel"

when I run the conversion, this is the response

Convert("Obj_tum.h5Seurat", dest = "h5ad")

Validating h5Seurat file

Warning: Cannot find dataset with cell names

Warning: 'assay' not set, setting to 'RNA'

Error: Unknown file type: h5seurat

Pls advise on why this error keeps happening Session info:

R version 4.2.2 (2022-10-31) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS 14.3

other attached packages: [1] SeuratDisk_0.0.0.9021 lubridate_1.9.3 forcats_1.0.0 [4] stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2 [7] readr_2.1.4 tidyr_1.3.1 tibble_3.2.1 [10] ggplot2_3.4.4 tidyverse_2.0.0 jsonlite_1.8.8 [13] pbmcref.SeuratData_1.0.0 pbmcsca.SeuratData_3.0.0 singscore_1.18.0 [16] GSEABase_1.60.0 graph_1.76.0 annotate_1.76.0 [19] XML_3.99-0.16 AnnotationDbi_1.60.2 IRanges_2.32.0 [22] S4Vectors_0.36.2 Biobase_2.58.0 BiocGenerics_0.44.0 [25] patchwork_1.2.0 ifnb.SeuratData_3.0.0 SeuratData_0.2.2.9001 [28] Azimuth_0.5.0 shinyBS_0.61.1 Seurat_5.0.1 [31] SeuratObject_5.0.1 sp_2.1-3

Hello, I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants