The bioBakery help forum

How to calculate alpha beta diversity

Hi @fbeghini
Is it possible to calculate the alpha-beta diversity analyses using the metaphlan3 pipeline? If yes how I can I do so?

Thanks
Saraswati

Hi Saraswati,
No, MetaPhlAn does not include a script for alpha diversity calculation. Iā€™d suggest you to check some R packages like vegan or phyloseq.

On a related note, how can you use MetaPhlAn data to calculate alpha diversity since it is marker based not read based?

Thanks,

Sarah

1 Like

Thanks @Sarah_Highlander for putting it very straightforward.

You can treat species like OTUs. alpha.div from rbiom (https://cmmr.github.io/rbiom/reference/alpha.div.html) can take a species x sample dataframe and estimate several indexes.

į§