scopen icon indicating copy to clipboard operation
scopen copied to clipboard

ValueError: Negative values in data passed to NMF

Open Dominic7227 opened this issue 4 years ago • 1 comments

Hi, I tried the command scopen on my count data (all integers and non-negative), but it threw an error that there exist negative values for NMF input. Then I checked the TF-IDF function you used in the source code, and it showed that the TF-IDF transformation would produce negative values. image

Dominic7227 avatar Nov 17 '21 00:11 Dominic7227

Hi @Dominic7227

Can you provide me with the count data? So I can figure it out. You can replace all the cell and peak names with a random name if you want.

Thanks

lzj1769 avatar Nov 18 '21 16:11 lzj1769

encounter the same issue..

fl-yu avatar Sep 20 '23 00:09 fl-yu

Hi @lzj1769 , I'm encountering the same issue as previous commenters. I installed scopen v1.0.1 (the newest version) from pip. I'm running this on python3.8. I've already checked that my entire input matrix is non-negative. Could you please let me know what you did to fix this?

SidG13 avatar Feb 19 '24 22:02 SidG13

encounter the same issue..

Dududu233 avatar Apr 25 '24 07:04 Dududu233

The problem is solved. You should make sure that your matrix does not contain reads larger than 128, otherwise this statement in utils.py will not work properly. image

Dududu233 avatar May 30 '24 12:05 Dududu233