linnarsson-lab / loompy

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

the INF and NaN can not be save by loom format file #151

Open honghh2018 opened 3 years ago

honghh2018 commented 3 years ago

Hi @All,

I why that the NaN and INF can not be saved with loom format, Is it bug. the error showing below:

image

ValueError: INF and NaN not allowed in loom matrix Can anyone help me to fix this ? hanhuihong

slinnarsson commented 3 years ago

This is intentional, part of the loom specification. The original purpose of loom was to store raw single-cell data, which should not contain non-numbers. It may be that the use of loom has expanded and we should begin to allow it (maybe using a flag)