marcelm / cutadapt

Cutadapt removes adapter sequences from sequencing reads
https://cutadapt.readthedocs.io
MIT License
523 stars 130 forks source link

cutadapt: error: cutadapt not able to trim the desired adapto #785

Open faizee-ali opened 6 months ago

faizee-ali commented 6 months ago

I have Illumina novaseq, pair ended reads and I want to trim the non-internal adaptors from both ends. The adaptors I used for library praparation are NEB next adaptors for illumina. So I executed the following command:-

cutadapt -a AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTX -G XAGATCGGAAGAGCACACGTCTGAACTCCAGTCA --pair-filter=both --minimum-length 1 --cores=8 -o out-read1.fastq -p out-read2.fastq in-read1.fastq.gz in-read2.fastq.gz -o out-10936-R1.fastq

Here, the paths to the reads are correct and I am getting a valid output of trimmed reads. But upon inpection with FASTQC, I can see adaptor contamination still present - as seen in the attacjed fastqc report, and a poly G tail is also present

Is there something I am missing in the command? Are the adaptor placements correct?

image

When reporting an issue, please include this information:

If you report unexpected trimming behavior, this would also be helpful:

faizee-ali commented 6 months ago

this is the QC of the raw read, cutadapt has not effectively trimmed the adaptor sequences

image
rhpvorderman commented 5 months ago

Hi, there are several things:

The command would become:

cutadapt -Z -a AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT -A AGATCGGAAGAGCACACGTCTGAACTCCAGTCA --pair-filter=both --minimum-length 1 --cores=8 -o out-read1.fastq.gz -p out-read2.fastq.gz in-read1.fastq.gz in-read2.fastq.gz -o out-10936-R1.fastq

Does that help you?

faizee-ali commented 5 months ago

Yes it did thanks now I see much better adaptor removal!