Sequence assembly
This article needs additional citations for verification. (October 2017) |
In bioinformatics, sequence assembly refers to aligning and merging fragments from a longer DNA sequence in order to reconstruct the original sequence.[1] This is needed as DNA sequencing technology might not be able to 'read' whole genomes in one go, but rather reads small pieces of between 20 and 30,000 bases, depending on the technology used.[1] Typically, the short fragments (reads) result from shotgun sequencing genomic DNA, or gene transcript (ESTs).[1]
The problem of sequence assembly can be compared to taking many copies of a book, passing each of them through a shredder with a different cutter, and piecing the text of the book back together just by looking at the shredded pieces. Besides the obvious difficulty of this task, there are some extra practical issues: the original may have many repeated paragraphs, and some shreds may be modified during shredding to have typos. Excerpts from another book may also be added in, and some shreds may be completely unrecognizable.
Types
[edit]There are three approaches to assembling sequencing data:
- De-novo: assembling sequencing reads to create full-length (sometimes novel) sequences, without using a template (see de novo sequence assemblers, de novo transcriptome assembly)[2]
- Mapping/Aligning: assembling reads by aligning reads against a template (AKA reference). The assembled consensus may not be identical to the template.
- Reference-guided: grouping of reads by similarity to the most similar region within the reference (step wise mapping). Reads within each group are then shortened down to mimic short reads quality. A typical method to do so is the k-mer approach. Reference-guided assembly is most useful using long-reads.[3]
Referenced-guided assembly is a combination of the other types. This type is applied on long reads to mimic short reads advantages (i.e. call quality). The logic behind it is to group the reads by smaller windows within the reference. Reads in each group will then be reduced in size using the k-mere approach to select the highest quality and most probable contiguous (contig). Contigs will then will be joined together to create a scaffold. The final consense is made by closing any gaps in the scaffold.
Assemblies
[edit]Genome
[edit]The first sequence assemblers began to appear in the late 1980s and early 1990s as variants of simpler sequence alignment programs to piece together vast quantities of fragments generated by automated sequencing instruments called DNA sequencers.[2] As the sequenced organisms grew in size and complexity (from small viruses over plasmids to bacteria and finally eukaryotes), the assembly programs used in these genome projects needed increasingly sophisticated strategies to handle:
- terabytes of sequencing data which need processing on computing clusters;
- identical and nearly identical sequences (known as repeats) which can, in the worst case, increase the time and space complexity of algorithms quadratically;
- DNA read errors in the fragments from the sequencing instruments, which can confound assembly.
Faced with the challenge of assembling the first larger eukaryotic genomes—the fruit fly Drosophila melanogaster in 2000 and the human genome just a year later,—scientists developed assemblers like Celera Assembler[4] and Arachne[5] able to handle genomes of 130 million (e.g., the fruit fly D. melanogaster) to 3 billion (e.g., the human genome) base pairs. Subsequent to these efforts, several other groups, mostly at the major genome sequencing centers, built large-scale assemblers, and an open source effort known as AMOS[6] was launched to bring together all the innovations in genome assembly technology under the open source framework.
EST
[edit]Expressed sequence tag or EST assembly was an early strategy, dating from the mid-1990s to the mid-2000s, to assemble individual genes rather than whole genomes.[7] The problem differs from genome assembly in several ways. The input sequences for EST assembly are fragments of the transcribed mRNA of a cell and represent only a subset of the whole genome.[7] A number of algorithmical problems differ between genome and EST assembly. For instance, genomes often have large amounts of repetitive sequences, concentrated in the intergenic regions. Transcribed genes contain many fewer repeats, making assembly somewhat easier. On the other hand, some genes are expressed (transcribed) in very high numbers (e.g., housekeeping genes), which means that unlike whole-genome shotgun sequencing, the reads are not uniformly sampled across the genome.
EST assembly is made much more complicated by features like (cis-) alternative splicing, trans-splicing, single-nucleotide polymorphism, and post-transcriptional modification. Beginning in 2008 when RNA-Seq was invented, EST sequencing was replaced by this far more efficient technology, described under de novo transcriptome assembly.
De-novo vs mapping assembly
[edit]In terms of complexity and time requirements, de-novo assemblies are orders of magnitude slower and more memory intensive than mapping assemblies. This is mostly due to the fact that the assembly algorithm needs to compare every read with every other read (an operation that has a naive time complexity of O(n2)). Current de-novo genome assemblers may use different types of graph-based algorithms, such as the:[8]
- Overlap/Layout/Consensus (OLC) approach, which was typical of the Sanger-data assemblers and relies on an overlap graph;
- de Bruijn Graph (DBG) approach, which is most widely applied to the short reads from the Solexa and SOLiD platforms. It relies on K-mer graphs, which performs well with vast quantities of short reads;
- Greedy graph-based approach, which may also use one of the OLC or DBG approaches. With greedy graph-based algorithms, the contigs, series of reads aligned together[further explanation needed], grow by greedy extension, always taking on the read that is found by following the highest-scoring overlap.[3]
Referring to the comparison drawn to shredded books in the introduction: while for mapping assemblies one would have a very similar book as a template (perhaps with the names of the main characters and a few locations changed), de-novo assemblies present a more daunting challenge in that one would not know beforehand whether this would become a science book, a novel, a catalogue, or even several books. Also, every shred would be compared with every other shred.
Handling repeats in de-novo assembly requires the construction of a graph representing neighboring repeats. Such information can be derived from reading a long fragment covering the repeats in full or only its two ends. On the other hand, in a mapping assembly, parts with multiple or no matches are usually left for another assembling technique to look into.[3]
Technological advances
[edit]The complexity of sequence assembly is driven by two major factors: the number of fragments and their lengths. While more and longer fragments allow better identification of sequence overlaps, they also pose problems as the underlying algorithms show quadratic or even exponential complexity behaviour to both number of fragments and their length. And while shorter sequences are faster to align, they also complicate the layout phase of an assembly as shorter reads are more difficult to use with repeats or near identical repeats.
In the earliest days of DNA sequencing, scientists could only gain a few sequences of short length (some dozen bases) after weeks of work in laboratories. Hence, these sequences could be aligned in a few minutes by hand.
In 1975, the dideoxy termination method (AKA Sanger sequencing) was invented and until shortly after 2000, the technology was improved up to a point where fully automated machines could churn out sequences in a highly parallelised mode 24 hours a day. Large genome centers around the world housed complete farms of these sequencing machines, which in turn led to the necessity of assemblers to be optimised for sequences from whole-genome shotgun sequencing projects where the reads
- are about 800–900 bases long
- contain sequencing artifacts like sequencing and cloning vectors
- have error rates between 0.5 and 10%
With the Sanger technology, bacterial projects with 20,000 to 200,000 reads could easily be assembled on one computer. Larger projects, like the human genome with approximately 35 million reads, needed large computing farms and distributed computing.
By 2004 / 2005, pyrosequencing had been brought to commercial viability by 454 Life Sciences.[9] This new sequencing method generated reads much shorter than those of Sanger sequencing: initially about 100 bases, now 400-500 bases.[9] Its much higher throughput and lower cost (compared to Sanger sequencing) pushed the adoption of this technology by genome centers, which in turn pushed development of sequence assemblers that could efficiently handle the read sets. The sheer amount of data coupled with technology-specific error patterns in the reads delayed development of assemblers; at the beginning in 2004 only the Newbler assembler from 454 was available. Released in mid-2007, the hybrid version of the MIRA assembler by Chevreux et al.[10] was the first freely available assembler that could assemble 454 reads as well as mixtures of 454 reads and Sanger reads. Assembling sequences from different sequencing technologies was subsequently coined hybrid assembly.[10]
From 2006, the Illumina (previously Solexa) technology has been available and can generate about 100 million reads per run on a single sequencing machine. Compare this to the 35 million reads of the human genome project which needed several years to be produced on hundreds of sequencing machines.[11] Illumina was initially limited to a length of only 36 bases, making it less suitable for de novo assembly (such as de novo transcriptome assembly), but newer iterations of the technology achieve read lengths above 100 bases from both ends of a 3-400bp clone.[11] Announced at the end of 2007, the SHARCGS assembler[12] by Dohm et al. was the first published assembler that was used for an assembly with Solexa reads. It was quickly followed by a number of others.
Later, new technologies like SOLiD from Applied Biosystems, Ion Torrent and SMRT were released and new technologies (e.g. Nanopore sequencing) continue to emerge. Despite the higher error rates of these technologies they are important for assembly because their longer read length helps to address the repeat problem.[11] It is impossible to assemble through a perfect repeat that is longer than the maximum read length; however, as reads become longer the chance of a perfect repeat that large becomes small. This gives longer sequencing reads an advantage in assembling repeats even if they have low accuracy (~85%).[11]
Quality control
[edit]Most sequence assemblers have some algorithms built in for quality control, such as Phred.[13] However, such measures do not assess assembly completeness in terms of gene content. Some tools evaluate the quality of an assembly after the fact.
For instance, BUSCO (Benchmarking Universal Single-Copy Orthologs) is a measure of gene completeness in a genome, gene set, or transcriptome, using the fact that many genes are present only as single-copy genes in most genomes.[14] The initial BUSCO sets represented 3023 genes for vertebrates, 2675 for arthropods, 843 for metazoans, 1438 for fungi and 429 for eukaryotes. This table shows an example for human and fruit fly genomes:[14]
Species | genes | C: | D: | F: | M: | n: |
---|---|---|---|---|---|---|
Homo sapiens | 20,364 | 99 | 1.7 | 0.0 | 0.0 | 3,023 |
Drosophila melanogaster | 13,918 | 99 | 3.7 | 0.2 | 0.0 | 2,675 |
Assembly algorithms
[edit]Different organisms have a distinct region of higher complexity within their genome. Hence, the need of different computational approaches is needed. Some of the commonly used algorithms are:
- Graph Assembly: is based on Graph theory in computer science. The de Bruijn Graph is an example of this approach and utilizes k-mers to assemble a contiguous from reads.[15]
- Greedy Graph Assembly: this approach score each added read to the assembly and selects the highest possible score from the overlapping region.
Given a set of sequence fragments, the object is to find a longer sequence that contains all the fragments (see figure under Types of Sequence Assembly):
- Сalculate pairwise alignments of all fragments.
- Choose two fragments with the largest overlap.
- Merge chosen fragments.
- Repeat step 2 and 3 until only one fragment is left.
The result might not be an optimal solution to the problem.
Bioinformatics pipeline
[edit]In general, there are three steps in assembling sequencing reads into a scaffold:
- Pre-assembly: This step is essential to ensure the integrity of downstream analysis such as variant calling or final scaffold sequence. This step consists of two chronological workflows:
- Quality check: Depending on the type of sequencing technology, different errors might arise that would lead to a false base call. For example, sequencing "NAAAAAAAAAAAAN" and "NAAAAAAAAAAAN" which include 12 adenine might be wrongfully called with 11 adenine instead. Sequencing a highly repetitive segment of the target DNA/RNA might result in a call that is one base shorter or one base longer. Read quality is typically measured by Phred which is an encoded score of each nucleotide quality within a read's sequence. Some sequencing technologies such as PacBio do not have a scoring method for their sequenced reads. A common tool used in this step is FastQC.[16]
- Filtering of reads: Reads that failed to pass the quality check should be removed from the FASTQ file to get the best assembly contigs.
- Assembly: During this step, reads alignment will be utilized with different criteria to map each read to the possible location. The predicted position of a read is based on either how much of its sequence aligns with other reads or a reference. Different alignment algorithms are used for reads from different sequencing technologies. Some of the commonly used approaches in the assembly are de Bruijn graph and overlapping. Read length, coverage, quality, and the sequencing technique used plays a major role in choosing the best alignment algorithm in the case of Next Generation Sequencing.[17] On the other hand, algorithms aligning 3rd generation sequencing reads requires advance approaches to account for the high error rate associated with them.
- Post-assembly: This step is focusing on extracting valuable information from the assembled sequence. Comparative genomics and population analysis are examples of post-assembly analysis.
Programs
[edit]For a lists of de-novo assemblers, see De novo sequence assemblers. For a list of mapping aligners, see List of sequence alignment software § Short-read sequence alignment.
Some of the common tools used in different assembly steps are listed in the following table:
Software | Read type | Tool web page | Notes |
---|---|---|---|
FastQC | Multiple | https://www.bioinformatics.babraham.ac.uk/projects/fastqc/ | This is a common tool used to check reads quality from different sequencing technologies such as Illumina, 454, and PacBio. |
BWA | Short & Long reads | https://sourceforge.net/projects/bio-bwa/files/ | This is a command line tool. Mostly known for lightweight run and accurate sequence alignment. |
MiniMap2 | Long reads | https://github.com/lh3/minimap2 | This command line tool is designed to handle PacBio & Oxford Nanopore and reads with 15% error rate. |
bwa-mem2 | Short & Long reads | https://github.com/bwa-mem2/bwa-mem2 | This command line tool is a performance optimized development, and drop-in replacement, of the BWA program.[18] |
bwa-meme | Short & Long reads | https://github.com/kaist-ina/BWA-MEME | This command line tool is a performance optimized development, and drop-in replacement, of the bwa-mem2 algorithm utilizing Machine Learning.[19] |
LoReTTA | Long reads | https://github.com/salvocamiolo/LoReTTA/releases/tag/v0.1 | This tool is designed to assemble (reference-guided) viral genomes at a greater accuracy using PacBio CCS reads. |
SPAdes | Short & Long reads | http://cab.spbu.ru/software/spades/ | This is an assembly tool that runs on the command line. |
Samtools | Alignment analysis | https://samtools.github.io | This is useful post-assembly. It can generate different statistics and perform multiple filtering steps to the alignment file. |
See also
[edit]- De novo sequence assemblers
- Sequence alignment
- De novo transcriptome assembly
- Set cover problem
- List of sequenced animal genomes
- Plant genome assembly
References
[edit]- ^ a b c Sohn JI, Nam JW (January 2018). "The present and future of de novo whole-genome assembly". Briefings in Bioinformatics. 19 (1): 23–40. doi:10.1093/bib/bbw096. PMID 27742661.
- ^ a b Baker M (27 March 2012). "De novo genome assembly: what every biologist should know". Nature Methods. 9 (4): 333–337. doi:10.1038/nmeth.1935. ISSN 1548-7105.
- ^ a b c Wolf B. "De novo genome assembly versus mapping to a reference genome" (PDF). University of Applied Sciences Western Switzerland. Retrieved 6 April 2019.
- ^ Myers EW, Sutton GG, Delcher AL, Dew IM, Fasulo DP, Flanigan MJ, et al. (March 2000). "A whole-genome assembly of Drosophila". Science. 287 (5461): 2196–2204. Bibcode:2000Sci...287.2196M. CiteSeerX 10.1.1.79.9822. doi:10.1126/science.287.5461.2196. PMID 10731133. S2CID 6049420.
- ^ Batzoglou S, Jaffe DB, Stanley K, Butler J, Gnerre S, Mauceli E, et al. (January 2002). "ARACHNE: a whole-genome shotgun assembler". Genome Research. 12 (1): 177–189. doi:10.1101/gr.208902. PMC 155255. PMID 11779843.
- ^ "AMOS WIKI". amos.sourceforge.net. Retrieved 2023-01-02.
- ^ a b Nagaraj SH, Gasser RB, Ranganathan S (January 2007). "A hitchhiker's guide to expressed sequence tag (EST) analysis". Briefings in Bioinformatics. 8 (1): 6–21. doi:10.1093/bib/bbl015. PMID 16772268.
- ^ Li Z, Chen Y, Mu D, Yuan J, Shi Y, Zhang H, et al. (January 2012). "Comparison of the two major classes of assembly algorithms: overlap-layout-consensus and de-bruijn-graph". Briefings in Functional Genomics. 11 (1): 25–37. doi:10.1093/bfgp/elr035. PMID 22184334.
- ^ a b Harrington CT, Lin EI, Olson MT, Eshleman JR (September 2013). "Fundamentals of pyrosequencing". Archives of Pathology & Laboratory Medicine. 137 (9): 1296–1303. doi:10.5858/arpa.2012-0463-RA. PMID 23991743.
- ^ a b "MIRA 2.9.8 for 454 and 454 / Sanger hybrid assembly". groups.google.com. Retrieved 2023-01-02.
- ^ a b c d Hu T, Chitnis N, Monos D, Dinh A (November 2021). "Next-generation sequencing technologies: An overview". Human Immunology. Next Generation Sequencing and its Application to Medical Laboratory Immunology. 82 (11): 801–811. doi:10.1016/j.humimm.2021.02.012. PMID 33745759.
- ^ Dohm JC, Lottaz C, Borodina T, Himmelbauer H (November 2007). "SHARCGS, a fast and highly accurate short-read assembly algorithm for de novo genomic sequencing". Genome Research. 17 (11): 1697–1706. doi:10.1101/gr.6435207. PMC 2045152. PMID 17908823.
- ^ Cock PJ, Fields CJ, Goto N, Heuer ML, Rice PM (April 2010). "The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants". Nucleic Acids Research. 38 (6): 1767–1771. doi:10.1093/nar/gkp1137. PMC 2847217. PMID 20015970.
- ^ a b Simão FA, Waterhouse RM, Ioannidis P, Kriventseva EV, Zdobnov EM (October 2015). "BUSCO: assessing genome assembly and annotation completeness with single-copy orthologs". Bioinformatics. 31 (19): 3210–3212. doi:10.1093/bioinformatics/btv351. PMID 26059717.
- ^ Compeau PE, Pevzner PA, Tesler G (November 2011). "How to apply de Bruijn graphs to genome assembly". Nature Biotechnology. 29 (11): 987–991. doi:10.1038/nbt.2023. PMC 5531759. PMID 22068540.
- ^ "Babraham Bioinformatics - FastQC A Quality Control tool for High Throughput Sequence Data". www.bioinformatics.babraham.ac.uk. Retrieved 2022-05-09.
- ^ Ruffalo M, LaFramboise T, Koyutürk M (October 2011). "Comparative analysis of algorithms for next-generation sequencing read alignment". Bioinformatics. 27 (20): 2790–2796. doi:10.1093/bioinformatics/btr477. PMID 21856737.
- ^ Vasimuddin M, Misra S, Li H, Aluru S (May 2019). "Efficient Architecture-Aware Acceleration of BWA-MEM for Multicore Systems". 2019 IEEE International Parallel and Distributed Processing Symposium (IPDPS). IEEE. pp. 314–324. arXiv:1907.12931. doi:10.1109/IPDPS.2019.00041. ISBN 978-1-7281-1246-6.
- ^ Jung Y, Han D (2022-03-07). "BWA-MEME: BWA-MEM emulated with a machine learning approach". Bioinformatics. 38 (9): 2404–2413. doi:10.1093/bioinformatics/btac137. ISSN 1367-4803.