velocyto.py icon indicating copy to clipboard operation
velocyto.py copied to clipboard

Unable to load the content of the .loom file into an interactive session of python

Open shikhagupta68 opened this issue 2 years ago • 0 comments

Hello velocyto team,

While loading the content of the loom file into an interactive session of python I get the following error-

Python 3.7.7 (default, Mar 26 2020, 15:48:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

import velocyto as vcy vlm = vcy.VelocytoLoom("/home/eramamur/shi_kb_indexes/loompy/kallisto/IN46.loom") Traceback (most recent call last): File "/home/eramamur/bin/miniconda3/envs/velocyto-r2/lib/python3.7/site-packages/loompy/layer_manager.py", line 81, in getattr vals = self.dict["storage"][name] KeyError: 'ambiguous'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/home/eramamur/bin/miniconda3/envs/velocyto-r2/lib/python3.7/site-packages/velocyto/analysis.py", line 61, in init self.A = ds.layer["ambiguous"][:, :] File "/home/eramamur/bin/miniconda3/envs/velocyto-r2/lib/python3.7/site-packages/loompy/layer_manager.py", line 71, in getitem return self.getattr(thing) File "/home/eramamur/bin/miniconda3/envs/velocyto-r2/lib/python3.7/site-packages/loompy/layer_manager.py", line 87, in getattr raise AttributeError(f"'{type(self)}' object has no attribute '{name}'") AttributeError: '<class 'loompy.layer_manager.LayerManager'>' object has no attribute 'ambiguous'

I would appreciate your help with fixing this issue. Thank you so much for your help!

Shikha Gupta

shikhagupta68 avatar Apr 09 '22 20:04 shikhagupta68