[R]cholmod_l_dense_to_sparse failure status=-4

Viewed 97

I was trying to convert dgeMatrix to dgCMatrix but got this error:

> temp<-as(IMatrix,"dgCMatrix")
Error in asMethod(object) : 
  dense_to_Csparse(<LARGE>): cholmod_l_dense_to_sparse failure status=-4

My dgeMatrix has this information:

> str(IMatrix)
Formal class 'dgeMatrix' [package "Matrix"] with 4 slots
  ..@ x       : num [1:2515323860] 0 0 0 0.0521 0.186 ...
  ..@ Dim     : int [1:2] 24919 100940
  ..@ Dimnames:List of 2
  .. ..$ : NULL
  .. ..$ : chr [1:100940] "5891STDY8642957#TGACAACGTTAGGAAT-1" "5891STDY8642957#CACGTTCTCGATGAAA-1" "5891STDY8642957#CAAGAAATCTACCCGT-1" "5891STDY8642957#GGGCCATTCGATAGCT-1" ...
  ..@ factors : list()

I googled around and couldn't find a solution. Any ideas would be greatly appreciated!

0 Answers
Related