Skip to content

Commit

Permalink
Fix #306: noise count integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sjfleming committed Apr 5, 2024
1 parent d68c515 commit b73fd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellbender/remove_background/estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _estimation_array_to_csr(index_converter,
row, col = index_converter.get_ng_indices(m_inds=m)
if noise_offsets is not None:
data = data + np.array([noise_offsets.get(i, 0) for i in m])
coo = sp.coo_matrix((data.astype(dtype), (row.astype(np.uint64), col.astype(np.uint8))),
coo = sp.coo_matrix((data.astype(dtype), (row.astype(np.uint64), col.astype(np.uint32))),
shape=index_converter.matrix_shape, dtype=dtype)
coo.sum_duplicates()
return coo.tocsr()
Expand Down

0 comments on commit b73fd56

Please sign in to comment.