# Best approach for analyzing Sanger sequences from ITS2 region

**URL:** <https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887>\
**Category:** General Discussion\
**Created:** [January 18, 2019, 9:30pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887 "2019-01-18T21:30:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhines1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jhines1](https://forum.qiime2.org/u/jhines1)\
**Post date:** [January 18, 2019, 9:30pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/1 "2019-01-18T21:30:10Z")

</div>

I am new to QIIME 2 & bioinformatics in general. I'm in need of assistance to figure out how I need to alter my pipeline.

I have 430 fungal ITS2 Sanger sequences produced through a clone library & I am wanting to analyze the community structure through ESVs as opposed to OTUs. I have found that I need to use q2-itsxpress as my primers amplified from the beginning of the 5.8S gene all the way to the LSU. I figure I compare those ITS2 isolates to the UNITE database, then run that through q2-ghost-tree, [as recommended here](https://forum.qiime2.org/t/fungal-itsx-and-qiime2/5008/2).

So, I have imported my trimmed & QC'd (via Geneious 10.2.6) data as a .FASTA file, as described in [this Q2 forum post](https://forum.qiime2.org/t/creating-featuretable-from-illumina-fasta-data/1417/7). I have been looking at [the Fungal ITS analysis tutorial](https://forum.qiime2.org/t/fungal-its-analysis-tutorial/7351), but after building their UNITE classifier database & importing the mock community data, they denoise those sequences with Dada2. From what I understand, [Sanger data isn't supported by Dada2 or Deblur](https://forum.qiime2.org/t/analyze-sanger-sequences-for-23s/6610/2). Additionally, those require .FASTQ files. Can I still get through the pipeline with .FASTA files? Also, is denoising an important step in the pipeline, or would obtaining the artifact from the q2-ghost-tree plugin give me the necessary file type to move forward with diversity analyses?

My apologies if this is a really basic question, but I'm a bit lost in the pipeline &, again, bioinformatics is still quite new to me.

Thanks!!

---

<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:** [January 21, 2019, 3:14pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/2 "2019-01-21T15:14:05Z")

</div>

Hi @jhines1!

> [@jhines1](#):
>
> they denoise those sequences with Dada2. From what I understand, [Sanger data isn’t supported by Dada2 or Deblur](https://forum.qiime2.org/t/analyze-sanger-sequences-for-23s/6610/2).

That's correct. If you do not want to use OTU clustering, you can just use `qiime vsearch dereplicate-sequences` to dereplicate — that will give you a feature table and representative sequences artifact.

> [@jhines1](#):
>
> Additionally, those require .FASTQ files. Can I still get through the pipeline with .FASTA files?

Yes... see [this tutorial](https://docs.qiime2.org/2018.11/tutorials/otu-clustering/#dereplicating-a-sampledata-sequences-artifact). Just follow the import and dereplicate-seqs steps in that section of that tutorial, then proceed through the ITS tutorial.

> [@jhines1](#):
>
> Also, is denoising an important step in the pipeline, or would obtaining the artifact from the q2-ghost-tree plugin give me the necessary file type to move forward with diversity analyses?

The feature table you get from `dereplicate-sequences` is all you need to proceed to diversity analyses. Denoising is important for correcting errors from next-generation sequencing methods, but since you have Sanger data and are doing a Sanger-specific QC protocol with Geneious, then denoising should not be necessary anyway.

I hope that helps!

---

<div class="post-metadata">

**Author:** ![jhines1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jhines1](https://forum.qiime2.org/u/jhines1)\
**Post date:** [January 25, 2019, 7:53pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/3 "2019-01-25T19:53:51Z")

</div>

Thank you @Nicholas_Bokulich for your reply! So sorry for the delay in response.

I have imported my data & have tried to dereplicate the sequences with vsearch. However, when I try to run that command I get an error:

**Plugin error from vsearch:**

**list index out of range**

I'm not sure why I would get that error message. I checked on the forum for previous issues with this & found that another user had [encountered this issue with another issue](https://forum.qiime2.org/t/vsearch-dereplicate-seqs-list-index-out-of-range/6212). However, the user fixed their issue with a simple character replacement. I don't have issues with that, however. Here are the first couple of lines of my .FASTA file:

> JH\_LCl\_51  
> ANCCTCCGCTTATTGATATGCTTAAGTTCAGCGGGTATCCCTACCTGATCCNAGGTCAATCTGGGGTGGTTTGCTTACTGGTAAGCCCCTTTCTTCGGTGCGTCCCGCAAATTTGCTGCGTTCANTGCCGATAAGGGAGCTGCCAACTACTTTTGAGGCGAGTCCGCNCGCGGAGGCGGGACNNACGCCNATCACCAAGCTNAGCTTGAATTTTGAAATGACGCTCNAACAGGCATGCCCTAAGGAATACCAAAGGGCGCAATGTGCGTTCANNNATTCNATGATTCACTGAATTCTGCAATTCACACTACTTATCGCATTTCGCTGCGTTCTTCATCGATGCCANAGCCAAGAGATCCATTGCCGAAAGTT  
> JH\_HCl\_73  
> AGCCTCCGCTTATTGATATGCTTAAGTTCAGCGGGTATCCCTACCTGATCCNAGGTCAACCTGATAAAATGGGGGGTTGTTGGCAAGCAACCACCGAGACCCTATAGCGAGAAAATTTACTACGCTCANAGCTCGATGGCACCGCCACTGAGTTTAGGGGCTGCGAGACCGCANGCTCCAATACCAAGCGTGAGCTTGAGGGGTTGTAATGACGCTCGAACAGGCATGCCCCGCGNAATACCACGGGGCGCAATGTGCGTTCAAAGATTCNATGATTCACTGAATTCTGCAATTCACATTACTTATCGCATTTCGCTGCGTTCTTCATCGATGCCANAACCAAGTGATCCGTTGTCAAAAGTT

As you can see, I do not have those character issues with my headers. Any ideas as to what else it could be?

---

<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:** [January 28, 2019, 1:58pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/4 "2019-01-28T13:58:08Z")

</div>

Hi @jhines1,  
could you please report the full error traceback? Use the `--verbose` flag in your command to print the full traceback in your terminal, and please post that here, along with the full command.

Do all of your sequence IDs fit that same pattern? You should review all IDs to make sure there are not IDs with special characters or an unusual pattern.

---

<div class="post-metadata">

**Author:** ![jhines1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jhines1](https://forum.qiime2.org/u/jhines1)\
**Post date:** [January 28, 2019, 5:32pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/5 "2019-01-28T17:32:16Z")

</div>

@Nicholas_Bokulich

\> (qiime2-2018.11) bash-3.2$ qiime vsearch dereplicate-sequences \

\> --i-sequences Hines\_SeqData.qza \

\> --o-dereplicated-table Hines\_table.qza \

\> --o-dereplicated-sequences Hines\_rep\_seqs.qza \

\> --verbose

Running external command line application. This may print messages to stdout and/or stderr.

The command being run is below. This command cannot be manually re-run as it will depend on temporary files that no longer exist.

Command: vsearch --derep\_fulllength /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/data/seqs.fna --output /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/q2-DNAFASTAFormat-zg8dy1a9 --relabel\_sha1 --relabel\_keep --uc /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/tmp7e33ao9j --qmask none --xsize

vsearch v2.7.0\_macos\_x86\_64, 16.0GB RAM, 4 cores

> **[GitHub - torognes/vsearch: Versatile open-source tool for microbiome analysis](https://github.com/torognes/vsearch)**
>
> Versatile open-source tool for microbiome analysis

Reading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/daReading file /var/folders/x1/8vlx8m5n2zn5hqc34w\_3b8m40000gq/T/qiime2-archive-oj1cuzld/9334ad92-b7c1-4f4a-80c6-0135d76906a7/data/seqs.fna 100%

126219 nt in 342 seqs, min 90, max 945, avg 369

Dereplicating 100%

Sorting 100%

311 unique sequences, avg cluster 1.1, median 1, max 3

Writing output file 100%

Writing uc file, first part 100%

Writing uc file, second part 100%

Traceback (most recent call last):

File "/Users/haselkornlab/anaconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/q2cli/commands.py", line 274, in **call**

results = action(\*\*arguments)

File "\<decorator-gen-128\>", line 2, in dereplicate\_sequences

File "/Users/haselkornlab/anaconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/sdk/action.py", line 231, in bound\_callable

output\_types, provenance)

File "/Users/haselkornlab/anaconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/sdk/action.py", line 362, in _callable\_executor_

output\_views = self.\_callable(\*\*view\_args)

File "/Users/haselkornlab/anaconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/q2\_vsearch/\_cluster\_sequences.py", line 134, in dereplicate\_sequences

table = \_parse\_uc(out\_uc)

File "/Users/haselkornlab/anaconda3/envs/qiime2-2018.11/lib/python3.5/site-packages/q2\_vsearch/\_cluster\_sequences.py", line 70, in \_parse\_uc

observation\_id = fields[9].split()[0]

IndexError: list index out of range

**Plugin error from vsearch:**

**list index out of range**

**See above for debug info.**

---

<div class="post-metadata">

**Author:** ![jhines1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jhines1](https://forum.qiime2.org/u/jhines1)\
**Post date:** [January 28, 2019, 5:32pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/6 "2019-01-28T17:32:27Z")

</div>

@Nicholas_Bokulich Something just occurred to me. Some of my sequences have 'N' in place of normal bases. Would this give vsearch, or Q2 in general, reasons to throw errors?

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [January 28, 2019, 10:10pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/7 "2019-01-28T22:10:18Z")

</div>

Hey there @jhines1!

> [@jhines1](#):
>
> Would this give vsearch, or Q2 in general, reasons to throw errors?

I don't think that is the problem here (but I could be wrong...)

> [@jhines1](#):
>
> observation\_id = fields[9].split()[0]
> 
> IndexError: list index out of range

One of these list lookups here `[9]`, `[0]` is failing because the field doesn't exist.

The FASTA file snippet you provided above might not [satisfy the format spec](http://qiime.org/documentation/file_formats.html#demultiplexed-sequences) --- what happens when you run the following?

```bash
qiime tools validate Hines_SeqData.qza

```

Thanks!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [January 28, 2019, 10:23pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/8 "2019-01-28T22:23:12Z")

</div>

Ah bummer, I just double-checked, that validation code hasn't quite been implemented yet. Would you be able to share a link to this file in a DM?

---

<div class="post-metadata">

**Author:** ![jhines1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jhines1](https://forum.qiime2.org/u/jhines1)\
**Post date:** [January 28, 2019, 10:39pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/9 "2019-01-28T22:39:43Z")

</div>

@thermokarst Yes, I will have to get back to the lab before I can get to the files. I was working on them a bit earlier but haven't saved them to an exterior source yet (e.g. could/thumb drive). I am out of the lab for the day, but will be back first thing tomorrow morning. I will send them on over then.

Thanks so much!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [January 29, 2019, 7:13pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/10 "2019-01-29T19:13:33Z")

</div>

Hey there @jhines1! It was a problem with file line-endings --- your fasta file had a mix of LF and CRLF, which vsearch wasn't cleaning out, so when q2-vsearch was parsing the intermediate files created by vsearch there were all kinds of crazy going on in the file. I converted the file to use only unix-style line-endings and have returned it to you in a DM. Happy QIIMEing! 🦖 :qiime2:

---

<div class="post-metadata">

**Author:** ![jhines1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jhines1](https://forum.qiime2.org/u/jhines1)\
**Post date:** [January 29, 2019, 7:18pm UTC](https://forum.qiime2.org/t/best-approach-for-analyzing-sanger-sequences-from-its2-region/7887/11 "2019-01-29T19:18:12Z")

</div>

Awesome! Thank you so much!!

Interesting about the line-break types. I'll have to look into that more & pass on this info to others in the lab that are beginning their Q2 journey.

Thanks again!!
