YosefLab / Compass

In-Silico Modeling of Metabolic Heterogeneity using Single-Cell Transcriptomes
BSD 3-Clause "New" or "Revised" License
96 stars 28 forks source link

Numeric entry is not a double precision number (NaN) #84

Open littleju777 opened 2 years ago

littleju777 commented 2 years ago

Hi,

Thank you so much for your excellent work! I have one issue with compass when running my bulk RNA-seq data. My input was normalized CPM and got many negative numbers. I have removed NA NaN NULL using R and python and double-checked manually. And I have run the data seperately to find where the NA is, it localed many genes, but I checked at spreadsheet, it was fine but too many same negative numbers( I set relatetively low standard over low expression gene).

Still it crashed like this:

/data/msun/miniconda3/lib/python3.9/site-packages/pandas/core/arraylike.py:397:` RuntimeWarning: invalid value encountered in log2
  result = getattr(ufunc, method)(*inputs, **kwargs)
Traceback (most recent call last):
  File "/data/msun/miniconda3/bin/compass", line 8, in <module>
    sys.exit(entry())
  File "/data/msun/miniconda3/lib/python3.9/site-packages/compass/main.py", line 616, in entry
    runCompassParallel(args)
  File "/data/msun/miniconda3/lib/python3.9/site-packages/compass/main.py", line 651, in runCompassParallel
    for _ in pool.imap_unordered(partial_map_fun, range(n_samples)):
  File "/data/msun/miniconda3/lib/python3.9/multiprocessing/pool.py", line 870, in next
    raise value
Exception: CPLEX Error  1225: Numeric entry is not a double precision number (NaN).

Could you instruct me how to fix this?

KunFang93 commented 6 months ago

Hi,

I met same issue. I wondered if you find a way to solve it. Thanks~

Best, Kun