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

h5ad to Seurat conversion "AttributeError: 'dict' object has no attribute 'dtype'" #77

Open
jestlin15 opened this issue Jul 20, 2023 · 2 comments

Comments

@jestlin15
Copy link

jestlin15 commented Jul 20, 2023

Hi, I am trying to convert a h5ad file to Seurat object but am faced with this error can I please please get some help.

This is my inout code :
sceasy::convertFormat("GSE175533_sceasy_hay.h5ad", from="anndata", to="seurat",
outFile='GSE175533_sceasy_hay.rds')

Python Exception Message
Traceback (most recent call last):
File "/python3.9/site-packages/anndata/readwrite/read.py", line 447, in read_h5ad
File "/python3.9/site-packages/anndata/readwrite/read.py", line 502, in _read_args_from_h5ad
File "/python3.9/site-packages/anndata/core/anndata.py", line 2157, in _args_from_dict
AttributeError: 'dict' object has no attribute 'dtype'

── R Traceback

  1. sceasy::convertFormat(...)
  2. sceasy (local) func(obj, outFile = outFile, main_layer = main_layer, ...)
  3. anndata$read_h5ad(inFile)
  4. reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)

R version 4.1.2

GSE h5ad Data download from : https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE175533

@lisch7
Copy link

lisch7 commented Oct 30, 2023

same issue

@TamiaChin
Copy link

This is an issue concerning anndata package.
conda install "anndata>=0.7" -c conda-forge
It should fix

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

No branches or pull requests

3 participants