Feature-level analysis - Mean abundance #66
-
Hi, just a question regarding how "mean abundance" is calculated, for example in "generate_taxa_test_pair". Firstly, is it the mean abundance of all samples at across every timepoint, or at a specific timepoint (if time is a variable"? And is it calculated as "relative abundance" or raw counts or is there a transformation ie. log2/clr/css? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @KidneyNode, Thank you for your question about the calculation of "mean abundance" in the
The specific line calculating mean abundance is: avg_abundance = mean(Freq) Where It's important to note that while this mean abundance is used for filtering and reporting, the actual differential abundance analysis in the Let me know if you need any further clarification! Best, |
Beta Was this translation helpful? Give feedback.
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: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.
Calculation method:
The calculation depends on the
feature.dat.type
parameter: