Closed araksm closed 6 years ago
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
During handling of the above exception, another exception occurred:
(...)
AttributeError: 'list' object has no attribute 'tolist'
That's a new one.
Hmm... is there any other information that could be helpful? Could it be related to the loom file quality? Are there any checks I could do?
Hi
Sorry for your troubles. Would you mind sending me the loom file so I can troubleshoot? I suspect there may be some incompatibility of data types.
Have you tried with another loom file, e.g. from loom.linnarssonlab.org ? Those files are known to work, so you can figure out if it's the file or the code that is the problem.
Yes, I can view loom files from loom.linnarssonlab.org without any errors.
Please find attached the file I'm using. It was generated from a Seurat object using loomR R package (https://satijalab.org/loomR/loomR_tutorial.html)
Convert(from=obj, to = "loom", filename = "output.loom")
Thank you very much!
Ok, it was due to a subtle difference in how Seurat stores attribute strings. Seurat apparently sometimes stores them as variable-length ascii (technically not conforming to loom specs) which loompy and loom-viewer would read as byte arrays and get confused.
I made a fix so that loompy now understands the variable-length ascii strings, and released it as loompy 2.0.10. Update by doing pip install -U loompy
and make sure you get at least 2.0.10
. Then it should work.
If you had installed loompy from source using pip install -e .
, then a simple git pull
in the loompy directory should be sufficient.
Great! It works now. Thank you for fixing.
I have the same issue with the loom files I downloaded from the mousebrain.org database. My loompy is the updated version, but still getting the error. The files from loom.linnarsson.org opens fine
Hi,
I'm trying to view my loom file in the loom-viewer and am getting an error:
I'm using Python 3.6.0 :: Anaconda 4.3.1 (x86_64) loom v0.32.2
Is there a compatibility issue?
Thank you, Araks