# Picrust 2 KO abundance

**URL:** <https://forum.qiime2.org/t/picrust-2-ko-abundance/20716>\
**Category:** PICRUSt2\
**Tags:** picrust\
**Created:** [September 12, 2021, 5:14pm UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716 "2021-09-12T17:14:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![upasana127](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/u/c67d28/32.png) [@upasana127](https://forum.qiime2.org/u/upasana127)\
**Post date:** [September 12, 2021, 5:14pm UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716/1 "2021-09-12T17:14:06Z")

</div>

Hi Everyone, I am facing problems in KEGG pathways abundances from the predicted KO abundances. I got the output file which is shown here: pathway\_out\_pipeline/KO\_metagenome\_out/pred\_metagenome\_unstrat.tsv.gz.

I am facing problem in getting the KEGG pathway output file. Kindly Suggest me the code which takes unstrap.tsv.gz file as a input file.

---

<div class="post-metadata">

**Author:** ![crusher083](https://forum.qiime2.org/user_avatar/forum.qiime2.org/crusher083/32/9597_2.png) [@crusher083](https://forum.qiime2.org/u/crusher083)\
**Post date:** [September 12, 2021, 5:25pm UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716/2 "2021-09-12T17:25:23Z")

</div>

Hi, Upasana!

Have faced the same problem recently:

1. Unzip the file using  
`gunzip pred_metagenome_unstrat.tsv.gz`
2. Convert tsv to biom using `biom`:  
`biom convert -i pred_metagenome_unstrat.tsv -o converted_table.biom --to-hdf5`
3. Import data into qiime2

```auto
qiime tools import \
--type FeatureTable[Frequency] \
--input-path converted_table.biom \
--output-path ko_predicted_table.qza \
--input-format BIOMV100Format

```

Proceed with analysis using QIIME2.

Cheers.

---

<div class="post-metadata">

**Author:** ![upasana127](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/u/c67d28/32.png) [@upasana127](https://forum.qiime2.org/u/upasana127)\
**Post date:** [September 13, 2021, 8:05am UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716/3 "2021-09-13T08:05:49Z")

</div>

Thanks for your suggestions.

But I am still facing a problem, I have used the QIIME 2021.4 version to carry out the rest of the analysis. And for using q2-picrust 2 plugin i need to install 2021. 2 because the q2-picrust 2 plugin of 2021.4 version is not available as of now.

if you could provide furthers details on using the PICRUST 2 standalone version for carrying out KEGG pathway for KO Abundance. Kindly provide here.

---

<div class="post-metadata">

**Author:** ![crusher083](https://forum.qiime2.org/user_avatar/forum.qiime2.org/crusher083/32/9597_2.png) [@crusher083](https://forum.qiime2.org/u/crusher083)\
**Post date:** [September 13, 2021, 9:00am UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716/4 "2021-09-13T09:00:09Z")

</div>

Hi Upasana,

yes, the picrust was not yet updated to the recent version of QIIME2. The [issue](https://github.com/picrust/picrust2/issues/194) is open on GitHub.  
On [GitHub Wiki](https://github.com/picrust/picrust2/wiki) you may find instructions on how to use PICRUSt2 as a standalone in a separate environment.  
I assumed, that you've already been past this step, as you've obtained the output from PICRUSt2.

Cheers

---

<div class="post-metadata">

**Author:** ![upasana127](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/u/c67d28/32.png) [@upasana127](https://forum.qiime2.org/u/upasana127)\
**Post date:** [September 13, 2021, 9:16am UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716/5 "2021-09-13T09:16:13Z")

</div>

Yes, I have used Picrust 2 standalone version to carried out the analysis and from that only I got pred\_metagenome\_unstrat.tsv.gz file. and I have followed the process that is available in FAQ section but their the code is written for the files in the stratified form and I got in unstratified form. so, I am not getting any idea, how to proceed further to get appropriate results.

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [October 14, 2021, 3:16pm UTC](https://forum.qiime2.org/t/picrust-2-ko-abundance/20716/6 "2021-10-14T15:16:26Z")

</div>

Closed on October 14, 2021, 3:16pm UTC

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