|
31 | 31 | #' @param approx.knot (Optional) Should the knot space be reduced in order to improve computation time? Defaults to TRUE.
|
32 | 32 | #' @param n.potential.basis.fns (Optional) The maximum number of possible basis functions. See the parameter \code{M} in \code{\link{marge2}}. Defaults to 5.
|
33 | 33 | #' @param n.cores (Optional) If running in parallel, how many cores should be used? Defaults to 4L.
|
34 |
| -#' @param glm.backend (Optional) Character specifying which GLM-fitting backend should be used. Must be one of "MASS" or "speedglm". Defaults to "MASS". |
35 | 34 | #' @param verbose (Optional) A boolean indicating whether a progress bar should be printed to the console. Defaults to TRUE.
|
36 | 35 | #' @param random.seed (Optional) The random seed used to initialize RNG streams in parallel. Defaults to 312.
|
37 | 36 | #' @details
|
@@ -74,7 +73,6 @@ testDynamic <- function(expr.mat = NULL,
|
74 | 73 | random.seed = 312) {
|
75 | 74 | # check inputs
|
76 | 75 | if (is.null(expr.mat) || is.null(pt)) { stop("You forgot some inputs to testDynamic().") }
|
77 |
| - if (!glm.backend %in% c("MASS", "speedglm")) { stop("Please choose a valid GLM backend for model fitting.") } |
78 | 76 |
|
79 | 77 | # get raw counts from SingleCellExperiment or Seurat object & transpose to cell x gene dense matrix
|
80 | 78 | if (is.null(genes)) {
|
@@ -192,8 +190,7 @@ testDynamic <- function(expr.mat = NULL,
|
192 | 190 | cor.structure = cor.structure,
|
193 | 191 | sandwich.var = ifelse(is.null(gee.bias.correction.method), FALSE, TRUE),
|
194 | 192 | M = n.potential.basis.fns,
|
195 |
| - approx.knot = approx.knot, |
196 |
| - glm.backend = glm.backend, |
| 193 | + approx.knot = approx.knot, |
197 | 194 | return.basis = TRUE)
|
198 | 195 | }, silent = TRUE)
|
199 | 196 | } else if (is.glmm) {
|
|
0 commit comments