# How to get microbial relative contributors for PICRUSt2 result

**URL:** <https://forum.biobakery.org/t/how-to-get-microbial-relative-contributors-for-picrust2-result/5321>\
**Category:** PICRUSt\
**Created:** [May 23, 2023, 10:40am UTC](https://forum.biobakery.org/t/how-to-get-microbial-relative-contributors-for-picrust2-result/5321 "2023-05-23T10:40:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bowornpol](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/bowornpol/32/3364_2.png) [@bowornpol](https://forum.biobakery.org/u/bowornpol)\
**Post date:** [May 23, 2023, 10:40am UTC](https://forum.biobakery.org/t/how-to-get-microbial-relative-contributors-for-picrust2-result/5321/1 "2023-05-23T10:40:24Z")

</div>

I want to know, Is there any way to get microbial contributors for the PICRUSt2 result? After generating pathway abundance, can I trace it back to investigate microbial contributors for each pathway? Is there a command line to do that? One solution that I know, we can calculate relative contributions as the total number of copies of genes mapped to a pathway across all samples per genus over the total number of gene copies assigned to that pathway.

I am grateful for your help.

---

<div class="post-metadata">

**Author:** ![nearinj](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/nearinj/32/2135_2.png) [@nearinj](https://forum.biobakery.org/u/nearinj)\
**Post date:** [June 12, 2023, 1:12pm UTC](https://forum.biobakery.org/t/how-to-get-microbial-relative-contributors-for-picrust2-result/5321/2 "2023-06-12T13:12:57Z")

</div>

Hi @bowornpol ,

Sorry for the late response, but you can indeed generate stratified picrust2 profiles to see what microbes are contributing to each predicted pathway. You can check out the tutorial on how to do this here:

> **[Infer pathway abundances](https://github.com/picrust/picrust2/wiki/Infer-pathway-abundances)**
>
> Code, unit tests, and tutorials for running PICRUSt2 - picrust/picrust2

using the `--per_sequence_contrib` flag

Cheers,  
Jacob
