Does Cutadapt change the x,y coordinates in the fastq read name?
1
0
Entering edit mode
6.3 years ago
drkennetz ▴ 560

Hi all, I have found a high presence of Illumina adapter content in a batch of samples which were sequenced on a NovaSeq. I set out to trim the adapters using cutadapt:

R1:

cutadapt -a GATCGGAAGAGCACGTCTGAACTCCAGTCAC -o outputR1.fastq.gz R1_001.fastq.gz

R2:

cutadapt -a AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT -o outputR2.fastq.gz R2_001.fastq.gz

These reads map fine with bwa mem, but I have a different type of analysis written initially for bwa backtrack (aln + sampe) and when I try to run bwa sampe it says there are mismatched read pairs (x, y coordinates are off).

If I trim the adapters with Illumina's standard bcl2fastq trimming I see some evidence that adapters were trimmed, but not to the degree I want. Cutadapt trimmed more bases, which was required in this case. I was wondering if there was a way for cutadapt to not change the x,y in the read name. Thanks

next-gen alignment • 1.6k views
ADD COMMENT
2
Entering edit mode
6.3 years ago
GenoMax 147k

You should never trim PE data files independently. This causes reads to be orphaned and then the order of R1/R2 reads is messed up in resulting trimmed files. I am sure cutadapt has a PE mode which you should use with R1/R2 files. cutadapt is not changing the x,y coordinates to answer your question. Reads are getting out of sync in the two result files.

If it does not then use a different trimming program like bbduk or trimmomatic.

ADD COMMENT
0
Entering edit mode

Thanks for the info, I have not done any kind of trimming so this has been good to know! Do you have any preference for adapter trimming software?

ADD REPLY
1
Entering edit mode

bbduk/trimmomatic/cutadapt/sickle etc. should all work. bbduk is easy to use but that is just a personal thing. You can find a guide for bbduk here.

ADD REPLY
0
Entering edit mode

Thank you! I see in the documentation that it says plainly that paired reads should always be used together (this seems like a no-brainer). Definitely a pretty bad oversight on my part.

ADD REPLY
0
Entering edit mode

When you care about them being in order/sync in resulting R1/R2 files. Aligners assume they are and may not always check leading to discordant mapping.

ADD REPLY

Login before adding your answer.

Traffic: 2478 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6