question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't read loom files with scv.read>=0.1.4

See original GitHub issue

Hello, I previously did some tries on scvelo 0.1.4. Running scvelo 0.1.11.dev6+133abe9 after a git pull. I can’t read loom files anymore. I tried on my files and from downloaded examples:

adata = scv.read('data/ForebrainGlut/hgForebrainGlut.loom', cleanup=True,
sparse=True, cache=True, backup_url='http://pklab.med.harvard.edu/velocyto/hgForebrainGlut/hgForebrainGlut.loom')

adata = scv.read("data/DentateGyrus/10X43_1.loom", sparse=True,
cache=True, backup_url="http://pklab.med.harvard.edu/velocyto/DG1/10X43_1.loom")
WARNING:root:initialising LoomConnection to data/ForebrainGlut/hgForebrainGlut.loom failed, closing file connection
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/scanpy/readwrite.py", line 78, in read
    backup_url=backup_url, cache=cache, **kwargs)
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/scanpy/readwrite.py", line 445, in _read
    adata = read_loom(filename=filename, **kwargs)
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/anndata/readwrite/read.py", line 152, in read_loom
    with connect(filename, 'r') as lc:
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/loompy/loompy.py", line 957, in connect
    return LoomConnection(filename, mode)
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/loompy/loompy.py", line 83, in __init__
    raise e
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/loompy/loompy.py", line 72, in __init__
    self.row_graphs = loompy.GraphManager(self, axis=0)
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/loompy/graph_manager.py", line 34, in __init__
    ds._file.create_group(a)
  File "/path/to/local/python/python-dev/lib/python3.6/site-packages/h5py/_hl/group.py", line 60, in create_group
    gid = h5g.create(self.id, name, lcpl=lcpl, gcpl=gcpl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5g.pyx", line 161, in h5py.h5g.create
ValueError: Unable to create group (no write intent on file)

I tried to checkout to 0.1.10 and 0.1.6, same issue. Are they new (missing) library requirements since v0.1.4?

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Mkebedecommented, Nov 13, 2019

Thank you for the suggestion. For me the issue was that the LoomValidator was outdated and incompatible with the latest version. Uninstalling and reinstalling the loom package seemed to address the issue.

For anyone else having that issue, I did:

pip uninstall loom
pip install loom

Thank you again for your help!

1reaction
VolkerBergencommented, Nov 9, 2019

Try with scv.read('filename' , validate=False).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read loom file in scanpy - Biostars
I can read loom file with loompy seamlessly. They are in the latest versions (Seurat_3.0.0.9000, loomR_0.2.1.9000, scanpy==1.4). Should I add ...
Read more >
Taking too long to read loom files into scanpy - Discourse
Hi everyone, I am reading a loom file created in Seurat into Scanpy but it takes over 30 minutes to read the file....
Read more >
News — JRuby.org
#4844 - Potential bug in internal/runtime/ThreadService? #4843 - popen doesn't work on Windows; #4842 - copy_stream to SSL seems to read the file...
Read more >
Tutorial 4 : How to work with Loom files created by ASAP
Tutorial 4 : How to work with Loom files created by ASAP. In this tutorial we will show you how to use the...
Read more >
Shankweiler, Donald Snvestigation of Reversal Errors ... - ERIC
reversible letters presented in isolation occurred infrequently, their optical properties cannot he solely responsible for their confusions in reading.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found