Literature DB >> 18467344

PatMaN: rapid alignment of short sequences to large databases.

Kay Prüfer1, Udo Stenzel, Michael Dannemann, Richard E Green, Michael Lachmann, Janet Kelso.   

Abstract

UNLABELLED: We present a tool suited for searching for many short nucleotide sequences in large databases, allowing for a predefined number of gaps and mismatches. The commandline-driven program implements a non-deterministic automata matching algorithm on a keyword tree of the search strings. Both queries with and without ambiguity codes can be searched. Search time is short for perfect matches, and retrieval time rises exponentially with the number of edits allowed. AVAILABILITY: The C++ source code for PatMaN is distributed under the GNU General Public License and has been tested on the GNU/Linux operating system. It is available from http://bioinf.eva.mpg.de/patman. SUPPLEMENTARY INFORMATION: Supplementary data are available at Bioinformatics online.

Entities:  

Mesh:

Year:  2008        PMID: 18467344      PMCID: PMC2718670          DOI: 10.1093/bioinformatics/btn223

Source DB:  PubMed          Journal:  Bioinformatics        ISSN: 1367-4803            Impact factor:   6.937


1 INTRODUCTION

There is an increasing need to rapidly and accurately align short sequences to genomic or other biological sequences. Short sequence motifs, including restriction enzyme sites, microarray probe sequences, transcription factor binding motifs and miRNA sequences, are abundant in many areas of molecular biology. Identifying these short sequences is a crucial step in designing experiments and analyzing newly available genomic sequence data. The most widely used approach for aligning sequences to large databases is the BLAST algorithm (Altschul et al., 1990). Further optimized versions have been presented to speed searches for large numbers of sequences. The BLAST family of algorithms search for good alignments only where short, perfect seed matches between the query and target sequence exist. This heuristic vastly improves the overall speed by restricting the expensive alignment process to regions containing these short exact matches. There is a tradeoff between an extensive search and the speed performance of the algorithm. A search with longer seeds may miss some good alignments that contain mismatches or gaps, while shorter seeds will prolong alignment time. This tradeoff is especially severe for short query sequences because these may not contain a seed match to trigger full alignment, thereby missing good hits. A well-known algorithm for searching multiple strings was introduced by Aho and Corasick in 1975. Although this approach has previously been implemented to search for restriction enzyme sites (Mount and Conrad, 1986; Smith, 1988), a comprehensive implementation for searches with mismatches and gaps is not available to our knowledge. We developed PatMaN (Pattern Matching in Nucleotide databases), a tool for performing exhaustive searches to identify all occurences of a large number of short sequences within a genome-sized database. The program reads sequences in FastA format and reports all hits within the given edit-distance cutoff (i.e. total number of gaps and mismatches). We demonstrate the program's functionality by aligning Affymetrix HGU95-A microarray probes to the chimpanzee genome.

2 METHODS

2.1 Usage

The program accepts several parameters to specify a search. The user can specify both the maximum number of gaps and the total number of edits (gaps+mismatches) allowed in any reported match. Additionally the interpretation of ambiguity codes can be modified. When the ambiguity flag is set, any ambiguous character in the query sequences will be counted as a match if the aligning base is one of the nucleotides represented by the ambiguity code. When the flag is omitted, only the ambiguity code ‘N’ is allowed in the query sequences, and a base aligning to this character will be counted as a mismatch. Both the query and target sequences must be in FastA format. The output is given in a tab-separated format containing the target and query sequence identifier, the start and end position of the alignment in the target sequence, the strand and the number of edits per match.

2.2 Algorithm

When initiated, the program begins constructing a single keyword tree of all the query sequences (Fig. 1). All bases along a query sequence are added as a path from the root of the tree to a leaf, with the edges representing the bases added, and the leaf node containing the query sequence identifier. If the user sets the ambiguity flag, all possible bases at ambiguous positions are added to the tree. If the user does not trigger the ambiguity flag, each base is added only once to the tree. The search for occurrences on forward and reverse strands is facilitated by also adding the reverse complement of all query sequences to the same tree. If an outgoing edge is not yet occupied after storing the query sequences, an additional suffix link is set to the longest existing suffix for the sequence represented by the path from the root to the node under consideration. The resulting graph will consist of internal nodes with outgoing edges for all four possible bases and for the ambiguity base ‘N’. This procedure corresponds to the initial processing steps in the Aho–Corasick algorithm [for a complete discussion see Navarro and Raffinot (2002)]. Figure 1 depicts the resulting data structure for a small input example.
Fig. 1.

Keyword tree with suffix links after adding the sequences ‘CCC’, ‘GA’ and ‘GT’. The keyword tree (represented as bold lines) encodes the probe sequence as a path leading from the root node on the left side to the leaves on the right side. Suffix links are shown as arrows, but have been omitted at leaf nodes for brevity.

Keyword tree with suffix links after adding the sequences ‘CCC’, ‘GA’ and ‘GT’. The keyword tree (represented as bold lines) encodes the probe sequence as a path leading from the root node on the left side to the leaves on the right side. Suffix links are shown as arrows, but have been omitted at leaf nodes for brevity. Once the tree is constructed, each sequence in the target database is evaluated base by base and compared to a list of partial matches. Each partial match consists of a node together with the number of mismatches and gaps accumulated. The list is initialized with one element containing the root node of the tree and an edit count of zero. In each iteration of the algorithm, all partial matches are advanced along a perfectly matching outgoing edge. Additional elements are stored for following mismatched edges and for producing all possible gaps, as long as the number of edits remains below the threshold given. If the outgoing edge is a suffix link, the resulting partial match is only included if no mismatch or gap occured in the part before the suffix. The number of edits needed to align the suffix is stored in the partial match when following a suffix link. Matches are reported when a partial match reaches a leaf node before exceeding the predefined number of allowed edits. The sequence identifier, match coordinates and number of edits are printed.

2.3 Complexity

When ambiguity codes are not interpreted and the query sequences contain no ‘N’ character, the keyword tree can be constructed in 𝒪(L) time and requires 𝒪(L) space, where L represents the total length of all query sequences (Navarro and Raffinot, 2002). When ambiguity is enabled, both time and space requirements increase exponentially in the number of ambiguity codes used in the patterns. The time efficiency of the search algorithm is linear in the size of the target database, but depends heavily on the maximum edit distance as well as the average length and number of query sequences. For each additional edit operation, an exponentially increasing number of partial matches must be considered, since neighboring mismatched nodes and all possible gapped alignments are searched along with the perfect matching path through the tree. However, if only perfect matches are searched, the algorithm acts like the Aho–Corasick algorithm, and search time depends solely on the length of the target sequence. Time constraints therefore mean that PatMaN is only suitable for searching short sequences with a limited number of edit operations.

3 RESULTS

We used PatMaN to match 201 807 Affymetrix HGU95-A microarray 25mer probes to the chimpanzee genome (panTro2). The parameters chosen for this evaluation allowed up to one mismatch, but no gaps. The program spent ∼2.5 h searching through all chimpanzee chromosomes and found 15.9 million hits (including 14.4 million hits to ALU repeat sequences). A table containing all unique hits to the chimpanzee genome is available on our website. Table 1 summarizes the time measured for conducting searches with different edit distance parameters using the same microarray probes and reads from one lane of the Solexa platform for chimpanzee chromosome 22. The measurement shows the exponential increase in runtime with the maximum allowed edit distance.
Table 1.

HGU95-A probes and Bonobo Reads against Chromosome 22

Dataset
Edits
Gaps
Run time
Hits
HGU95-A probesa000m13.31s93 225
HGU95-A probesa101m51.87s327 028
HGU95-A probesa113m36.92s496 296
HGU95-A probesa211h21m59s1 843 008
Bonobo Solexa GAII datab2212h58m50s14.3×109

Benchmarking was performed on a 2.2 GHz workstation. Independently of the chosen parameters ∼260 MB RAM were used.

bBenchmarking was performed on a 1.8 GHz workstation and 8.6 GB of RAM was used during execution. The dataset contains 2.8 million reads of 38 bp length of genomic sequence from a Bonobo individual sequenced on the Solexa GAII platform.

HGU95-A probes and Bonobo Reads against Chromosome 22 Benchmarking was performed on a 2.2 GHz workstation. Independently of the chosen parameters ∼260 MB RAM were used. bBenchmarking was performed on a 1.8 GHz workstation and 8.6 GB of RAM was used during execution. The dataset contains 2.8 million reads of 38 bp length of genomic sequence from a Bonobo individual sequenced on the Solexa GAII platform.

4 CONCLUSION

We present a new tool for mapping short sequences to large nucleotide databases. The program does not require target or query database preprocessing and runs rapidly when a search is restricted to small edit distances. While we demonstrate the program's utility by aligning microarray probes, we anticipate further applications in the near future. In particular, mapping tags generated using next generation resequencing technology will require fast approximate matching to genomes to facilitate large-scale analysis of gene expression.
  3 in total

1.  Basic local alignment search tool.

Authors:  S F Altschul; W Gish; W Miller; E W Myers; D J Lipman
Journal:  J Mol Biol       Date:  1990-10-05       Impact factor: 5.469

2.  Improved programs for DNA and protein sequence analysis on the IBM personal computer and other standard computer systems.

Authors:  D W Mount; B Conrad
Journal:  Nucleic Acids Res       Date:  1986-01-10       Impact factor: 16.971

3.  A finite state machine algorithm for finding restriction sites and other pattern matching applications.

Authors:  R Smith
Journal:  Comput Appl Biosci       Date:  1988-11
  3 in total
  102 in total

1.  A microRNA superfamily regulates nucleotide binding site-leucine-rich repeats and other mRNAs.

Authors:  Padubidri V Shivaprasad; Ho-Ming Chen; Kanu Patel; Donna M Bond; Bruno A C M Santos; David C Baulcombe
Journal:  Plant Cell       Date:  2012-03-09       Impact factor: 11.277

2.  Complexity of the microRNA repertoire revealed by next-generation sequencing.

Authors:  Lik Wee Lee; Shile Zhang; Alton Etheridge; Li Ma; Dan Martin; David Galas; Kai Wang
Journal:  RNA       Date:  2010-09-28       Impact factor: 4.942

Review 3.  Application of 'next-generation' sequencing technologies to microbial genetics.

Authors:  Daniel MacLean; Jonathan D G Jones; David J Studholme
Journal:  Nat Rev Microbiol       Date:  2009-04       Impact factor: 60.633

4.  CoLIde: a bioinformatics tool for CO-expression-based small RNA Loci Identification using high-throughput sequencing data.

Authors:  Irina Mohorianu; Matthew Benedict Stocks; John Wood; Tamas Dalmay; Vincent Moulton
Journal:  RNA Biol       Date:  2013-06-28       Impact factor: 4.652

5.  Directed evolution of a recombinase that excises the provirus of most HIV-1 primary isolates with high specificity.

Authors:  Janet Karpinski; Ilona Hauber; Jan Chemnitz; Carola Schäfer; Maciej Paszkowski-Rogacz; Deboyoti Chakraborty; Niklas Beschorner; Helga Hofmann-Sieber; Ulrike C Lange; Adam Grundhoff; Karl Hackmann; Evelin Schrock; Josephine Abi-Ghanem; M Teresa Pisabarro; Vineeth Surendranath; Axel Schambach; Christoph Lindner; Jan van Lunzen; Joachim Hauber; Frank Buchholz
Journal:  Nat Biotechnol       Date:  2016-02-22       Impact factor: 54.908

6.  Structural and functional analysis of viral siRNAs.

Authors:  Gyorgy Szittya; Simon Moxon; Vitantonio Pantaleo; Gabor Toth; Rachel L Rusholme Pilcher; Vincent Moulton; Jozsef Burgyan; Tamas Dalmay
Journal:  PLoS Pathog       Date:  2010-04-01       Impact factor: 6.823

7.  baySeq: empirical Bayesian methods for identifying differential expression in sequence count data.

Authors:  Thomas J Hardcastle; Krystyna A Kelly
Journal:  BMC Bioinformatics       Date:  2010-08-10       Impact factor: 3.169

8.  Genome-wide profiling of populus small RNAs.

Authors:  Daniel Klevebring; Nathaniel R Street; Noah Fahlgren; Kristin D Kasschau; James C Carrington; Joakim Lundeberg; Stefan Jansson
Journal:  BMC Genomics       Date:  2009-12-20       Impact factor: 3.969

9.  Simultaneous alignment of short reads against multiple genomes.

Authors:  Korbinian Schneeberger; Jörg Hagmann; Stephan Ossowski; Norman Warthmann; Sandra Gesing; Oliver Kohlbacher; Detlef Weigel
Journal:  Genome Biol       Date:  2009-09-17       Impact factor: 13.583

10.  Fast mapping of short sequences with mismatches, insertions and deletions using index structures.

Authors:  Steve Hoffmann; Christian Otto; Stefan Kurtz; Cynthia M Sharma; Philipp Khaitovich; Jörg Vogel; Peter F Stadler; Jörg Hackermüller
Journal:  PLoS Comput Biol       Date:  2009-09-11       Impact factor: 4.475

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.