Skip to content

Commit

Permalink
add warning if glmm.solver is NULL and using GLMM
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDMorgan committed Jun 3, 2024
1 parent f752de7 commit d901122
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/testNhoods.R
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,13 @@ testNhoods <- function(x, design, design.df, kinship=NULL,

# I think these need to be logged
offsets <- log(dge$samples$norm.factors)

# if glmm.solver isn't set but is running GLMM
if(is.null(glmm.solver) & isTRUE(is.lmm)){
warning("NULL value for glmm.solver - setting to Fisher. Please set glmm.solver")
glmm.solver <- "Fisher"
}

glmm.cont <- list(theta.tol=max.tol, max.iter=max.iters, solver=glmm.solver)

#wrapper function is the same for all analyses
Expand Down

0 comments on commit d901122

Please sign in to comment.