# how do I convert ion torrent .bam file to fastq to import to QIIME 2?

**URL:** https://forum.qiime2.org/t/how-do-i-convert-ion-torrent-bam-file-to-fastq-to-import-to-qiime-2/11519
**Category:** Other Bioinformatics Tools
**Created:** [September 14, 2019, 8:58pm UTC](https://forum.qiime2.org/t/how-do-i-convert-ion-torrent-bam-file-to-fastq-to-import-to-qiime-2/11519 "2019-09-14T20:58:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Victor\_Higareda](https://forum.qiime2.org/user_avatar/forum.qiime2.org/victor_higareda/32/5820_2.png) [@Victor\_Higareda](https://forum.qiime2.org/u/Victor_Higareda)
#### Post date: [September 14, 2019, 8:58pm UTC](https://forum.qiime2.org/t/how-do-i-convert-ion-torrent-bam-file-to-fastq-to-import-to-qiime-2/11519/1 "2019-09-14T20:58:24Z")

</div>

Hello, I also have a bam file output from ion torrent 16s metagenomic kit, but I'm confused about downstream analysis. I want to use qiime2, I am confused about if I have to transform to fastq first. Is this kit given paired end reads? I am pretty new in this analysis

---

<div class="post-metadata">

### Author: ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)
#### Post date: [September 20, 2019, 6:43am UTC](https://forum.qiime2.org/t/how-do-i-convert-ion-torrent-bam-file-to-fastq-to-import-to-qiime-2/11519/2 "2019-09-20T06:43:10Z")

</div>

Hi @Victor_Higareda,

Yes, you will have to transform your bam files into fastq before they can be imported into qiime2. You can always try asking your sequencing facility if they have fastq files instead or recommend something that works with their output. If you have no luck there you can always search for one of the many tools out there dedicated to this. For example: [bedtools here](https://bedtools.readthedocs.io/en/latest/content/tools/bamtofastq.html) or [picard here.](http://broadinstitute.github.io/picard/command-line-overview.html#SamToFastq), though I have never personally used either of these tools.

---

<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 21, 2019, 12:43pm UTC](https://forum.qiime2.org/t/how-do-i-convert-ion-torrent-bam-file-to-fastq-to-import-to-qiime-2/11519/3 "2019-10-21T12:43:12Z")

</div>

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