Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R crashes when running random effects on longitudinal data #283

Open
maggiemmurphy opened this issue Sep 4, 2024 · 0 comments
Open

R crashes when running random effects on longitudinal data #283

maggiemmurphy opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@maggiemmurphy
Copy link

I am trying to run ANCOM-BC with the following random effects formula on a longitudinal data set:
foal_ancom_output_refchange = ancombc2(data = foals, assay_name = "counts", tax_level = "Family",
fix_formula = "timepoint_ref", rand_formula = "(1|Animal.ID)",
p_adj_method = "holm", prv_cut = 0.10, lib_cut = 1000, s0_perc = 0.05,
group = "timepoint_ref", struc_zero = TRUE, neg_lb = TRUE,
alpha = 0.05, n_cl = 15, verbose = TRUE,
global = TRUE, pairwise = FALSE,
dunnet = TRUE, trend = FALSE,
iter_control = list(tol = 1e-5, max_iter = 200,verbose = T),
em_control = list(tol = 1e-5, max_iter = 200),
lme_control = lme4::lmerControl(optimizer = "nlminbwrap"),
mdfdr_control = list(fwer_ctrl_method = "holm", B = 100),
trend_control = FALSE)

It usually crashes or takes forever and then eventually comes out with convergence errors or crashes the RStudio interface I use in our HPRC. I believe I have the most up to date packages (ANCOM 2.4.0) and am using R4.3.1.
I have tried running the data without the random effects and it finishes just fine. However, including the random effects, even with a smaller subset of samples, crashing continues and errors keep popping up.

@Maggie8888 Maggie8888 added the enhancement New feature or request label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants