Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chjp0632
    Junior Member
    • Feb 2012
    • 9

    #1

    wired assembly result--abysmally short contigs

    Hi, all:

    We sequenced two Bacillus strains for about 300X using Illumina Miseq paired-end sequencing. Our library is built by Nextera XT kit, which produces a wide range of fragment size, average fragment size is 1,000kb, range from 300 to 3,000kb.

    I run Velvet assembler using these command lines: 1) ./bin/velvet_1.2.10/velveth out 33 -fastq -short ./P06_S1_L001_R1_001.fastq ./P06_S1_L001_R2_001.fastq
    2) velvetg out -exp_cov auto -ins_length 1044 -scaffolding yes

    The contig distribution is as below:
    100:199 199670
    200:299 9825
    300:399 287
    400:499 73
    500:599 24
    600:699 18
    700:799 9
    800:899 2
    900:999 4
    1000:1099 1
    1100:1199 2
    1200:1299 2
    Extremely short contigs, expecially considering reads are 250bp long!

    1) First I suspect the sequenced samples may be contaminated with other organism DNA. Therefore I mapped the reads to a close reference. 90% of reads can map by Bowtie with default parameters. We were afraid that sequencing may be biased, so we draw coverage depth distribution (shown in attached Rplot.jpeg). Though some loci are strongly biased and were sequenced 7000fold, they were just a small propotion.

    2) We also draw k-mer distribution to screen possible abysmal repeat or sequencing errors (shown in attached histogram-k29.histo.pdf). But the figure looks normal.

    What would you do if you meet these problems?
    Attached Files
  • samanta
    Senior Member
    • Feb 2010
    • 108

    #2
    My first guess (based on seeing your histograms-k29 chart):

    Your coverage is very high and that is making the assembler believe that some noisy k-mers are real. One way to check whether that is really the case, try assembling only 1/6th of the reads and see whether the quality goes up. Alternatively, you can assemble the entire set, but play with Velvet parameter that filters out k-mers below certain frequency.

    Let's see the results, and then we can brainstorm other possibilities/solutions.

    P.S. Weird, not wired. We call it wired, when the assembly works
    http://homolog.us

    Comment

    • mcnelson.phd
      Senior Member
      • Jul 2011
      • 162

      #3
      A couple of things could be going on here.

      First, make sure that your reads have had the Nextera adapter sequence trimmed off. When setting up the sample sheet for sequencing XT libraries, this should normally be turned on, but as some users have found out some core facilities don't do that. For all of your reads that were longer than the sequenced fragment, those adapter sequences will cause the assembler to choke and die or else give lots of small contigs because it can't properly resolve the graph.

      If you're sure that the adapter sequences have been trimmed, try merging reads that can be overlapped into single reads. That will remove some of the range for the pair distance, and if you feed a mix of merged single reads and paired reads, you should get a better assembly than just having paired reads with a large pair distance. There are a bunch of programs that can do the merging for you, we use SeqPrep but FLASH and numerous others are widely used as well.

      It doesn't look like you did any quality trimming, based on the commands you listed (P06_S1_L001_R1_001.fastq would be a direct output file from MiSeq Reporter based on its name), so you should probably give that a try. With 300x coverage, bad reads and parts of reads will prevent velvet from collapsing a lot of bubbles in the graph which will result in lots of small contigs. Additionally, increasing the kmer size should help the assembly as well after you quality trim. You can also try using khmer to down-sample/normalize your data so erroneous reads/kmers don't cause issues.

      Comment

      • mastal
        Senior Member
        • Mar 2009
        • 666

        #4
        Originally posted by chjp0632 View Post

        I run Velvet assembler using these command lines: 1) ./bin/velvet_1.2.10/velveth out 33 -fastq -short ./P06_S1_L001_R1_001.fastq ./P06_S1_L001_R2_001.fastq
        2) velvetg out -exp_cov auto -ins_length 1044 -scaffolding yes

        If you want velvet to treat the reads as paired reads you need to use the flags -shortPaired and -separate.

        Code:
        ./bin/velvet_1.2.10/velveth out 33 -fastq -shortPaired -separate ./P06_S1_L001_R1_001.fastq ./P06_S1_L001_R2_001.fastq

        Comment

        • chjp0632
          Junior Member
          • Feb 2012
          • 9

          #5
          Originally posted by samanta View Post
          My first guess (based on seeing your histograms-k29 chart):

          Your coverage is very high and that is making the assembler believe that some noisy k-mers are real. One way to check whether that is really the case, try assembling only 1/6th of the reads and see whether the quality goes up. Alternatively, you can assemble the entire set, but play with Velvet parameter that filters out k-mers below certain frequency.

          Let's see the results, and then we can brainstorm other possibilities/solutions.

          P.S. Weird, not wired. We call it wired, when the assembly works
          I subsample the sequencing data to 300k pairs of reads, 500k, 1million, 2m, 3m and 4m. The SOAPdenovo result is shown below:

          #ReadPair 300k 500k 1m 2m 3m 4m
          N50 13740 24563 16256 2721 941 522

          The result indicates that 500k pair of 250 bp reads produce most continuous contigs by SOAPdenovo. Velvet's performance on these data sets show similar trends. Therefor 5 million sequencing reads may be more than enough.

          Comment

          • chjp0632
            Junior Member
            • Feb 2012
            • 9

            #6
            Originally posted by mcnelson.phd View Post
            A couple of things could be going on here.

            If you're sure that the adapter sequences have been trimmed, try merging reads that can be overlapped into single reads. That will remove some of the range for the pair distance, and if you feed a mix of merged single reads and paired reads, you should get a better assembly than just having paired reads with a large pair distance. There are a bunch of programs that can do the merging for you, we use SeqPrep but FLASH and numerous others are widely used as well.

            It doesn't look like you did any quality trimming, based on the commands you listed (P06_S1_L001_R1_001.fastq would be a direct output file from MiSeq Reporter based on its name), so you should probably give that a try. With 300x coverage, bad reads and parts of reads will prevent velvet from collapsing a lot of bubbles in the graph which will result in lots of small contigs. Additionally, increasing the kmer size should help the assembly as well after you quality trim. You can also try using khmer to down-sample/normalize your data so erroneous reads/kmers don't cause issues.
            1) Merging the reads to longer single reads are good suggestions, but I am also worried about false merge. Can SeqPrep and FLASH distinguish true read extension from false one?

            2) Reads treaming and down-sampling reads can be saved if we use SPAdes assembler. I used it and save much time. It automatically assembled different subsample data with different kmers and merge the results.

            3) Compared with SOAPdenovo and Velvet, our result shows SPAdes performed best on contig contiguity for this data set.

            Comment

            • krobison
              Senior Member
              • Nov 2007
              • 734

              #7
              WRT to Flash, SeqPrep, etc -- you will get a lot of valid merges. You will also get some false merges if the reads overlap repeats in an unfortunate way.

              I would recommend also trying a kmer-based error corrector such as MUSKET.

              A lot of people are liking SPADES assembler, which has a cleanup step built in. I have very good luck with Ray. Velvet is the old workhorse, but many newer programs deliver more contiguous assemblies.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                Yesterday, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 10:52 AM
              0 responses
              8 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 05:39 AM
              0 responses
              17 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-13-2026, 09:56 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-09-2026, 11:14 AM
              0 responses
              27 views
              0 reactions
              Last Post SEQadmin2  
              Working...