Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • DeondeJager
    Junior Member
    • Jun 2017
    • 4

    5' Kmers problem with whole genome re-sequencing data

    Hi all,

    I am having some issues with getting rid of kmers in my sequencing data sets. We have re-sequenced several African buffalo genomes on an Illumina HiSeq X machine, 150bp paired-end reads. I ran FastQC on the raw reads and all samples pass the adapters and overrepresented sequences tests, but some fail the kmer test (length = 7 nucleotides). The samples either have kmers overrepresented at the 5' or 3' end. I can see that at least the 3' kmers are actually part of the Illumina adapters used (but FastQC is not picking these up in the adapter test), but the 5' kmers do not seem to be part of the adapters, as far as I can tell.

    Trimmomatic successfully removes the 3' kmers of one sample, but not the 5' kmers of another sample. The same goes for Trim Galore (cutadapt), which can only remove adapter sequences from the 3' end of the reads (as far as I can tell from the cutadapt documentation). The per base quality is almost always above phred=20. This is the relevant part of the code I used for Trimmomatic and Trim Galore:

    Trimmomatic: ILLUMINACLIP:/apps/chpc/bio/trimmomatic/0.36/bin/adapters/TruSeq3-PE-2.fa:2:30:10:1:true SLIDINGWINDOW:4:20 MINLEN:36

    Trim Galore: trim_galore -q 20 --phred33 --stringency 1 -e 0.1 --length 36 -o /mnt/lustre/users/djager/trim_galore_out --paired --retain_unpaired -r1 37 -r2 37

    Is there any way I can remove the 5' kmers without having to trim the 5' nucleotides of all the reads? Are these 5' kmers perhaps biological sequences?

    The FastQC results are attached. The examples are all for the forward reads.
    Attached Files
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    5' is most likely biological, a known artifact of fragmentation site bias and should be ignored. Nextera libraries in particular demonstrate this bias very strongly but it does not seem to have much impact downstream, and trimming it won't accomplish anything.

    Comment

    • DeondeJager
      Junior Member
      • Jun 2017
      • 4

      #3
      Originally posted by Brian Bushnell View Post
      5' is most likely biological, a known artifact of fragmentation site bias and should be ignored. Nextera libraries in particular demonstrate this bias very strongly but it does not seem to have much impact downstream, and trimming it won't accomplish anything.
      Thanks for the reply, Brian! I remember reading something about this fragmentation bias, now that you mention it, but I wasn't too sure if it applied to TruSeq as well. So I thought I'd rather be as thorough as possible and get some thoughts from the community before moving onto the next step.

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        With TruSeq the shearing and adapters are independent, so I suppose it depends on your shearing process. I don't have any data for this but I would expect any enzymatic process to incur bias but sonication much less so. You can always test whether the uneven base composition is genomic or synthetic by mapping and calculating the mismatch rate by read position. If it is no higher at the spiky 3' end then the spikes are genomic and just caused by bias. If there is a high mismatch rate they are probably synthetic and should be trimmed, but I have never seen that happen in a normal fragment library.

        Comment

        • DeondeJager
          Junior Member
          • Jun 2017
          • 4

          #5
          Originally posted by Brian Bushnell View Post
          With TruSeq the shearing and adapters are independent, so I suppose it depends on your shearing process. I don't have any data for this but I would expect any enzymatic process to incur bias but sonication much less so. You can always test whether the uneven base composition is genomic or synthetic by mapping and calculating the mismatch rate by read position. If it is no higher at the spiky 3' end then the spikes are genomic and just caused by bias. If there is a high mismatch rate they are probably synthetic and should be trimmed, but I have never seen that happen in a normal fragment library.
          Thanks for this suggestion. I mapped the sample with kmers at the 5' end (sample 2 in graphs of first post = sample B98_289 in histograms below) using bwa, and also mapped a sample with no overrepresented kmers (B98_579 in histograms below) and then calculated the mismatch (or actually the match) rate per read position using the mhist function in bbduk.

          Code:
          ~/programs/bbmap/bbmap/bbduk.sh in=B98_289_DSW37627_HJMJMALXX_L2_clean_aln-PE_sorted.bam mhist=mhist.txt qhist=qhist.txt out=bbdukhist.txt
          Assuming that this was the correct way to look at the mismatch rate per read position, it would seem that the spikes are genomic and just caused by a bias of some sort, because the distribution looks the same as the sample without overrespresented Kmers (B98_579) and thus the reduced match at the ends of reads seems to be normal? But it is still high (>96%).
          Attached Files

          Comment

          • DeondeJager
            Junior Member
            • Jun 2017
            • 4

            #6
            Originally posted by Brian Bushnell View Post
            You can always test whether the uneven base composition is genomic or synthetic by mapping and calculating the mismatch rate by read position. If it is no higher at the spiky 3' end then the spikes are genomic and just caused by bias. If there is a high mismatch rate they are probably synthetic and should be trimmed, but I have never seen that happen in a normal fragment library.
            Hi again Brian,

            I calculated the mismatch (or actually the match) rate from the .bam file using the mhist function in bbduk (mapping was done with bwa and of course the .bam files were produced with samtools).

            Code:
            ~/programs/bbmap/bbmap/bbduk.sh in=B98_289_DSW37627_HJMJMALXX_L2_clean_aln-PE_sorted.bam mhist=mhist.txt qhist=qhist.txt out=bbdukhist.txt
            For the sample with overrepresented kmers at the 5' end (sample2 in fastqc plots above = sample B98_289 in histograms below) there is a slight decrease in the match rate for the 5' and 3' ends of the reads, compared to the middle of the reads. However, this is not different from a sample that had no overrepresented kmers anywhere (sample B98_579). Therefore, it seems that the overrepresented kmers are genomic and not synthetic. Would you agree?
            Attached Files

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #7
              Originally posted by DeondeJager View Post
              For the sample with overrepresented kmers at the 5' end (sample2 in fastqc plots above = sample B98_289 in histograms below) there is a slight decrease in the match rate for the 5' and 3' ends of the reads, compared to the middle of the reads. However, this is not different from a sample that had no overrepresented kmers anywhere (sample B98_579). Therefore, it seems that the overrepresented kmers are genomic and not synthetic. Would you agree?
              Yes, it sounds like it's probably fine to me... no trimming needed.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                Today, 05:17 AM
              • GATTACAT
                Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by GATTACAT
                Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                07-01-2026, 11:43 AM
              • SEQadmin2
                Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by SEQadmin2


                I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                Here are nine questions we think about, in roughly the order they matter, before...
                06-18-2026, 07:11 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 10:08 AM
              0 responses
              6 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 11:05 AM
              0 responses
              7 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-30-2026, 05:37 AM
              0 responses
              28 views
              0 reactions
              Last Post SEQadmin2  
              Working...