jmbreda / Sanity

Filtering of Poison noise on a single-cell RNA-seq UMI count matrix
GNU General Public License v3.0
67 stars 11 forks source link

Fix uninitialized G variable in Get_G_C_MTX #3

Closed gokceneraslan closed 4 years ago

gokceneraslan commented 4 years ago

G variable in Get_G_C_MTX function is uninitialized, so when I run Sanity on an mtx file I get the following error:

File type : mtx
There were 28096 rows
There were -2147455552 genes and 40164 cells
terminate called after throwing an instance of 'std::bad_array_new_length'
  what():  std::bad_array_new_length
Aborted (core dumped)

This PR adds one line that initializes it.