From 09599cdef05456c11165587198cb5fa1074f2915 Mon Sep 17 00:00:00 2001 From: I-Hsuan Lin <9032946+ycl6@users.noreply.github.com> Date: Fri, 24 Jan 2025 16:16:31 +0000 Subject: [PATCH] Allow DelayedArray offset --- R/estimate_size_factors.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/estimate_size_factors.R b/R/estimate_size_factors.R index b9e56c4..26e82f2 100644 --- a/R/estimate_size_factors.R +++ b/R/estimate_size_factors.R @@ -83,7 +83,7 @@ combine_size_factors_and_offset <- function(offset, size_factors, Y, verbose = F if(is.matrix(offset)){ stopifnot(dim(offset) == c(n_genes, n_samples)) offset_matrix <- offset - }else if(is(offset, "HDF5Matrix")){ + }else if(is(offset, "HDF5Matrix") || is(offset, "DelayedArray")){ stopifnot(dim(offset) == c(n_genes, n_samples)) stopifnot(make_offset_hdf5_mat) offset_matrix <- offset