Hi I am very new to metabarcoding and Qiime2. I have just received demultiplexed illumina paired end reads and I need to join them and remove the primers. Do I need to join them first and then remove the primers or visa versa? Or does the order not matter? What is the best way to do this using Qiime2? I have read about the cutadapt plugin but I am unsure as to whether that is just to cut adapters or can be used for primers too.
Technically the order does not matter... but this should be done prior to denoising. I prefer to trim my primers prior to merging using the the cutadapt trim-paired option along with the following flags: --p-discard-untrimmed --p-match-read-wildcards --p-match-adapter-wildcards
It did not work and I got the following error message:
There was a problem with the command:
(1/1) Missing option ‘–o-trimmed-sequences’. ("–output-dir" may also be
used)
/var/spool/slurmd/job15824/slurm_script: line 18: SampleData[PairedEndSequencesWithQuality]: command not found
/var/spool/slurmd/job15824/slurm_script: line 19: --p-front-f: command not found
/var/spool/slurmd/job15824/slurm_script: line 22: --p-match-read-wildcards: command not found
/var/spool/slurmd/job15824/slurm_script: line 23: --p-match-adapter-wildcards: command not found
/var/spool/slurmd/job15824/slurm_script: line 24: --o-trimmed-sequences: command not found
Do you know what is wrong with my script? Thanks A
... if you actually entered in the command in this way? Did you add the \ at the end of each line? This is required if you want to execute your command over several lines... otherwise this should all be on one line. Also, I'm not sure why SampleData[PairedEndSequencesWithQuality] is in the command. This is likely the culprit causing the command to fail. Check out this older cutadapt tutorial.
Just to sanity-check, can you make sure the following works: