# Cutadapt trim iontorrent data

**URL:** <https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212>\
**Category:** User Support\
**Created:** [February 6, 2019, 5:22pm UTC](https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212 "2019-02-06T17:22:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bahti\_yil](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bahti_yil/32/3697_2.png) [@bahti\_yil](https://forum.qiime2.org/u/bahti_yil)\
**Post date:** [February 6, 2019, 5:22pm UTC](https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212/1 "2019-02-06T17:22:05Z")

</div>

Dear Matthew,

I have an Iontorrent 16S data within a single fastq file for 72 samples. I followed the @shwane' s advice and managed to come until the generation of trimmed-seqs.gza file and here are the command line that I have run since the beginning.

qiime tools import --type MultiplexedSingleEndBarcodeInSequence --input-path WildMice\_Chip1.fastq.gz --output-path multiplexed-seqs.qza

qiime cutadapt demux-single --i-seqs multiplexed-seqs.qza --m-barcodes-file shwanesample-metadata.tsv --m-barcodes-column BarcodesSequence --p-error-rate 0 --o-per-sample-sequences demultiplexed-seqs.qza --o-untrimmed-sequences untrimmed.qza --verbose

qiime cutadapt trim-single --i-demultiplexed-sequences demultiplexed-seqs.qza --p-front ATTAGATACCCYGGTAGTCC --p-error-rate 0 --o-trimmed-sequences trimmed-seqs.qza --verbose

qiime demux summarize --i-data trimmed-seqs.qza --o-visualization trimmed-seqs.qzv (Please see the gzv file in attachment)

I'd like to generate the rep-seqs.qza and table.gza that I can carry out with analysis. However, I couldn't figure it out from the command line. Can you guide me for me that?

Thanks a lot.

Best,  
Bahti

[trimmed-seqs.qzv](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/f/f753e33cd9739adab46ae0e2ed6b36abd11c9bb0.qzv) (299.0 KB)

---

<div class="post-metadata">

**Author:** ![bahti\_yil](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bahti_yil/32/3697_2.png) [@bahti\_yil](https://forum.qiime2.org/u/bahti_yil)\
**Post date:** [February 6, 2019, 6:54pm UTC](https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212/2 "2019-02-06T18:54:10Z")

</div>

Actually I managed to follow on analysis with following commands until the taxonomy part. Here is I need help to create taxonomy.gza file.

First when I run qiime feature-classifier classify-sklearn --i-classifier gg-13-8-99-nb-classifier.qza --i-reads rep-seqs\_120.qza --o-classification taxonomy.qza

It says **ValueError: gg-13-8-99-nb-classifier.qza was created by 'QIIME 2019.1.0'. The currently installed framework cannot interpret archive version '5'.** That's fine because I am using qiime2-2018.8-1 and assuming that this is the problem.

Then I decided to create gza file myself from 97% OTU GG database.

singularity exec /software/singularity/containers/qiime2-2018.8-1.debian9.simg qiime tools import   
--type 'FeatureData[Sequence]'   
--input-path 97\_otus.fasta   
--output-path 97\_otus.qza

singularity exec /software/singularity/containers/qiime2-2018.8-1.debian9.simg qiime tools import   
--type 'FeatureData[Taxonomy]'   
--input-path 97\_otu\_taxonomy.txt   
--output-path ref-taxonomy.qza

It says  
**There was a problem importing 97\_otu\_taxonomy.tsv:**  
\*\* 97\_otu\_taxonomy.tsv is not a(n) TSVTaxonomyFormat file\*\*.

And it doesn't accept the _--source-format HeaderlessTSVTaxonomyFormat_ to be added into commands as shown here [Training feature classifiers with q2-feature-classifier — QIIME 2 2017.7.0 documentation](https://docs.qiime2.org/2017.7/tutorials/feature-classifier/).

Basically I need create classifier to run qiime feature-classifier classify-sklearn commands. My sequence is from Iontorrent and it is for V5-V6 region.

Thank you very much for your help.

Best wishes,  
Bahti

---

<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 7, 2019, 1:57pm UTC](https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212/3 "2019-02-07T13:57:12Z")

</div>

> [@bahti\_yil](#):
>
> It says **ValueError: gg-13-8-99-nb-classifier.qza was created by ‘QIIME 2019.1.0’. The currently installed framework cannot interpret archive version ‘5’.** That’s fine because I am using qiime2-2018.8-1 and assuming that this is the problem.

I recommend installing the latest version of QIIME 2. It looks like you are using different old versions of the software and even older versions of the documentation.

> [@bahti\_yil](#):
>
> And it doesn’t accept the _–source-format HeaderlessTSVTaxonomyFormat_ to be added into commands as shown here [Training feature classifiers with q2-feature-classifier — QIIME 2 2017.7.0 documentation](https://docs.qiime2.org/2017.7/tutorials/feature-classifier/).

That's because you are looking at an archived version of the documentation that is almost 2 years old. That parameter is now called `--input-format` I believe.

> [@bahti\_yil](#):
>
> Basically I need create classifier to run qiime feature-classifier classify-sklearn commands. My sequence is from Iontorrent and it is for V5-V6 region.

If you have version 2019.1 installed, you can use one of the full-length 16S classifiers from the QIIME 2 site.

> [@bahti\_yil](#):
>
> **There was a problem importing 97\_otu\_taxonomy.tsv:**  
> \*\* 97\_otu\_taxonomy.tsv is not a(n) TSVTaxonomyFormat file\*\*.

Try using the updated parameter name I mentioned above — if that does not work you should manually inspect the file to see what the problem is.

Good luck!

---

<div class="post-metadata">

**Author:** ![bahti\_yil](https://forum.qiime2.org/user_avatar/forum.qiime2.org/bahti_yil/32/3697_2.png) [@bahti\_yil](https://forum.qiime2.org/u/bahti_yil)\
**Post date:** [February 8, 2019, 11:13am UTC](https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212/4 "2019-02-08T11:13:08Z")

</div>

Thanks a lot Nicholas. I did as you said and it worked beautifully. Cheers,  
Bahti

---

<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:** [March 11, 2019, 5:13pm UTC](https://forum.qiime2.org/t/cutadapt-trim-iontorrent-data/8212/5 "2019-03-11T17:13:09Z")

</div>

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