PeteHaitch / DelayedMatrixStats

A port of the matrixStats API to work with DelayedMatrix objects from the DelayedArray package
Other
15 stars 7 forks source link

Provide support for different realization strategies (via BACKEND) #11

Open PeteHaitch opened 7 years ago

PeteHaitch commented 7 years ago

E.g.,

colSums2 <- function(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), BACKEND = "auto",  ...)

where backend = "auto" (or something similarly named) makes a sensible automatic choice based on backend of x.

PeteHaitch commented 7 years ago

Especially important for methods that return an object of the same size as input, e.g. colCummaxs()

PeteHaitch commented 7 years ago

Will add support once there are some more backend-aware methods, e.g., colCummaxs,HDF5Matrix-method (beachmat supports returning a HDF5Matrix)