I am trying to use the cutadapt plugin in the command line. I am using paired-end sequences, and the first time I run the process one error showed that one sample was not well paired, so following the suggestions in other post here I deleted the sample and tried to run again, but a new error showed and I have no clue whats wrong.
Plugin error from cutadapt:
expected str, bytes or os.PathLike object, not float
Debug info has been saved to /tmp/qiime2-q2cli-err-t7yk8yks.log
I have recieved last days several message that there are some issues with cutadapt in the new version of qiime, but as I am using the 2022.2 version, I think this doesnt affects me, right?
I tryed with the verbose flag and this is what I have got:
Traceback (most recent call last):
File "/home/julia/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/q2cli/commands.py", line 339, in __call__
results = action(**arguments)
File "<decorator-gen-181>", line 2, in trim_paired
File "/home/julia/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
outputs = self._callable_executor_(scope, callable_args,
File "/home/julia/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 391, in _callable_executor_
output_views = self._callable(**view_args)
File "/home/julia/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/q2_cutadapt/_trim.py", line 180, in trim_paired
cmd = _build_trim_command(fwd, rev, trimmed_sequences, cores,
File "/home/julia/anaconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/q2_cutadapt/_trim.py", line 82, in _build_trim_command
cmd += ['-p', str(trimmed_seqs.path / os.path.basename(r_read))]
File "/home/julia/anaconda3/envs/qiime2-2022.2/lib/python3.8/posixpath.py", line 142, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not float
Plugin error from cutadapt:
expected str, bytes or os.PathLike object, not float
See above for debug info.
(qiime2-2022.2) julia@julia:~/datos$
I was able to get your command to run on the same version of qiime2 so it seems like an issue with your qiime2 environment.
However I don't think that these are the correct sequences for Cutadapt, Cutadapt does not seem to be finding the sequences. Make sure that you are using the PCR primer sequences that amplify the region and not the actual adapters.
Hi @VerheulJulia,
I would uninstall your conda environment and reinstall it.
It is possible that they are already trimmed. Typically with the EMP protocol the primers are already trimmed out. This is something you should ask your sequencer about how they are providing the sequences.
Yes, it might be already trimmered, but I thought that if that was the case i would just recieve a warning telling me that 0 sequences were trimmered or something like that.
Hey @VerheulJulia,
I believe it will only give you an error if it doesn't find those adapters at all in your sequences. And more than likely by random chance cutadapt will find those adapter somewhere in your sequences. If you look at the bug.txt file it looks like cutadapt ran successfully it just wasn't really finding your sequences as much as it expects.