Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bio_informatics
    Senior Member
    • Nov 2013
    • 182

    SPAdes: erroneous kmer threshold

    Hello Members,

    I'm working with E. coli, paired end, Illumina data. Using SPAdes 3.5 version.
    SLURM Environment. 128 gb RAM node.

    I checked out QUAST report for one of isolate which was alarmingly high for an E. coli:- 6.592727 mb, with 918 contigs (1000>= bp).

    Code:
    zcat file_R1_001.fastq.gz | awk '{if(NR%4==2) print length($1)} ' | head -1
    Read length: 103

    I traced back to warnings.log file for its assembly run, it says:

    === Error correction and assembling warnings:
    * 0:03:13.851 484M / 9G WARN General (kmer_coverage_model.cpp : 327) Valley value was estimated improperly, reset to 1
    * 0:02:26.558 620M / 9G WARN General (kmer_coverage_model.cpp : 327) Valley value was estimated improperly, reset to 4
    * 0:02:26.565 620M / 9G WARN General (kmer_coverage_model.cpp : 366) Failed to determine erroneous kmer threshold. Threshold set to: 4
    ======= Warnings saved to $HOME/Docs/warnings.log
    No idea how and what is causing it.
    Meanwhile, I shall check fastqc report, see if that would make sense to me.

    Any guidance would be of great help.

    Thank you.
    Last edited by bio_informatics; 05-14-2015, 07:04 AM.
    Bioinformaticscally calm
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    With such a large assembly, I'd suspect contamination. I suggest you look at the GC vs coverage distribution of contigs; you may get two distinct clouds for different organisms. Also blasting them may help figure it out.

    If this is an isolate rather than single cell, a kmer frequency histogram could also indicate the presence of multiple organisms. None of these will help much if it's two strains of e.coli, though.

    Comment

    • bio_informatics
      Senior Member
      • Nov 2013
      • 182

      #3
      Hi Brian,

      Thanks for your reply.
      I checked fastqc report, they were reasonably well. Not too much of quality drop.
      It's an isolate.

      - Is there any free tool to check GC vs coverage distribution?
      - Should I blast the whole assembly in NCBI?
      - would kmer frequency by kmergeinie be something good?

      I apologize for such naive questions. I've not come across this situation.

      Thanks for your guidance.

      Originally posted by Brian Bushnell View Post
      With such a large assembly, I'd suspect contamination. I suggest you look at the GC vs coverage distribution of contigs; you may get two distinct clouds for different organisms. Also blasting them may help figure it out.

      If this is an isolate rather than single cell, a kmer frequency histogram could also indicate the presence of multiple organisms. None of these will help much if it's two strains of e.coli, though.
      Bioinformaticscally calm

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        Was this single cell, or isolate? If single-cell, a kmer-frequency histogram won't help, but it will for isolates. Kmer-genie produces the wrong kind of histogram; the kind you need is for the number of unique kmers per depth for a fixed kmer length. You can generate that using BBNorm like this:

        khist.sh in=reads.fq hist=histogram.txt

        The GC versus coverage plot can be generated fairly easily with BBMap:

        bbmap.sh ref=assembly.fa in=reads.fq covstats=covstats.txt fast

        The covstats file will list the length, coverage, and gc content of all contigs.

        The simplest thing to do, though, is probably to blast the entire assembly versus nt and see what you get. I have never personally done that, though; I think when we do it here we use some kind of wrapper that summarizes which taxa are hit in which amounts. Not sure how complicated that wrapper is; I only interact with blast via a browser, one sequence at a time

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          Not sure if I am following the thought here. Blasting will identify contamination i.e. some of those 918 contigs would not have E coli as the best hit?

          Comment

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #6
            Originally posted by GenoMax View Post
            Not sure if I am following the thought here. Blasting will identify contamination i.e. some of those 918 contigs would not have E coli as the best hit?
            Yep. E.coli should only account for ~4.5Mbp of the assembly, so the remaining 2Mbp are probably either misassemblies or contaminant. That's enough for another complete (small) genome.

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              Or one or more plasmids.

              But this may get complicated since depending on how good the assembly is E coli may not be the top/best/only hit. We shall see what OP finds.

              Comment

              • bio_informatics
                Senior Member
                • Nov 2013
                • 182

                #8
                @Genomax, Brian: Thank you for your inputs.
                I spoke with my team mates. The data we have is contaminated. Isolate shall be put on re-sequencing in couple of weeks.

                I skipped k-mer v/s gc (something) plots, and BLAST.

                Thanks again for your valuable suggestions, and guidance.
                Bioinformaticscally calm

                Comment

                • boetsie
                  Senior Member
                  • Feb 2010
                  • 245

                  #9
                  The plot that Brian mentioned can be produced with GAEMR (http://www.broadinstitute.org/softwa...erence-manual/). See an example of the plot at Figure 6.1 'Blast Bubbles'

                  Comment

                  • bio_informatics
                    Senior Member
                    • Nov 2013
                    • 182

                    #10
                    @boetsie:
                    Thanks for pointing to this tool.
                    This looks to have a whole lot of utility with it.

                    Originally posted by boetsie View Post
                    The plot that Brian mentioned can be produced with GAEMR (http://www.broadinstitute.org/softwa...erence-manual/). See an example of the plot at Figure 6.1 'Blast Bubbles'
                    Bioinformaticscally calm

                    Comment

                    Latest Articles

                    Collapse

                    • 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, 07-02-2026, 11:08 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-30-2026, 05:37 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-26-2026, 11:10 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-17-2026, 06:09 AM
                    0 responses
                    55 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...