# Extract reference reads

**URL:** <https://forum.qiime2.org/t/extract-reference-reads/3451>\
**Category:** User Support\
**Tags:** feature-classifier\
**Created:** [March 16, 2018, 1:14pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451 "2018-03-16T13:14:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhang\_sonic](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zhang_sonic/32/9090_2.png) [@zhang\_sonic](https://forum.qiime2.org/u/zhang_sonic)\
**Post date:** [March 16, 2018, 1:14pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/1 "2018-03-16T13:14:41Z")

</div>

Hello

When trying to extract reference reads, what's the difference between using the aligned otus seq and non-aligned otus seq.

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:** [March 16, 2018, 1:17pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/2 "2018-03-16T13:17:06Z")

</div>

Assigned @Nicholas\_Bokulich on March 16, 2018, 1:17pm UTC



---

<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:** [March 16, 2018, 1:59pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/3 "2018-03-16T13:59:12Z")

</div>

Hi @zhang_sonic,  
What is the command you are trying to use? `qiime feature-classifier extract-reads`?

You can only use unaligned sequences with this command.

I hope that helps!

---

<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:** [March 16, 2018, 1:59pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/4 "2018-03-16T13:59:13Z")

</div>

Unassigned @Nicholas\_Bokulich on March 16, 2018, 1:59pm UTC



---

<div class="post-metadata">

**Author:** ![zhang\_sonic](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zhang_sonic/32/9090_2.png) [@zhang\_sonic](https://forum.qiime2.org/u/zhang_sonic)\
**Post date:** [March 19, 2018, 2:31pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/5 "2018-03-19T14:31:13Z")

</div>

Hi Nicholas

Thanks for replying my question. I have few problems here. I was trying to extract-reads using the codes below.

```auto
qiime feature-classifier extract-reads \
  --i-sequences 99_otus_non_aligned.qza \
  --p-f-primer GCCTTGCCAGCCCGCTCAGAGAGTTTGATCCTGGCTCAG \
  --p-r-primer GCCTCCCTCGCGCCATCAGNNNNNNNNNNTGCTGCCTCCCGTAGGAGT \
  --p-trunc-len 400 \
  --o-reads 99-ref-seqs.qza 

```

The 99\_otus was downloaded from the green tree 13\_8 version. But the problem here is I is taking few days and the run still has finished yet, I feel like there must be something wrong with it.

Then I was thinking maybe I will just skip the extract-read part and use the 99\_otus\_non-aligned.qza to doing the following job. And the second question is how do you think its gonna affect the results?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)\
**Post date:** [March 19, 2018, 2:54pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/6 "2018-03-19T14:54:01Z")

</div>

Assigned @Nicholas\_Bokulich on March 19, 2018, 2:54pm UTC



---

<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:** [March 19, 2018, 3:08pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/7 "2018-03-19T15:08:14Z")

</div>

> [@zhang\_sonic](#):
>
> The 99\_otus was downloaded from the green tree 13\_8 version. But the problem here is I is taking few days and the run still has finished yet, I feel like there must be something wrong with it.

See [this post](https://forum.qiime2.org/t/a-problem-to-train-a-classifier-for-paired-end-data-from-miseq/3431). The primer sequences that you are using look like they contain much more than the primers — they also contain linker sequences, perhaps barcode, and other sequences that are non-biological and will not align to your reference. This will cause extraction to fail.

> [@zhang\_sonic](#):
>
> Then I was thinking maybe I will just skip the extract-read part and use the 99\_otus\_non-aligned.qza to doing the following job. And the second question is how do you think its gonna affect the results?

See [here](https://forum.qiime2.org/t/a-problem-to-train-a-classifier-for-paired-end-data-from-miseq/3431/7)

Good luck!

---

<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:** [March 19, 2018, 3:08pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/8 "2018-03-19T15:08:15Z")

</div>

Unassigned @Nicholas\_Bokulich on March 19, 2018, 3:08pm UTC



---

<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:** [April 19, 2018, 9:08pm UTC](https://forum.qiime2.org/t/extract-reference-reads/3451/9 "2018-04-19T21:08:34Z")

</div>

Closed on April 19, 2018, 9:08pm UTC

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