Giter Club home page Giter Club logo

Comments (6)

FrederickHuangLin avatar FrederickHuangLin commented on June 18, 2024 1

Hi Shrez,

Thanks for your interest in using ANCOMBC!

Please find the following my responses:

res_global = is the output for comparing the overall features that are differentially abundant between the three groups in my case. Can we think of the W statistic as analogous to the F statistic in one-way ANOVA?

You are right! The global test is for testing whether there are some taxa that are differentially abundant in at least one group, in your case, treatment A, B, or C. Intuitively, the test statistic (W) is similar to F statistic in one-way ANOVA.

Is the beta coefficient listed below the two columns treatB or treatC based comparison with treatA (treatB vs treatA; treatC vs treatA)? but there is no comparison between treatB vs treatC. Is this issue associated with the way I have setup the ancombc to run as mentioned above?

Yes! The first level (in your case, treatA) of a categorical value will be set as a reference level by default in R. You can check it by levels(your group variable). So far there is no comparison other than those between the reference level. As you can see, if we aim to test for more comparisons, more price is needed for the issue of multiple comparisons. We are drafting the corresponding methodology, and the ANCOMBC package will be updated once the new paper gets published. (And rest assured, your code looks good!)

How do I interpret the first column the "Intercept"? I understand it is a result of applying linear regression to the differential abundance analysis.

We realized that the "Intercept" column is not informative. We are considering removing it in our next release.

How do I calculate the effect size for each feature?

The coefficients (beta) are "unstandardized effect sizes", and the W statistics are "standardized effect sizes" :)

Best,

Frederick

from ancombc.

shrez28 avatar shrez28 commented on June 18, 2024

Thanks for the explanations, appreciate it. Will look out for the subsequent methods paper.

  1. Just to make sure I understand the effect size based on W statistic; high W statistic (with p/q value being significant) will indicate a large effect size for the corresponding feature.
  2. Can W be negative? I ask this because the W for the res_global output is always positive and values ranging from 0.049 to 174 whereas W from the res output file varies from -10.96 to +10.99. Is the W calculated differently for the global comparison than the pairwise? Is it that in res output the comparison indicates the direction of change with the -/+ sign?
  3. Then, would it be appropriate in interpreting that based on ANCOMBC we can identity the features that are differentially abundant and then compare the relative abundance of the selected features to understand the which group has increased/decreased.
    Thanks once again for getting back,
    Best,
    Shrez

from ancombc.

FrederickHuangLin avatar FrederickHuangLin commented on June 18, 2024

Hi Shrez,

Please find below my response to your questions:

Just to make sure I understand the effect size based on W statistic; high W statistic (with p/q value being significant) will indicate a large effect size for the corresponding feature.

You are right!

Can W be negative? I ask this because the W for the res_global output is always positive and values ranging from 0.049 to 174 whereas W from the res output file varies from -10.96 to +10.99. Is the W calculated differently for the global comparison than the pairwise? Is it that in res output the comparison indicates the direction of change with the -/+ sign?

Yes, the W statistics from the primary result (res), which aims to test for the effects of covariates of interest, can be either positive or negative and its sign indicates the direction; however, as you have realized, the W statistics from the global test (res_global) is always positive since it aims to test whether there exists at least one group that is significantly different from others, with no intention to tell the direction. We will add a new feature of telling the direction for multi-group comparisons in our next paper.

Then, would it be appropriate in interpreting that based on ANCOMBC we can identify the features that are differentially abundant and then compare the relative abundance of the selected features to understand which group has increased/decreased.

It is not recommended to interpret the ANCOMBC results using relative abundances as it is developed specifically for testing (unobserved) absolute abundances in a unit volume of an ecosystem (for example, a tissue of the gut, which is not observable directly ). However, you can always visualize the results using relative abundances and see if changes in the relative abundance and absolute abundances are in the same way or not.

Best,
Huang

from ancombc.

shrez28 avatar shrez28 commented on June 18, 2024

Thanks for your patience and explanation, appreciate it.

Is the W statistic from res out in log scale whereas the W statistic from res global is not in log scale?

It is not recommended to interpret the ANCOMBC results using relative abundances as it is developed specifically for testing (unobserved) absolute abundances in a unit volume of an ecosystem (for example, a tissue of the gut, which is not observable directly ). However, you can always visualize the results using relative abundances and see if changes in the relative abundance and absolute abundances are in the same way or not.

Would a clr transformation on absolute abundance be a more appropriate tool for visualization than relative abundance?

Would it be possible to elaborate on the choice of the FDR correction method, the default method is Holm–Bonferroni compared to BH which is more commonly used in other DA methods. I read the explanation on page 10 of the paper, but couldn't quite understand it.

Best,
Shrez

from ancombc.

FrederickHuangLin avatar FrederickHuangLin commented on June 18, 2024

Hi Shrez,

Sorry for responding late, please find below my responses:

Is the W statistic from res out in log scale whereas the W statistic from res global is not in log scale?

Actually, the test statistics from both the primary analysis and global test are derived from the same log absolute abundances.

Would a clr transformation on absolute abundance be a more appropriate tool for visualization than relative abundance?

I agree! Actually, the ANCOM plug-in in QIIME2 is using clr for visualizing the absolute abundance results. For more information, you can go to the last section of this tutorial.

Would it be possible to elaborate on the choice of the FDR correction method, the default method is Holm–Bonferroni compared to BH which is more commonly used in other DA methods. I read the explanation on page 10 of the paper, but couldn't quite understand it.

That is a great question! Indeed, the BH procedure is more commonly used for FDR control but it assumes that tests are independent or positively regression dependent, which may not be the case for microbiome data. Therefore, for a better FDR control, we turn to use a more conservative Holm–Bonferroni method which does not require any special correlation structure among tests. Although we have demonstrated in our paper (Supplementary Fig. 10) that using the BH procedure in ANCOMBC will not inflate FDR above the nominal level (5%), we let users determine which correction method is better for them based on their own study interests (more rigorous FDR control or more power).

Best,
Frederick

from ancombc.

shrez28 avatar shrez28 commented on June 18, 2024

Hi Frederick,
Thanks for you patience and explanations. Appreciate it.
Best,
Shrez

from ancombc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.