-
Notifications
You must be signed in to change notification settings - Fork 29
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
global test and pairwise comparisons giving pvals of all NA or all 1 #262
Comments
Could you please provide more information regarding your data? |
@Maggie8888 Same thing happened to me. The problem is that global test is not working with random effects. I was able to reproduce the error using the codes below using the same structure/format of my phyloseq object:
Without random effect
Increasing the number of observations 10x and reducing the number of parameters didn't solve the problem
|
These issues might arise because the current implementation of the global test likely assumes a simpler fixed-effect structure. Using packages like |
Hello.
Thank you for creating ANCOM BC2. I am trying to use the method to analyze species-level read counts from shotgun sequencing data from a crossover study in which I have 3 treatment groups (repeated measure) and several other factors to include in the model. I am using the code below. The results of the primary analysis look fine. However, in the global test I get W = 0 and p-val = NA for all taxa. For pairwise comparisons all p-vals = 1 (lfc and SE seem to be calculated fine).
Any guidance on what might be going wrong is appreciated.
Thank you
out = ancombc2(data = phylo,
fix_formula = "Treatment + Sequence + Phase",
rand_formula = "(1|Subject)",
p_adj_method = "BH",
pseudo_sens = TRUE,
prv_cut = 1,
lib_cut = 0,
s0_perc = 0.05,
group = "Treatment",
struc_zero = TRUE,
neg_lb = FALSE,
alpha = 0.20,
n_cl = 1,
verbose = TRUE,
global = TRUE,
pairwise = TRUE,
dunnet = TRUE,
trend = FALSE,
iter_control = list(tol = 0.01, max_iter = 20, verbose = TRUE),
em_control = list(tol = 1e-05, max_iter = 100),
lme_control = lme4::lmerControl(),
mdfdr_control = list(fwer_ctrl_method = "holm", B = 100),
trend_control = list(contrast = NULL, node = NULL, solver = "ECOS", B = 100)
The text was updated successfully, but these errors were encountered: