Closed permia closed 8 months ago
The adapter occurs twice in the reverse complement but only once in the forward sequence, which is why Cutadapt prefers the reverse complemented read.
This is what Cutadapt does:
nnnnnncnnnnncctataccAGATGTGTATAAGAGACAGcc...
) and removed.
b) Second round: Adapter is found once again a little bit downstream and removed.
c) Third round: Adapter not found.I think what may have been unclear is that the rounds are done for both directions separately.
The way to solve this is to use your second command as you already figured out.
Thanks. I figured it out.
This is cutadapt 4.4 with Python 3.10.12
I can't understand why the 5' adapter wasn't trimmed when adding
--revcomp
.below are the trimed result. It's reverse-complement sequence. The 5' adapter still locates at terminal.
The following commond seems to work as expected.