Open ChristophH opened 2 years ago
Hi Christoph,
thanks for the report. Yes, you are right, adding an as.matrix()
somewhere should fix the issue.
However, the deeper issue is that MatrixGenerics
apparently doesn't yet realize that it should treat dgeMatrix
objects as matrix
objects, which would be the more elegant solution. I will try and see if I can fix the problem :)
Hi Constantin, since there is no
colMedians()
method fordgeMatrix
objects, I get the following error fromMatrixGenerics
Casting to
matrix
somewhere around https://github.com/const-ae/transformGamPoi/blob/d408b11e728fa44805a52ad9aa059b54f6b195a4/R/helpers.R#L126-L131 should fix the issue.Best, Christoph
Reproducible example: