Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • konika
    Member
    • Sep 2010
    • 14

    #1

    Is high Kmer coverage in PE reads, good?

    Hi
    I am doing de novo assembly of a bacterial genome, through paired end reads using velvet.
    If I use Kmer length 75, in the Kmer coverage formula along with other parameters I get:

    Ck = C * (L - k + 1) / L
    Ck=(2935775*250*2/2900000) *(250-75+1)/250
    =356

    where length of reads in 250
    Number of reads:2935775
    expected genome size is 2900000

    Velvet manual says : If Ck is above 20, you might be "wasting" coverage. What does it mean and what Kmer should I choose?
    Last edited by konika; 05-21-2014, 04:10 AM.
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    Typically, the longer the kmer, the better the assembly, until you hit the point of too little coverage. Since you have nice long reads and fairly high coverage, you will probably get a better assembly with longer kmers, maybe K=127 or even higher. The assembly should be fast, so just try with a range of kmers and look at the L50 to see which appears to be best.

    However, I find that Velvet assemblies often get worse when the coverage is really high, so you may want to reduce it with normalization or subsampling.

    Comment

    • SES
      Senior Member
      • Mar 2010
      • 275

      #3
      Your genome coverage is pretty high, so I would recommend subsampling the data and then try VelvetOptimiser to find the best assembly parameters. The benefit of subsampling is usually a better assembly, but it also means the job will have lower computational requirements and faster run times.

      Comment

      • konika
        Member
        • Sep 2010
        • 14

        #4
        Hi, I have tried using subsample (40% of original number of reads) and run VelvetOptimiser on it, but get the result
        Velvet details:
        Velvet version: 1.2.08
        Compiled categories: 10
        Compiled max kmer length: 191
        Maximum number of velvetinstances to run: 1
        Will run velvet optimiser with the following paramters:
        Velveth parameter string:
        -shortPaired -fastq file1.fastq -shortPaired2 -fastq file2.fastq
        Velveth start hash values: 151
        Velveth end hash value: 153
        Velveth hash step value: 2
        Velvetg minimum coverage cutoff to use: 0

        Read tracking for final assembly off.
        File: file1.fastq has 1174310 reads of length 250
        File: file2.fastq has 1174310 reads of length 250
        Total reads: 2.3 million. Avg length: 250.0

        Memory use estimated to be: 230512.9GB for 1 threads.

        You probably won't have enough memory to run this job.
        Try decreasing the maximum number of threads used.
        (use the -t option to set max threads.)

        Any ideas, what should be done for this..
        Thanks

        Comment

        • konika
          Member
          • Sep 2010
          • 14

          #5
          Apart from this, I run velvetg on the subsample for Kmer hash 75-151, and kmercov 320-370 for each kmer length. I then compare all results for n50. Below is the result:
          file n50 total.length longest ncontig
          154 stats_h151_cov350.txt 20880 33577 20880 6
          155 stats_h151_cov360.txt 20880 33577 20880 6
          156 stats_h151_cov370.txt 20880 33577 20880 6
          151 stats_h151_cov320.txt 20880 33538 20880 6
          152 stats_h151_cov330.txt 20880 33518 20880 6
          153 stats_h151_cov340.txt 20880 33518 20880 6
          148 stats_h149_cov350.txt 20878 33569 20878 6
          149 stats_h149_cov360.txt 20878 33569 20878 6
          150 stats_h149_cov370.txt 20878 33569 20878 6
          146 stats_h149_cov330.txt 20878 33533 20878 6
          147 stats_h149_cov340.txt 20878 33508 20878 6
          145 stats_h149_cov320.txt 20878 33468 20878 6


          Looks like its in decreasing order of Kmer length for highest n50, and very small total length, something wrong with it?
          Last edited by konika; 05-26-2014, 02:42 AM. Reason: more to ask

          Comment

          • mastal
            Senior Member
            • Mar 2009
            • 666

            #6
            Originally posted by konika View Post
            Velvet details:
            Velvet version: 1.2.08
            Compiled categories: 10
            Try recompiling velvet with 'CATEGORIES=1'. I am assuming you only have 1 set of PE reads.


            Originally posted by konika View Post
            Will run velvet optimiser with the following paramters:
            Velveth parameter string:
            -shortPaired -fastq file1.fastq -shortPaired2 -fastq file2.fastq
            What parameters did you use to run Velvet Optimiser? It looks like you should have

            '-shortPaired -separate -fastq file1.fastq file2.fastq'

            if what you have is PE reads.

            Comment

            • mastal
              Senior Member
              • Mar 2009
              • 666

              #7
              Originally posted by konika View Post
              Apart from this, I run velvetg on the subsample for Kmer hash 75-151, and kmercov 320-370 for each kmer length. I then compare all results for n50. Below is the result:
              file n50 total.length longest ncontig
              154 stats_h151_cov350.txt 20880 33577 20880 6
              155 stats_h151_cov360.txt 20880 33577 20880 6
              156 stats_h151_cov370.txt 20880 33577 20880 6
              151 stats_h151_cov320.txt 20880 33538 20880 6
              152 stats_h151_cov330.txt 20880 33518 20880 6
              153 stats_h151_cov340.txt 20880 33518 20880 6
              148 stats_h149_cov350.txt 20878 33569 20878 6
              149 stats_h149_cov360.txt 20878 33569 20878 6
              150 stats_h149_cov370.txt 20878 33569 20878 6
              146 stats_h149_cov330.txt 20878 33533 20878 6
              147 stats_h149_cov340.txt 20878 33508 20878 6
              145 stats_h149_cov320.txt 20878 33468 20878 6


              Looks like its in decreasing order of Kmer length for highest n50, and very small total length, something wrong with it?


              The differences in n50 and total length are very small, I doubt that they are significant. How did you calculate the coverage, did Velvet Optimiser calculate the coverage? Velvet doesn't do so well with very high coverage.
              Last edited by mastal; 05-26-2014, 03:38 AM.

              Comment

              • konika
                Member
                • Sep 2010
                • 14

                #8
                Originally posted by mastal View Post
                Try recompiling velvet with 'CATEGORIES=1'. I am assuming you only have 1 set of PE reads.




                What parameters did you use to run Velvet Optimiser? It looks like you should have

                '-shortPaired -separate -fastq file1.fastq file2.fastq'

                if what you have is PE reads.
                Hi, Yes I am using just one set of paired end reads, will try with correct command and add 'CATEGORIES=1' there. New command will be :


                VelvetOptimiser.pl -s 75 -e 159 -t 1 -f '-shortPaired -separate -fastq file1.fastq -file2.fastq' --optFuncKmer 'n50' -g 2800000 -o '-exp_cov 350' 'CATEGORIES=1'
                looks ok?

                Comment

                • konika
                  Member
                  • Sep 2010
                  • 14

                  #9
                  Originally posted by mastal View Post
                  The differences in n50 and total length are very small, I doubt that they are significant. How did you calculate the coverage, did Velvet Optimiser calculate the coverage? Velvet doesn't do so well with very high coverage.
                  Hi, I describe the Kmer coverage calculation above in the first post. This result was from a subsample of total reads. Yes,it is quite high coverage, waiting for velvetOptimiser to run.
                  Last edited by konika; 05-26-2014, 04:27 AM.

                  Comment

                  • mastal
                    Senior Member
                    • Mar 2009
                    • 666

                    #10
                    Not sure that you can adjust the number of categories when running velvet optimiser, it may just be reporting the settings you have on velvet.

                    You may need to recompile velvet. Reducing the MAXKMERLENGTH (to the longest kmer you actually are going to use) when recompiling velvet should also reduce the memory usage.

                    Comment

                    • mastal
                      Senior Member
                      • Mar 2009
                      • 666

                      #11
                      Originally posted by konika View Post
                      Hi, I describe the Kmer coverage calculation above in the first post. This result was from a subsample of total reads. Yes,it is quite high coverage, waiting for velvetOptimer to run.
                      OK, if you have subsampled your data, then you are using fewer reads and so your coverage will be proportionally less. Can velvet optimiser give you the correct value to use for coverage?

                      Comment

                      • konika
                        Member
                        • Sep 2010
                        • 14

                        #12
                        I solved the memory thing, It was due to the wrong genome size.
                        The size should be in megabases so 2.8. Will post if I get useful result from VelvetOptimiser. Thanks

                        Comment

                        Latest Articles

                        Collapse

                        • SEQadmin2
                          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                          by SEQadmin2



                          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                          Despite this, “CRISPR helped turn genome editing from a specialized technique into
                          ...
                          07-31-2026, 11:01 AM
                        • SEQadmin2
                          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                          by SEQadmin2


                          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                          The systematic characterization of the human proteome has
                          ...
                          07-20-2026, 11:48 AM
                        • SEQadmin2
                          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                          by SEQadmin2



                          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                          ...
                          07-09-2026, 11:10 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by SEQadmin2, 07-31-2026, 02:55 AM
                        0 responses
                        18 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-24-2026, 12:17 PM
                        0 responses
                        15 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-23-2026, 11:41 AM
                        0 responses
                        14 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-20-2026, 11:10 AM
                        0 responses
                        25 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...