linnarsson-lab / loompy

Python implementation of the Loom file format - http://loompy.org
BSD 2-Clause "Simplified" License
137 stars 36 forks source link

bug in utils.py? #185

Open Jintram opened 2 months ago

Jintram commented 2 months ago

This error was also reported by others that use the SCENIC package. I thought it might be good to raise this issue also here. I'm not familiar with all the ins and outs of this, but using SCENIC, loompy raised the following error, which I think might be a bug:

  File "/home/USERNAME/anaconda3/envs/pyscenic_202404/lib/python3.10/site-packages/loompy/utils.py", line 27, in compare_loom_spec_version
    vf = int("".join(get_loom_spec_version(f).split(".")))
AttributeError: 'numpy.ndarray' object has no attribute 'split'

See also: https://github.com/aertslab/pySCENIC/issues/112 The suggested edit there did fix my issue. That edit was:

Editing the built-in script /path/to/loompy/utils.py by replacing the line 27 with the following code, vf = int("".join(get_loom_spec_version(f)[0].split("."))) help me solve this issue.

Cheers