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

global test and pairwise comparisons giving pvals of all NA or all 1 #262

Open
jpkarl opened this issue Apr 17, 2024 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@jpkarl
Copy link

jpkarl commented Apr 17, 2024

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)

@Maggie8888
Copy link
Collaborator

Could you please provide more information regarding your data?

@Maggie8888 Maggie8888 added the help wanted Extra attention is needed label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants