Skip to content

Commit

Permalink
set robust=FALSE limma::eBayes as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
zitoa committed Jan 12, 2025
1 parent 677ef15 commit 722679d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/gset-meta.r
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,11 @@ gset.fitContrastsWithLIMMA <- function(gsetX, contr.matrix, design,
message("fitting gset.LIMMA contrasts with design matrix... ")
vfit <- limma::lmFit(gsetX, design)
vfit <- limma::contrasts.fit(vfit, contrasts = contr.matrix)
efit <- limma::eBayes(vfit, trend = trend, robust = TRUE)
## efit <- limma::eBayes(vfit, trend = trend, robust = TRUE)
efit <- try({ limma::eBayes(vfit, trend = trend, robust = TRUE) })
if ("try-error" %in% class(efit)) {
efit <- limma::eBayes(vfit, trend = trend, robust = FALSE)
}

tables <- list()
i <- 1
Expand Down

0 comments on commit 722679d

Please sign in to comment.