Dear Whom It May Concern,
I ran the following script that mostly worked.
qiime cutadapt trim-paired --i-demultiplexed-sequences ‘/home/microbiology/Deblur/paired-end-demux.qza’ --p-cores 8 --p-adapter-f ATTAGAWACCCBNGTAGTCC --p-front-f GTGYCAGCMGCCGCGGTAA --p-adapter-r TTACCGCGGCKGCTGRCAC --p-front-r GGACTACNVGGGTWTCTAAT --output-dir all-trimmed-primers –verbose
My files are combos of different runs most were at 2x250 but one was at 2x300 (5185). I am using EMP modified 515f-806r primers. Some of the sequences in 5185 have 515fMYSEQUENCE806r(compl and rev)OTHER STUFF, thus i ran the script to account for primers at the front and complementary and reversed primers at the end. Most of my sequences worked but the 515f primer was not removed at the beginning of almost all of the R1 reads in the 5185 runs. (I was unable to attach fastq files to show this, even zipped)
I tried to run another script to trim primer again and got this
qiime cutadapt trim-paired --i-demultiplexed-sequences ‘/home/microbiology/all-trimmed-primers/trimmed_sequences.qza’ --p-cores 8 --p-front-f GTGYCAGCMGCCGCGGTAA --output-dir all-trimmed-primers-v2 –verbose
Running on 8 cores
Trimming 1 adapter with at most 10.0% errors in paired-end legacy mode …
ERROR: Traceback (most recent call last):
File “/home/microbiology/miniconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/cutadapt/pipeline.py”, line 454, in run
(n, bp1, bp2) = self._pipeline.process_reads()
File “/home/microbiology/miniconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/cutadapt/pipeline.py”, line 282, in process_reads
for read1, read2 in self._reader:
File “/home/microbiology/miniconda3/envs/qiime2-2018.2/lib/python3.5/site-packages/cutadapt/seqio.py”, line 414, in iter
r2 = next(it2)
File “src/cutadapt/_seqio.pyx”, line 234, in iter (src/cutadapt/_seqio.c:5816)
cutadapt.seqio.FormatError: FASTQ file ended prematurely
cutadapt: error: FASTQ file ended prematurely
Plugin error from cutadapt:
Command ‘[‘cutadapt’, ‘–cores’, ‘8’, ‘–error-rate’, ‘0.1’, ‘–times’, ‘1’, ‘–overlap’, ‘3’, ‘-o’, ‘/tmp/q2-CasavaOneEightSingleLanePerSampleDirFmt-uiap5h0f/5185-ME3D17W-515yF-806bR_354_L001_R1_001.fastq.gz’, ‘-p’, ‘/tmp/q2-CasavaOneEightSingleLanePerSampleDirFmt-uiap5h0f/5185-ME3D17W-515yF-806bR_355_L001_R2_001.fastq.gz’, ‘–front’, ‘GTGYCAGCMGCCGCGGTAA’, ‘/tmp/qiime2-archive-lce48j8j/ecece2ae-094b-4f3d-b055-731f29ca2153/data/5185-ME3D17W-515yF-806bR_354_L001_R1_001.fastq.gz’, ‘/tmp/qiime2-archive-lce48j8j/ecece2ae-094b-4f3d-b055-731f29ca2153/data/5185-ME3D17W-515yF-806bR_355_L001_R2_001.fastq.gz’]’ returned non-zero exit status 1
Thank you for your time and help,
Sincerely,
David Bradshaw