You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a question about how to use MAST, or how to interpret the output please submit a question to the bioconductor support
site so that others can
benefit from the discussion. Please do not use github issues.
Otherwise
Please briefly describe your problem and what output you expect.
I'd like to use MAST with sample ID as a random effect. When I include anything in the hook parameter as in section 4.2 of the MAIT tutorial, the ZlmFit object becomes full of NAs and no residuals are accessible. In the summary table created by msummary <- summary(zlmResidDE, doLRT = lrt_name, parallel = TRUE), all fold change values are NaN while everything else is NA. Below is the code I use to attempt a zlm model with residual hook.
Where most values are NA, and the hookOut slot is NULL for each gene.
When I don't include hook, the ZlmFit object is populated with data, and the summary table builds properly, but no residuals are stored. The code used to build the model without residual hook is:
Viewing the ZlmFit object created by that code shows this:
I attempted to run the residual hook function line by line to better understand what's happening, and I noticed warnings after the commands class(x@fitC) <- c("glm","lm") and class(x@fitD) <- c("bayesglm","glm","lm") that said these objects would no longer be S4 objects. I wondered if that class change was breaking a subsequent operation that expected an S4 object, so I attempted to run a modified version by cloning this repository, building and loading the package locally, and redefining combined_residuals_hook() without those two class change commands, but that doesn't appear to have solved it, as including the hook parameter still introduces NAs and doesn't store residuals. Below is my output from sessionInfo():
it looks like it wasn't written to work with lme4 objects. You might be able to adapt that code if you replace various calls to coef with calls to fixef.
If you have a question about how to use MAST, or how to interpret the output please submit a question to the bioconductor support
site so that others can
benefit from the discussion. Please do not use github issues.
Otherwise
Please briefly describe your problem and what output you expect.
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.
Brief description of the problem
I'd like to use MAST with sample ID as a random effect. When I include anything in the
hook
parameter as in section 4.2 of the MAIT tutorial, the ZlmFit object becomes full ofNA
s and no residuals are accessible. In the summary table created bymsummary <- summary(zlmResidDE, doLRT = lrt_name, parallel = TRUE)
, all fold change values areNaN
while everything else is NA. Below is the code I use to attempt a zlm model with residual hook.And the produced ZlmFit object looks like this:
Where most values are
NA
, and thehookOut
slot isNULL
for each gene.When I don't include
hook
, the ZlmFit object is populated with data, and the summary table builds properly, but no residuals are stored. The code used to build the model without residual hook is:Viewing the ZlmFit object created by that code shows this:
I attempted to run the residual hook function line by line to better understand what's happening, and I noticed warnings after the commands
class(x@fitC) <- c("glm","lm")
andclass(x@fitD) <- c("bayesglm","glm","lm")
that said these objects would no longer be S4 objects. I wondered if that class change was breaking a subsequent operation that expected an S4 object, so I attempted to run a modified version by cloning this repository, building and loading the package locally, and redefiningcombined_residuals_hook()
without those two class change commands, but that doesn't appear to have solved it, as including thehook
parameter still introducesNA
s and doesn't store residuals. Below is my output fromsessionInfo()
:The text was updated successfully, but these errors were encountered: