Skip to content

Feature-level analysis - Mean abundance #66

Answered by cafferychen777
KidneyNode asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @KidneyNode,

Thank you for your question about the calculation of "mean abundance" in the generate_taxa_test_pair function. I've reviewed the code and can provide some clarity:

  1. Timepoint consideration:
    The mean abundance is calculated across all samples, regardless of timepoint. It's not specific to any particular timepoint, even if time is a variable in the analysis.

  2. Calculation method:
    The calculation depends on the feature.dat.type parameter:

    • For "count" data: The raw counts are first normalized to relative abundances using Total Sum Scaling (TSS) before calculating the mean.
    • For "proportion" data: The mean is calculated directly from the input proportions.
    • For "other" data: Th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cafferychen777
Comment options

Answer selected by cafferychen777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants