# Error: no such option: --p-min-length

**URL:** https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444
**Category:** Technical Support
**Created:** [November 13, 2020, 5:29pm UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444 "2020-11-13T17:29:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![XrandallX](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/x/4bbf92/32.png) [@XrandallX](https://forum.qiime2.org/u/XrandallX)
#### Post date: [November 13, 2020, 5:29pm UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444/1 "2020-11-13T17:29:21Z")

</div>

Hi all,  
I am new to the forum. I am working through the tutorial Training feature classifiers with q2-feature-classifier [Training feature classifiers with q2-feature-classifier — QIIME 2 2020.2.0 documentation](https://docs.qiime2.org/2020.2/tutorials/feature-classifier/).  
Unfortunately I am running into issues because I am not using the most up-to-date version of qiime2. I managed to solve the first issue at the qiime tools import part by reverting back to the old code  
--source-format HeaderlessTSVTaxonomyFormat \ which is now......  
--input-format HeaderlessTSVTaxonomyFormat   
However, I cannot update my version of qiime2 because I am working remotely and accessing our HPC via a vpn. I don't have the permission to update.  
I am now running into an issue at the stage of Extract reference reads part of the tutorial....  
I run the following code,

but receive this error  
Error: no such option: --p-min-length  
I have tried to set --p-min-length to 0 so this removed this but I still run into issues.  
This is the code I ran to get the above error meassge  
qiime feature-classifier extract-reads   
--i-sequences 85\_otus.qza   
--p-f-primer GTGCCAGCMGCCGCGGTAA   
--p-r-primer GGACTACHVGGGTWTCTAAT   
--p-trunc-len 120   
--p-min-length 100   
--p-max-length 400   
--o-reads ref-seqs.qza

I just wondered if anyone had experienced this issue. I couldn't find anything when I searched this time.  
Thanks, Kate

---

<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: [November 16, 2020, 2:12pm UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444/2 "2020-11-16T14:12:24Z")

</div>



---

<div class="post-metadata">

### Author: ![andrewsanchez](https://forum.qiime2.org/user_avatar/forum.qiime2.org/andrewsanchez/32/20160_2.png) [@andrewsanchez](https://forum.qiime2.org/u/andrewsanchez)
#### Post date: [November 16, 2020, 6:05pm UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444/3 "2020-11-16T18:05:51Z")

</div>

Hi, @XrandallX and welcome to the forum!

Can you please share the output of `qiime info`? It looks like the min/max length parameters were added to `extract-reads` in the [2018.11 release](https://forum.qiime2.org/t/qiime-2-2018-11-release-is-now-live/6879). You are viewing the 2020.2 release version of the docs, according to the URL you shared above.

I recommend viewing the documentation which corresponds to the version of QIIME 2 you are using. From `qiime info` I can see that I am using QIIME 2 release 2020.8:

```auto
➜ qiime info
System versions
Python version: 3.6.11
QIIME 2 release: 2020.8
QIIME 2 version: 2020.8.0
q2cli version: 2020.8.0

```

You can then use the drop down menu on the left side of the QIIME 2 docs to select the correct version:

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/4/47a2ede1454d2fe2a02334555cbe7633fc700b09.png)

I hope that helps! Let us know if you have any more questions 😄

---

<div class="post-metadata">

### Author: ![andrewsanchez](https://forum.qiime2.org/user_avatar/forum.qiime2.org/andrewsanchez/32/20160_2.png) [@andrewsanchez](https://forum.qiime2.org/u/andrewsanchez)
#### Post date: [November 16, 2020, 6:05pm UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444/4 "2020-11-16T18:05:55Z")

</div>



---

<div class="post-metadata">

### Author: ![XrandallX](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/x/4bbf92/32.png) [@XrandallX](https://forum.qiime2.org/u/XrandallX)
#### Post date: [November 16, 2020, 5:38pm UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444/5 "2020-11-16T17:38:33Z")

</div>

Hello,

Many thanks for your response and so sorry for wasting your time. I managed to get the person in charge of our HPC (which I am accessing remotely to update to the newest version) this has worked.  
Thanks again.

---

<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: [December 18, 2020, 12:06am UTC](https://forum.qiime2.org/t/error-no-such-option-p-min-length/17444/6 "2020-12-18T00:06:01Z")

</div>

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