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

Read Matt's data #1

Closed
mccalluc opened this issue Dec 13, 2019 · 2 comments · Fixed by #6
Closed

Read Matt's data #1

mccalluc opened this issue Dec 13, 2019 · 2 comments · Fixed by #6
Assignees
Labels

Comments

@mccalluc
Copy link
Contributor

@mruffalo is looking into it, but currently we are both hitting an error if we try to read in his data:

>>> import anndata
>>> anndata.read_h5ad('/Users/chuck/Downloads/cluster_marker_genes.h5ad')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/envs/h5ad-to-arrow/lib/python3.7/site-packages/anndata/readwrite/read.py", line 447, in read_h5ad
    constructor_args = _read_args_from_h5ad(filename=filename, chunk_size=chunk_size)
  File "/opt/anaconda3/envs/h5ad-to-arrow/lib/python3.7/site-packages/anndata/readwrite/read.py", line 486, in _read_args_from_h5ad
    _read_key_value_from_h5(f, d, key, chunk_size=chunk_size)
  File "/opt/anaconda3/envs/h5ad-to-arrow/lib/python3.7/site-packages/anndata/readwrite/read.py", line 510, in _read_key_value_from_h5
    _read_key_value_from_h5(f, d[key_write], key + '/' + k, k, chunk_size)
  File "/opt/anaconda3/envs/h5ad-to-arrow/lib/python3.7/site-packages/anndata/readwrite/read.py", line 510, in _read_key_value_from_h5
    _read_key_value_from_h5(f, d[key_write], key + '/' + k, k, chunk_size)
  File "/opt/anaconda3/envs/h5ad-to-arrow/lib/python3.7/site-packages/anndata/readwrite/read.py", line 544, in _read_key_value_from_h5
    key, value = postprocess_reading(key, value)
  File "/opt/anaconda3/envs/h5ad-to-arrow/lib/python3.7/site-packages/anndata/readwrite/read.py", line 541, in postprocess_reading
    value = value.astype(new_dtype)
ValueError: invalid shape in fixed-type tuple.
@mccalluc mccalluc added the NEXT label Dec 13, 2019
@mccalluc mccalluc changed the title Get converstion to arrow working with Matt's data Get conversion to arrow working with Matt's data Dec 13, 2019
@shirey shirey changed the title Get conversion to arrow working with Matt's data Get conversion to working with Matt's data Dec 13, 2019
@mccalluc mccalluc changed the title Get conversion to working with Matt's data Read Matt's data Dec 16, 2019
@mccalluc
Copy link
Contributor Author

mccalluc commented Jan 7, 2020

@mruffalo : Has anything changed here? Is there new data I should try?

@mruffalo
Copy link
Contributor

mruffalo commented Jan 8, 2020

Looks like the same issue as scverse/scanpy#832 -- I was able to read the data on my work desktop after downgrading h5py to version 2.9.0.

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

Successfully merging a pull request may close this issue.

2 participants