Allow DelayedArray offset when combining size factors and offset#68
Allow DelayedArray offset when combining size factors and offset#68ycl6 wants to merge 1 commit into
Conversation
|
Thanks. I hope that I will be able to take a look next week, but things are pretty busy for me, so there might be a delay. I was anyways recently investigating what it would take to make glmGamPoi support sparse matrices now that the backend was switched from beachmat to tatami. |
|
Quick question: are there objects that are |
|
Hi @const-ae I kinda simplified a little of my use case. I am using DESeq2 to run DE analysis on scRNA-seq data. My starting count matrix input is a I suppose it is possible there will be cases where users uses glmGamPoi as it is (not within |
This PR addresses the issue when
offsetis aDelayedArrayobject, and the check enterselseand get stopped at Line 91.glmGamPoi/R/estimate_size_factors.R
Lines 83 to 91 in e8799cb
My use case is following DESeq2's LRT workflow with a sparse matrix input and
on_disk = TRUE. We useglmGamPoi::glm_gpto perform fitting and thenglmGamPoi::test_deto test for DE.While running
glm_gp, theoffset_matrixis converted into aDelayedArrayobject at one stage.While running
test_de, it callsglm_gpagain when fitting the reduced model. At this point, thefit$Offsetis aDelayedArrayobject and will failed with following error message