# cutadapt in qiime2-2022.11

**URL:** https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259
**Category:** Technical Support
**Created:** [July 31, 2023, 10:25am UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259 "2023-07-31T10:25:41Z")
**Posts on this page:** 17
**Page:** 2

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 7, 2023, 9:08pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/21 "2023-08-07T21:08:32Z")

</div>



---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 8, 2023, 9:56pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/22 "2023-08-08T21:56:02Z")

</div>

Hi @D_S,

Thanks for giving all of that a try. I suspect this is an issue with your virtual machine and how it's configured. Can you share exactly how you installed QIIME 2? Are you using Windows Subsystem for Linux (WSL) on this virtual machine?

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 8, 2023, 9:56pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/23 "2023-08-08T21:56:05Z")

</div>



---

<div class="post-metadata">

### Author: ![D\_S](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@D\_S](https://forum.qiime2.org/u/D_S)
#### Post date: [August 9, 2023, 2:19pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/24 "2023-08-09T14:19:02Z")

</div>

Hi @lizgehret

Thanks for your continuous support.  
Yes, after uninstalling the previous version of the QIIME2, I followed through these commands under the WSL - [Natively installing QIIME 2 — QIIME 2 2023.5.1 documentation](https://docs.qiime2.org/2023.5/install/native/#install-qiime-2-within-a-conda-environment)

wget [https://data.qiime2.org/distro/core/qiime2-2023.5-py38-linux-conda.yml](https://data.qiime2.org/distro/core/qiime2-2023.5-py38-linux-conda.yml)  
conda env create -n qiime2-2022.2 --file qiime2-2023.5-py38-linux-conda.yml  
conda activate qiime2-2023.5

These are the details of the Hyper-V Manager I am using to acces the linux (Hyper-V-Manager,  
Microsoft Corporation, Version: 10.0.19041.1)

Best,  
Dharmesh

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 9, 2023, 3:01pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/25 "2023-08-09T15:01:51Z")

</div>



---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 15, 2023, 5:07pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/26 "2023-08-15T17:07:14Z")

</div>

Hi @D_S,

Apologies for the delay. Are you using this virtual machine through your employer/institution? I'm wondering if this is due to a user permissions issue.

Cheers 🦎

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 15, 2023, 5:07pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/27 "2023-08-15T17:07:16Z")

</div>



---

<div class="post-metadata">

### Author: ![D\_S](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@D\_S](https://forum.qiime2.org/u/D_S)
#### Post date: [August 17, 2023, 1:09pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/28 "2023-08-17T13:09:46Z")

</div>

Hi @lizgehret,

Thank you for your reply. I checked with the IT personnel here and there doesn't seem to be user permissions issue as there only a single login user id and pw and not different ones for admin and common users.

Also, I tried the denoise command (skipping the cutadapt) and it worked successfully:

**qiime dada2 denoise-paired --i-demultiplexed-seqs seqs.qza --p-trim-left-f 18 --p-trim-left-r 21 --p-trunc-len-f 270 --p-trunc-len-r 250 --p-chimera-method consensus --p-min-fold-parent-over-abundance 4 --p-n-threads 36 --o-table table-denoise-seqs.qza --o-representative-sequences rep-denoise-seqs.qza --o-denoising-stats stats-denoise-seqs.qza**

Since my forward and reverse primer lengths are 18 and 21 bps, I trimmed then using the p-trim-left- f & -r commands. Do you think I can skip the cutadapt steps and still receive the same output while using the trimming options in the denoising steps?

Best,  
D\_S

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 17, 2023, 4:14pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/29 "2023-08-17T16:14:04Z")

</div>



---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 22, 2023, 7:13pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/32 "2023-08-22T19:13:52Z")

</div>

@D_S,

Thanks for following up with those details. There must be something strange happening with the actual cutadapt package that's installed on your machine. Can you run `which cutadapt` while in this same conda environment and copy/paste the results from your terminal in your response?

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 22, 2023, 7:14pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/33 "2023-08-22T19:14:00Z")

</div>



---

<div class="post-metadata">

### Author: ![D\_S](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@D\_S](https://forum.qiime2.org/u/D_S)
#### Post date: [August 23, 2023, 12:59pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/34 "2023-08-23T12:59:05Z")

</div>

Hi @lizgehret ,

Thanks again for your support. I tried the command **which cutadapt** while in the same conda environment and below is the output:

/home/mih/ .local/bin/cutadapt

Best,  
D\_S

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 23, 2023, 4:13pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/35 "2023-08-23T16:13:48Z")

</div>



---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 23, 2023, 4:47pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/36 "2023-08-23T16:47:42Z")

</div>

Hi @D_S,

Well that'll definitely do it - there does in fact seem to be a competing version of cutadapt on your machine, and that's almost certainly what's causing the issue here. I would remove this package, and then in your existing conda environment, run the following command:

```auto
conda install -c conda-forge -c bioconda cutadapt

```

This should resolve the issue, but go ahead and re-run `which cutadapt` afterwards to confirm that the path where this package exists is within your conda environment binaries. The path should look something like this:

```auto
/Users/username/miniconda3/envs/qiime2-2023.7/bin/cutadapt

```

Hope this helps! Cheers 🦎

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [August 23, 2023, 4:47pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/37 "2023-08-23T16:47:50Z")

</div>



---

<div class="post-metadata">

### Author: ![D\_S](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@D\_S](https://forum.qiime2.org/u/D_S)
#### Post date: [August 24, 2023, 12:59pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/38 "2023-08-24T12:59:37Z")

</div>

Hi @lizgehret,

Thanks a lot for your suggestion.  
I removed the competing version of cutadapt and rerunning `which cutadapt` yeilded the following output:

/home/mih/anaconda3/envs/qiime2-2023.5/bin/cutadapt.

This seemed correct and the cutadapt command within the conda qiime environment worked this time. Thanks a lot for your help and hopefully the subsequent steps will be completed without any errors..

Note: Since there was already a cutadapt within the qiime conda environment after removing the competing version, I did not run the following command:  
`conda install -c conda-forge -c bioconda cutadapt`

Best,  
D\_S

---

<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: [September 24, 2023, 7:00pm UTC](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259/39 "2023-09-24T19:00:23Z")

</div>

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

[Previous page](https://forum.qiime2.org/t/cutadapt-in-qiime2-2022-11/27259.md?page=1)
