# Shotgun metegenomics analysis on google colab

**URL:** https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184
**Category:** General Discussion
**Created:** [February 8, 2024, 4:42am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184 "2024-02-08T04:42:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ktalaat55](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/k/e9c0ed/32.png) [@Ktalaat55](https://forum.qiime2.org/u/Ktalaat55)
#### Post date: [February 8, 2024, 4:42am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/1 "2024-02-08T04:42:31Z")

</div>

Hello,  
I'm having trouble finding a guide on how to analyze shotgun metagenomics data using QIIME 2 on google coab. Specifically, I'm looking for a tutorial that takes raw sequencing data and converts it into a matrix showing sample IDs and abundances and explore diversities. If anyone knows of such a resource, I'd be very grateful  
Thanks all

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [February 8, 2024, 7:12am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/2 "2024-02-08T07:12:35Z")

</div>

Hi @Ktalaat55 ,

DId you check the tutorials page of the forum? Please see here:

> [@draft tutorial for shotgun metagenomics with QIIME 2](https://forum.qiime2.org/t/draft-tutorial-for-shotgun-metagenomics-with-qiime-2/28040):
>
> Hi all, Following on our announcement of the first alpha release of the QIIME 2 Shotgun Metagenomics Distribution, we are starting to develop some alpha (early draft) tutorials. At the moment, we're going to keep these on GitHub and link to specific documents that you can view there. Before too long, we'll be starting to build and host Jupyter Books that cover tutorials for the different QIIME 2 distributions that are available. So, here's a first iteration of a [bring-your-own-data tutorial co…](https://github.com/caporaso-lab/q2-books/blob/241919a8cb7c9ea2ffcd3504bc28b46342342050/q2-shotgun/q2-shotgun/00-tutorial.md)

Diversity analyses are not included, but once you have a feature table you can do diversity and other analyses as described in the regular QIIME 2 tutorials on [qiime2.org](http://qiime2.org)

Good luck!

---

<div class="post-metadata">

### Author: ![Ktalaat55](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/k/e9c0ed/32.png) [@Ktalaat55](https://forum.qiime2.org/u/Ktalaat55)
#### Post date: [February 8, 2024, 7:27am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/3 "2024-02-08T07:27:25Z")

</div>

Thanks for your reply. Yes, I have followed tutorial but I got the following " Error: QIIME 2 has no plugin/command named 'classify-kraken2'.

---" at this command qiime moshpit classify-kraken2   
--i-seqs demux.qza   
--i-kraken2-db /projects/microbiome/biological-reference-data/2023.06.05-k2-plus-pf-.........."

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [February 8, 2024, 9:21am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/4 "2024-02-08T09:21:21Z")

</div>

It sounds like you have not installed the correct QIIME 2 distribution or you have not activated your environment. Please see the installation instructions for q2-shotgun on [qiime2.org](http://qiime2.org)

Good luck!

---

<div class="post-metadata">

### Author: ![Ktalaat55](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/k/e9c0ed/32.png) [@Ktalaat55](https://forum.qiime2.org/u/Ktalaat55)
#### Post date: [February 8, 2024, 9:29am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/5 "2024-02-08T09:29:29Z")

</div>

Thanks i will check the link

---

<div class="post-metadata">

### Author: ![Ktalaat55](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/k/e9c0ed/32.png) [@Ktalaat55](https://forum.qiime2.org/u/Ktalaat55)
#### Post date: [February 9, 2024, 1:04am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/6 "2024-02-09T01:04:09Z")

</div>

hello,  
I have installed qiime2 using !git clone [GitHub - Gibbons-Lab/isb\_course\_2023: Materials and presentation for the 2023 ISB Microbiome course.](https://github.com/gibbons-lab/isb_course_2023) materials i am following this link for shotgun installation [https://library.qiime2.org/plugins/q2-shogun/15/](https://library.qiime2.org/plugins/q2-shogun/15/) and still getting an error /bin/bash: line 1: conda: command not found. I am a little confused on how to properly install qiime2 for shotgun analysis on google colab

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [February 9, 2024, 5:03am UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/7 "2024-02-09T05:03:47Z")

</div>

Hi @Ktalaat55 ,  
The course that you linked to is installing an older release of QIIME 2, and does not install the necessary plugins for shotgun analysis. You must follow the instructions on [qiime2.org](http://qiime2.org) to install the q2-shotgun distribution, as mentioned above.

Colab will not have enough resources for analyzing shotgun data, as only limited resources are provided in each instance.

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [February 13, 2024, 6:52pm UTC](https://forum.qiime2.org/t/shotgun-metegenomics-analysis-on-google-colab/29184/8 "2024-02-13T18:52:09Z")

</div>

An off-topic reply has been split into a new topic: [installing q2-shotgun distribution on windows](https://forum.qiime2.org/t/installing-q2-shotgun-distribution-on-windows/29244)

Please keep replies on-topic in the future.
