Hi all,
I wanted to give an update in case anyone else will find this helpful. I looked again at the original "NexteraPE-PE.fa" which contains:
>PrefixNX/1
AGATGTGTATAAGAGACAG
>PrefixNX/2
AGATGTGTATAAGAGACAG
>Trans1
TCGTCGGCAGCGTCAGATGTGTATAAGAGACAG
>Trans1_rc
CTGTCTCTTATACACATCTGACGCTGCCGACGA
>Trans2
GTCTCGTGGGCTCGGAGATGTGTATAAGAGACAG
>Trans2_rc
CTGTCTCTTATACACATCTCCGAGCCCACGAGAC
I asked ChatGPT for the sequence for Nextera transposase adapters and it returned:
5' TCGTCGGCAGCGTCAGATGTGTATAAGAGACAG 3' (for Read 1)
5' GTCTCGTGGGCTCGGAGATGTGTATAAGAGACAG 3' (for Read 2)
These are corresponding with Trans1 and Trans2. Following, I removed the PrefixN lines and only left Trans1 and Trans2 and their reverse complements:
>Trans1
TCGTCGGCAGCGTCAGATGTGTATAAGAGACAG
>Trans1_rc
CTGTCTCTTATACACATCTGACGCTGCCGACGA
>Trans2
GTCTCGTGGGCTCGGAGATGTGTATAAGAGACAG
>Trans2_rc
CTGTCTCTTATACACATCTCCGAGCCCACGAGAC
I now have 100% survival of reads and only a dozen reads per sample are discarded. FastQC confirms that there is no more adapter contamination. I wonder if adapter removal was really necessary, given that there were so few reads discarded?
Some of these programs have a minimum size threshold for a read to be retained. You could play around with that to keep all trimmed reads 50nt or longer. You could also try a program that allows you to manually input the adaptor sequence (Cutadapt does this).
Trimmomatic allows to enter custom adapter sequences, but I don't see how this would change the outcome. Similarly, trimmomatic also allows to set minimum length of reads to keep using the setting "MINLEN:50". Previously, I didn't use it and it shouldn't have been active when not using it. Using the setting MINLEN:50, I loose just as many reads as without it:
ILLUMINACLIP: Using 1 prefix pairs, 4 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences Quality encoding detected as phred33 Input Read Pairs: 522798 Both Surviving: 90331 (17.28%) Forward Only Surviving: 301450 (57.66%) Reverse Only Surviving: 694 (0.13%) Dropped: 130323 (24.93%)
ILLUMINACLIP: Using 1 prefix pairs, 4 forward/reverse sequences, 0 forward only sequences, 0 reverse only sequences Quality encoding detected as phred33 Input Read Pairs: 285721 Both Surviving: 105796 (37.03%) Forward Only Surviving: 168809 (59.08%) Reverse Only Surviving: 117 (0.04%) Dropped: 10999 (3.85%)
etc etc