moshpit pipeline differential abundance analysis

Hi all,

I am working on a metatrascriptomic project and for that I am testing moshpit (2025.4).

For now I followed the tutorial to assign taxonomy to reads, and then I used ancom-bc2 to identify differentially abundant features. However, talking with my boss he asked me to avoid the bracken step, because we are not sure on how it transforms the counts in the case of RNA sequences. So my question is, which is the easiest way to get the kraken report into a feature table? I notice there is a 'mosh annotate kraken2-to-mag-features' for the MAG pipeline, is there anything similar for the read assignment pipeline?
Thanks
Luca

1 Like

Hi @llenzi ,
Yes there is the kraken2-to-features action, though this outputs a presence-absence table. Would that work for you?

Just curious: what is your boss's rationale for not trusting bracken with RNA sequences?

Hi @Nicholas_Bokulich
thanks for your reply, unfortunately presence-absence won't work in my case because I need to perform differential abundance testing.

I was looking for some ref for potentially bracken problems on trancriptomics, I will ask t o my boss a better match. But my understanding is that is concern is linked to this thread:

The main point being that bracken normalize on kmers, which are obtained from the genome and assumed to be equally present in the samples. However this may not be true in the case of transcriptome.
Hope it makes sense, but any suggestion counter point is largely appreciated!
Cheers
Luca

Hi @llenzi ,
Thanks for clarifying! Unfortunately it looks like the bracken devs never replied to that issue — would be interesting to get their input.

kraken2-to-features does not output a frequency table because — at least in the context of metagenomics the raw frequencies are skewed by genome size and cannot be used as such. In the context of metatranscriptomics I would also expect the raw counts to be highly skewed. But it could be interesting to expose, to allow correction with other methods. We are always open for contributions if you want to contribute to Q2/moshpit to expand options for metatranscriptomics :wink:

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.