read_h5ad issue ( python reader raise issue , R reader work but dont read the meta data while raise this warning Warning message: In value[[3L]](cond) : setting 'colData' failed for 'adata1.h5ad': cannot coerce class "list" to a DataFrame #102
Hi ! first thanks for devleoping the tool.
i have issue where i have h5ad files that am trying to read then convert to sce object, the h5ad file have many layers init and many adata.obs columns.
i encountered 3 problem here :
ther read_h5ad only worked when i used the R reader, yielding an warning error message saying failed to read the colData
> adata <- readH5AD("adata1.h5ad",use_hdf5=TRUE,reader= "R")
Warning message:
In value[[3L]](cond) :
setting 'colData' failed for 'adata1.h5ad': cannot coerce class "list"
to a DataFrame
adata <- readH5AD("adata1.h5ad",use_hdf5=TRUE,reader= "python")
Error in py_call_impl(callable, dots$args, dots$keywords) :
AnnDataReadError: Above error raised while reading key '/obsm' of type <class 'h5py._hl.group.Group'> from /.
##another try with hdf5 - false
adata <- readH5AD("adata1.h5ad",use_hdf5=FALSE,reader= "python")
Error in py_call_impl(callable, dots$args, dots$keywords) :
AnnDataReadError: Above error raised while reading key '/layers' of type <class 'h5py._hl.group.Group'> from /.
Detailed traceback:
File "/pasteur/appa/homes/masharaw/.cache/R/basilisk/1.4.0/zellkonverter/1.2.1/zellkonverterAnnDataEnv/lib/python3.7/site-packages/anndata/_io/h5ad.py", line 421, in read_h5ad
d[k] = read_attribute(f[k])
File "/pasteur/appa/homes/masharaw/.cache/R/basilisk/1.4.0/zellkonverter/1.2.1/zellkonverterAnnDataEnv/lib/python3.7/functools.py", line 840, in wrapper
return dispatch(args[0].__class__)(*args, **kw)
File "/pasteur/appa/homes/masharaw/.cache/R/basilisk/1.4.0/zellkonverter/1.2.1/zellkonverterAnnDataEnv/lib/python3.7/site-packages/anndata/_io/utils.py", line 184, in func_wrapper
f"Above error raised while reading key {elem.name!r} of "
## **when running using python option for first time it created a conda enviroment**
> readH5AD("adata1.h5ad",use_hdf5=TRUE,reader= "python")
+ /pasteur/appa/homes/masharaw/.cache/R/basilisk/1.4.0/0/bin/conda 'create' '--yes' '--prefix' '/pasteur/appa/homes/masharaw/.cache/R/basilisk/1.4.0/zellkonverter/1.2.1/zellkonverterAnnDataEnv' 'python=3.7.7' '--quiet' '-c' 'conda-forge'
Collecting package metadata (current_repodata.json): ...working... done
this is the py config , t uses the python from the created conda env, which have the python packages as in the tutorial
Hi ! first thanks for devleoping the tool. i have issue where i have h5ad files that am trying to read then convert to sce object, the h5ad file have many layers init and many adata.obs columns. i encountered 3 problem here : ther read_h5ad only worked when i used the R reader, yielding an warning error message saying failed to read the colData
while the python reader gave an error
this is the py config , t uses the python from the created conda env, which have the python packages as in the tutorial
sessionInfo