Closed DarioS closed 4 months ago
Hi @DarioS - thanks for flagging - for now you can add library(BiocParallel)
to your code to resolve this issue.
Hi @DarioS - could you check if the latest master-branch version fixes your issue?
I used devtools' install_github
which succeeded. But, reloading the package didn't solve it. So, I loaded BiocParallel.
library(BiocParallel)
Running GLMM model - this may take a few minutes
Error in testNhoods(MILOdata, design = ~Smoker + (1 | Sample), design.df = design[!is.na(design$Smoker), :
Lowest traceback returned: 5: handle_error(e)
4: h(simpleError(msg, call))
3: .handleSimpleError(function (e)
{
annotated_condition <- handle_error(e)
stop(annotated_condition)
}, "argument is of length zero", base::quote(if (!glmm.control$solver %in%
c("HE", "Fisher", "HE-NNLS")) {
stop(glmm.control$solver, " not recognised - must be HE, HE-NNLS or Fisher")
}))
2: fitGLMM(X = Xmodel, Z = Zmodel, y = Y[i, ], offsets = off.sets,
random.levels = randlevels, REML = reml, dispersion = disper[i],
geno.only = genonly, Kin = kinship, glmm.control = glmm.contr)
1: FUN(...)
It is hard for users to read but I realised that glmm.solver
is mandatory if a formula contains |
. Perhaps an is.null
check?
I am exploring the mixed model functionality. It seems as though there might be a missing function import from BiocParallel.
I am hoping to avoid spurious neighbourhoods with cells originating from only one sample, e.g. John Marioni et al. 2024