 Research article
 Open Access
 Published:
FPGA acceleration of the phylogenetic likelihood function for Bayesian MCMC inference methods
BMC Bioinformatics volume 11, Article number: 184 (2010)
Abstract
Background
Likelihood (ML)based phylogenetic inference has become a popular method for estimating the evolutionary relationships among species based on genomic sequence data. This method is used in applications such as RAxML, GARLI, MrBayes, PAML, and PAUP. The Phylogenetic Likelihood Function (PLF) is an important kernel computation for this method. The PLF consists of a loop with no conditional behavior or dependencies between iterations. As such it contains a high potential for exploiting parallelism using microarchitectural techniques. In this paper, we describe a technique for mapping the PLF and supporting logic onto a Field Programmable Gate Array (FPGA)based coprocessor. By leveraging the FPGA's onchip DSP modules and the highbandwidth local memory attached to the FPGA, the resultant coprocessor can accelerate MLbased methods and outperform stateoftheart multicore processors.
Results
We use the MrBayes 3 tool as a framework for designing our coprocessor. For large datasets, we estimate that our accelerated MrBayes, if run on a currentgeneration FPGA, achieves a 10× speedup relative to software running on a stateoftheart serverclass microprocessor. The FPGAbased implementation achieves its performance by deeply pipelining the likelihood computations, performing multiple floatingpoint operations in parallel, and through a natural log approximation that is chosen specifically to leverage a deeply pipelined custom architecture.
Conclusions
Heterogeneous computing, which combines generalpurpose processors with specialpurpose coprocessors such as FPGAs and GPUs, is a promising approach for highperformance phylogeny inference as shown by the growing body of literature in this field. FPGAs in particular are wellsuited for this task because of their low power consumption as compared to manycore processors and Graphics Processor Units (GPUs) [1].
Background
The problem of phylogenetic inference is to construct a phylogeny that most closely resembles the actual relative evolutionary history of a set of species. The species, which consist of a set of nucleotide sequences, amino acid sequences, or gene orderings, are referred to as taxa.
One of the challenges in phylogenetic inference is the size of the tree space. The number of possible unrooted phylogenetic trees for n taxa is:
[2]
In many cases, performing an exhaustive search to find the optimal tree is computationally intractible so heuristics are often used.
Another challenge in phylogenetic inference is determining the accuracy of a given tree. Maximum likelihood (ML) and Bayesian inference methods typically employ Felsenstein's pruning algorithm to compute the Phylogenetic Likelihood Function (PLF) in order to determine the statistical likelihood score for a tree [3, 4].
This paper describes a reconfigurable hardware implementation of the Phylogenetic Likelihood Function (PLF), as well as the normalization and loglikelihood steps used in MrBayes [5]. Our design includes enhancements designed to leverage the highbandwidth local memory on our coprocessor card to store the likelihood vectors for each of the tree nodes.
MrBayes uses the PLF to evaluate the likelihood of trees [21] (which consumes nearly all of the execution time), and uses the Metropoliscoupled Markov chain Monte Carlo (MCMC) search to move through the tree space.
Related Work
ML and Bayesian phylogeny inference tools include RAxML [6], GARLI [7], MrBayes [8], and PAML [9]. In many cases parallelized versions of these tools have been developed for cluster and sharedmemory systems [10–16]. This paper instead focuses specifically on heterogeneous computing methods for likelihoodbased phylogenetic inference, which requires finergrain parallelization of the kernel computations using specialpurpose coprocessors.
Mak and Lam are perhaps the first team to implement likelihoodbased phylogeny inference on an FPGA, but they took an embedded computing approach as opposed to a highperformance computing approach [17]. Specifically, they used the FPGA's integrated embedded processor to perform a genetic algorithm tree search method called GAML (Genetic Algorithm for Maximum Likelihood) and used specialpurpose logic in the FPGA fabric to perform the PLF using fixedpoint arithmetic on behalf of the software. They do not report speedups over software running on a stateoftheart CPU, as the goal of this work was apparently to demonstrate phylogenetic inference using an FPGAbased embedded heterogeneous systemonchip (called "platform FPGA") and not to accelerate a highperformance computer.
Alachiotis et al recently published a series of papers that describe their FPGAbased accelerator for MLbased methods [18, 19]. Similar to the work by Mak and Lam, they implemented the PLF in specialpurpose hardware, but their coprocessor was hosted by a server running optimized C code and their PLF was double precision floatingpoint. In their experiments, they reconstructed trees with up to 512 taxa and achieved an average speedup of 8 relative to software on a single processor core and an average speedup of 4 relative to software on a sixteen core processor. They store the likelihood vectors, which serve as both the input and output of the PLF, in the FPGA card's local memory for highbandwidth lowlatency access. Their accelerator design also includes control logic for traversing the entire tree, reporting only the likelihood score back to the host. However, their architecture does not compute the more expensive log likelihood score, nor does it perform scaling or normalization (performed in MrBayes to prevent numerical underflow of the conditional probability vectors).
There has also been recent work in using Graphics Processor Units (GPUs) as coprocessors for likelihoodbased phylogenetic inference. In recent work, Suchard et al used the NVIDIA CUDA GTX280 manycore architecture to implement single and double precision versions of the PLF under a Bayesian framework using both the codon and nucleotide models [20]. Similar to Alachiotis et al, they do not compute the loglikelihood or perform scaling and normalization. Using a single computer with three GPUs, their maximum achieved speedups over singlethreaded software on an Intel Core 2 Extreme where 144 for the singleprecision codon model and 20 for the single precision nucleotide model (dropping to 51 and 12 for a single GPU, and 52 and 15 for three GPUs but with double precision).
TopLevel Search
We designed our FPGAbased accelerator within the framework of the Bayesian MetropolisCoupled Markov Chain Monte Carlo (MC^{3}) method. Specifically, we used the MrBayes 3 codebase as a guide for selecting precision, identifying the computational kernels, performing the search, and to measure the baseline performance for the software case as a control for our tests.
Single Chain Algorithm
Listed below are the main steps involved in the MCMC analysis.

(1)
Given input data D, randomly initialize the tree state, s,

(2)
Propose a random move to state s',

(3)
Calculate the acceptance probability P for s', according to Equation 1 below,

(4)
Choose a random number between 0 and 1. If the number is less than P, accept the proposed state, s = s'. Otherwise maintain the old state.

(5)
At userspecified intervals, "sample" the tree by recording all relevant information about the current state s.

(6)
If the iteration count is less than the target number, go to step 2.

(7)
The tree that has been accepted the greatest number of times is considered to have the greatest posterior probability (i.e. the consensus tree
(1)
Likelihood Calculation
The most expensive component of the search involves computing the acceptance probability P. While P depends on the three different ratios, computing the new likelihood ratio is significantly more expensive than computing the prior and proposal ratios. To calculate the likelihood ratio, only the numerator, P(D  s'), need be computed since the denominator is the saved likelihood value from the previous iteration in the loop.
Likelihood is the probability of observing the data given a particular tree. In order to make the likelihood calculation practical, MrBayes utilizes conditional probability. If we place a virtual root somewhere inside the tree and consider leaf nodes to be at the "bottom" of a tree, the conditional probability describes that the probability of everything at or below a particular node is the product of the events taking place on both descendant lineages [21]. Therefore, by starting at the bottom of the tree and working upwards, the conditional probability of each node is found by looking only at its left and right descendant nodes. Once the root, or topmost node, is reached, the overall tree likelihood is the product of the conditional probabilities for each siteor characterin the sequence data.
Methods
Application Partitioning
When adapting an application to any heterogeneous computing model, the target application must be partitioned into a performancecritical portion that is executed on the FPGA and a nonperformance critical portion that is executed on a generalpurpose CPU. In this case, the initialization, the proposing of moves, chain swapping, sampling, and the summary of the results are performed in software by the generalpurpose CPU. When computing the likelihood of a proposed tree, each internal node of the tree is processed via a postorder traversal. This computation is performed on the FPGA with minimal intervention by the host. Once the likelihood is computed, the software accepts or rejects the move, and performs chain swapping and sampling as needed.
Kernel Design
The log likelihood function contains a loop that visits each internal node in the tree, beginning from the "bottommost" internal nodes (that are parent to two leaves) and systematically moves toward the root. The first step is to compute the conditional probability vector (actually an n × 4 table, where n is the number of characters in the aligned input data), which is performed according to Felsenstein's pruning algorithm. Given parent node k and children i and j, their likelihood vectors and , and the 4 × 4 transition probability matrices P(i) and P(j), the likelihood of base N at position c of the parent vector is shown by Equation 2.
In our target application, the conditional probability vectors are single precision floatingpoint values.
After this, MrBayes normalizes the conditional probability vector, generates a new scaled likelihood vector called scP, and adds this vector to a log scaled vector called lnScaler as shown in Equations 35. In our target application, the scP and lnScaler vectors are both single precision.
If the current node is the virtual root, the third step is to compute the tree likelihood. This is performed by scaling each conditional probability value by the corresponding prior probabilities for each nucleotide, π_{A} through π_{T} drawn from the input data. These priors are sometimes called "based frequencies".
The numSites vector is used for compression by eliminating repeated characters. In our target application, the likelihood computation is performed in double precision.
Log(x) Considerations
As shown in the previous section, the kernel must calculate the natural logarithm of two different variables. The first calculation is singleprecision floatingpoint and occurs in the normalization step in Equation 4. The second is doubleprecision floatingpoint and occurs in the likelihood calculation in Equation 6. The results of our timing analysis show that, combined, these two log(x) calculations consume nearly half of the total execution time, making the log calculation a critical component in our design. Here we describe our use of the Chebyshev approximation to implement the log function in hardware.
Natural Logarithm Implementation
MrBayes computes the natural log of normalized values in the interval (0,1]. Since the natural log asymptotically approaches negative infinity as x approaches zero, the slope also approaches infinity as x > 0, and thus any approximation method for computing the natural log requires exponentially smaller divisions of x values as x approaches 0. Execution profiling using the input sets from our experimental results section showed no values of x less than 10^{32}. We therefore consider the range 10^{32} ≤ x ≤ 1.0].
A popular approach for implementing the natural log in specialpurpose hardware is to approximate the log function using Chebyshev polynomials [22–25]. Lookup tables can also be used to approximate the log function [26], but this approach requires a substantial amount of onchip memory. In this case, we needed this memory instead for caching the output vectors.
Chebyshev polynomials of the first kind, denoted T_{n}, are important in approximation theory because their roots are used as nodes in polynomial interpolation. The polynomials satisfy the following recurrence relation:
Chebyshev polynomials are a piecewise polynomial approximation method that solves a problem by dividing the input value range into segments. Each segment is approximated with a different polynomial. These polynomials are partial sums of the Chebyshev expansion for a function f(x):
In our design we use 5^{th} degree Chebyshev polynomials. We are able to compute the powers of x up to x^{4} in two stages of multiplication, and we can add the terms together in three stages. The five coefficients for each segment are stored in BRAM on the FPGA.
As shown in Table 1, we implemented 16 segments. Figure 1 shows the approximation error over the range [10^{32},10^{24}). While trying various log approximations, we observed that, in general, if the tree search requires the log of any x value less than the lower limit of the approximation, the resultant error causes the search to diverge.
Our toplevel design is shown in Figure 2. The design is composed of three components. For each incoming value of x, we use a radix2 comparison network to determine the segment in which x falls and generate a corresponding address for the coefficient memory. In parallel to this, multipliers are used to compute powers of x up to x^{4}. These values, along with the coefficient values, are eventually used to compute the Chebyshev polynomial.
We used Maplesoft Maple [27] to generate the Chebyshev coefficients and to expand the resultant polynomials. Our implementation requires four adders, seven multipliers, 20 BRAMs, and four comparators to determine which coefficients should be used for a given value of x. Because the Chebyshev approximation required coefficients with magnitudes greater than the upper limit for the single precision representation, we only implemented a double precision version and performed conversion in the case where the log is performed for single precision values.
Accelerator Design
Figure 3 summaries the inputs and outputs and shows the top level design. In our target application there are three components involved in computing the log likelihood of a tree. Each step depends on the previous so they must be performed sequentially but can be parallelized using a single deep pipeline. The likelihood evaluation is only performed for the virtual root node, but in our design we combine the likelihood logic and the scaling logic, discarding the likelihood result when it is not needed by the host.
The first step in the algorithm requires two transition probability tables (two 4 × 4 nucleotide tables requiring 32 single precision floating point values), as well as conditional probability vectors for the left and right descendant nodes (eight single precision values per character). The transition probability tables can be loaded into the FPGA and maintained for each tree node, while the conditional probability vectors can be "streamed" through the pipeline on the FPGA. This component outputs a conditional probability vector for the current node (four single precision floating point values per character).
The second step requires the conditional probabilities computed in the previous step (four single precision values per character) as well as scaler values for each character (one single precision value per character) and outputs a scaled conditional probability vector (four single precision values per character), and two updated scaler values for each character ("lnScaler" and "scPNew" valuestwo single precision values per character).
The third step takes, as input, the conditional probability vector and scaler vector from the second step (five single precision values per character) as well as the base frequencies (four double precision values), and site occurrences (one single precision value per character), and outputs the total log likelihood (one doubleprecision floating point value). This design includes the logic necessary to complete the likelihood evaluation of an internal or root node, one character at a time.
Reducing I/O
In order to make our coprocessor design amenable to any phylogeny tool that requires the same log likelihood computations, we deliberately leave as much of the toplevel control (i.e. the search algorithm) to the host as possible. In other words, the coprocessor performs only the likelihood, scaling, normalization, and log likelihood computations and is not coupled to the tree search algorithm or any particular tree representation.
However, in order to minimize I/O traffic between the host and coprocessor, the vectors associated with each tree node must be stored in the FPGA card's onboard (and offchip) memory. Our FPGA card has six banks of DDR2 SRAM, giving the accelerator access to six independently addressable 72bit memory ports per cycle (totalling 432 bits per cycle).
During initialization, the host sends the four priors (base frequencies) to the accelerator. This only occurs once per search and doesn't add any per node overhead.
Prior to processing each tree node, the host issues a programmed I/O call to the accelerator controller that indicates the unique chain/node base address for the left child, right child, and current node. These addresses correspond to memory addresses on the coprocessor card's local memory and are maintained by the host. This allows the host to manage the tree topology.
After receiving this instruction, the accelerator controller loads the 4 × 4 transition probability tables for the left and right children into onchip memory (32 floats). It also loads the current node's numSites array into onchip memory. These values are loaded from two different memory ports, so the time required for this transaction is set by size of the numSites array.
After this, the pipeline begins processing the current node. For each sequence character, the pipeline reads four 32bit conditional probability values and 32bit lnScaler value for both child nodes per cycle. All values are read in parallel because they are distributed across three memory ports each.
During this operation, the pipeline outputs, for each sequence character, four 32bit conditional probability, a single 32bit lnScaler value, and a single 32bit scP value for the current node. Since all memory ports are in use for reading, the output data must be buffered in onchip memory until all the input data enters the pipeline. After this, the output data is written to the on board memory.
Our current design limits the computed conditional probability vectors to a size of 8192 × 4 (for each nucleotide), requiring 128 K of onchip memory. This gives a maximum sequence length of 8192 for each of the input taxa. This limitation is imposed by difficulties in meeting timing closure for placeandroute rather than the onchip memory capacity.
Conditional Probability Computation
Figure 4 shows the logic needed to update one row in the conditional probability table for the current node. This logic is replicated four times to complete the conditional probability update for one character. The complete conditional probability computation has a pipeline latency of 38 cycles on the Virtex2 Pro FPGA and 34 cycles on the Virtex6 FPGA, due to differences in the latencies of the floatingpoint units for each FPGA (the Virtex6 has hardIP adder components while the Virtex2 Pro does not).
Figure 5 shows the logic necessary to perform the scaling for the conditional probability table of a node one character at a time. The conditional probability values are provided by the conditional probability logic shown in Figure 4. The scaling step involves comparisons and divisions. The pipeline that produces the normalized conditional probabilities has a latency of 32 cycles on the Virtex2 Pro and Virtex6 FPGAs (not including the first stage pipeline that feeds it the unnormalized conditional probability values). The pipeline that produces the log scaler has a latency of 49 cycles on the Virtex2 Pro and 43 cycles on the Virtex6, or 81 cycles and 75 cycles when including the latency of the conditional probability pipeline, from which it receives its inputs.
We combine the likelihood evaluation in this block as well, although we only need to save the final value for the topmost node. The pipeline that produces the likelihood values is 125 stages deep (again not including the pipelines that provide its inputs).
Likelihood Accumulator
As shown in Figure 5, the likelihood value must be accumulated for the root node of a tree. The figure shows a simple feedbackbased accumulation circuit but this is symbolic onlydoubleprecision addition is normally a deeply pipelined operation (having a 14 cycle latency in our case), and since new inputs arrive to the accumulator every cycle, a data hazard exists between the output of the accumulator and the next input to be accumulator. In other words, when a deeplypipelined adder is converted into an accumulator using a feedback, the adder will accumulate α partial sums for each stage of the pipeline, where α is the pipeline depth. In this case, special logic must be used to reduce these partial sums to a final sum after all the input values have arrived.
To reconcile this problem, we have implemented a simplified version of the DSA reduction circuit developed by Prasanna [28]. Our double precision accumulator is composed of a single 14stage double precision adder, an output buffer, and a set of multiplexers that allow the accumulator to be placed in various configurations depending on the input and output state of the adder.
Whenever the accumulator's input enable is asserted, the current accumulator input and the output of the adder are routed into the adder inputs. This means that while the accumulator is receiving a continuous stream of input values, the adder contains 14 partial sums within its pipeline.
When the accumulator's input enable is not asserted (i.e. in between likelihood evaluations), the accumulator is in a state where it coalesces the 14 partial sums. In this mode, a buffer attached to the adder output is used to capture any nonzero value that is produced by the adder. Each clock cycle where this output buffer and the adder's current output both contain nonzero values, both values are routed back into the adder and the output buffer is cleared. This process continues until all the partial sums have been reduced into a single sum, requiring five passes through the adder equalling 70 total cycles.
Input/Output
The first time the host visits each node, data associated with the node (consisting of four conditional probability vectors, one lnScaler vector, one numSites vector, and a 4 × 4 transition probability table) are transferred to the FPGA card using direct memory access (DMA) and are stored in its local memory. Before transferring the data, the host specifies the base address that the FPGA uses for each chain and node, which are maintained in a table on the host. In other words, the host is responsible for memory allocation and management of the FPGA card's local memory, and the accelerator reads input from and writes results to addresses specified by the host. Note that while the node states (vectors) are stored in the FPGA card's local memory, the host maintains all other data associated with each tree such as the topology.
The host allocates enough space for two copies of the state information associated with each node in order to allow for a "pending" and "committed" state for each vector. After processing each node, the accelerator stores the results starting at the "pending" address. If the tree is state is committed, the host swaps the "pending" address with the "current" address for each node in the tree. If the tree is state is rejected, the host doesn't perform this swap and vectors associated with each tree node remain unchanged.
Results
Hardware Implementation
We designed our accelerator architecture using the Mentor Graphics FPGA Advantage CAD/EDA tools using VHDL, synthesized using Synopsys Synplify Pro 8.8.04, and placedandrouted using Xilinx ISE 11.4.
We synthesized and placeandrouted our accelerator onto an Annapolis Micro Systems WILDSTAR II Pro computing card containing a Xirtex2 Pro 100 FPGA and six 36bit wide banks of DDR2 SRAM modules used for local memory. Our design operates at 165 MHz and consumes nearly all of the logic slices and hardware multipliers on the FPGA.
Software Configuration
We used an Intel Xeon 5500series processor to measure the software performance and act as the host for the coprocessor. At the time of this writing in early 2010, the Xeon 5500series is the most recently released and highestperformance Intel server processor available.
We compiled the MrBayes code using the gcc version 4.1.2 compiler and with the "O3" compiler optimization and with the SIMD SSE3 extensions enabled. Note that in the MrBayes code, SSE3 instructions are explicitly used for computing the conditional probability values but are not used for computing the root node's log likelihood (it is not clear why this is the case).
The default compile configuration of MrBayes uses the standard UNIX log function defined in version 2.5 of the math library shipped with Red Hat Enterprise Linux 5.4. However, MrBayes can also be compiled to use the de Soras log approximation that is included in MrBayes 3.1.2. The approximation uses the following algorithm to approximate log x:

1.
extract the exponent from the IEEE 754 representation to obtain: ,

2.
extract the mantissa m (where 1 ≤ m < 2) from the IEEE 754 representation and compute: ,

3.
set
In the MrBayes code, log 2 is approximated as the base10 constant 0.69314718. This approximation is only used for the scaling operation and is not used for computing the log likelihood for the root node of the tree (the UNIX log function is still used for this). In the implementation of this approximation, a 0 is returned for any input values that are < 10^{10.} Comments in the MrBayes source code states that this approximation yields errors less than 7 × 10^{3}. However, because of the hardcoded lower limit placed on x, the effective error of the approximation is substantially higher when it evaluates a log of a value < 10^{10} (as it returns 0), which actually causes the search to diverge for many datasets.
As a result of the error introduced by calls to this approximation with ×< 10^{10}, MrBayes failed to converge for all of the datasets in our experiments (i.e. the average standard deviation of split frequencies increased to its maximum value during the search). As a result, we do not include performance results for this log approximation.
Test Data
Table 2 describes each of the test datasets, each containing DNA sequence data and downloaded from TreeBase [29]. The table is sorted by the sequence length. We ran each of these using the base software version of MrBayes 3, using the GTR substitution model and assuming clockconstrained (rooted) trees with uniform probability density on the branch lengths. We left all other options as default.
Column 4 of the table shows the number of generations required by MrBayes to converge rounded up to the nearest increment of 50,000, where we (and the MrBayes output) determine that convergence has occurred when the average standard deviation of split frequencies is < 0.1.
Effect of Log Approximation
Table 2 also lists the number of generations required for the MrBayes search to converge for each of our sample datasets. To estimate the effect of the log approximation on the quality of search results, Table 2 also lists the RobinsonFoulds distance [30], as computed by PhyloNet [31], between the consensus tree given by the base software method (used as the model tree) against the consensus tree given by the FPGAaccelerated method. In general, these distances are equal to the typical distances between multiple runs of the same dataset in the softwareonly control case.
Discussion
Accelerator Performance
Since the hardware portion of the accelerated MrBayes is a fixed latency pipeline, the performance of our design can be derived as a function of the clock speed, sequence length, and pipeline latencies.
Our Virtex2 Probased accelerator produces an output every cycle after the pipeline latency of 119 cycles for nonroot nodes, which require only the outputs of the conditional probability pipeline, and 251 for a root node that requires the output from the log likelihood pipeline. These latency values change to 109 and 261 for a Virtex6 FPGA. The average time to process a node is therefore:
(119λ + λc)·(1  r) + (251λ + λc)·r, for a Virtex2 Pro 100 and (109λ + λc) + (261λ + λc)·r, for a Virtex6 SX 475
where λ is the clock period, c is the sequence length, and r is the ratio of root node evaluations to internal node evaluations. This ratio is nominally equal to , where n is the number of taxa. However, in some cases the conditional probabilities for a particular node does not need to be updated, and in these cases they are not performed. In Table 2 we report this ratio for each dataset as reported at runtime.
On our Virtex2 Pro 100 FPGA, an FPGA which is several generations old, the pipelines and memory interface operate at 165 MHz (cycle time of approximately 6 ns). We have also synthesized, placed, and routed our accelerator design targeting more recent FPGA technology, a Virtex6 SX 475 FPGA, and achieved timing closure at 310 MHz (its DSP48E blocks are designed to operate at 350 MHz and these blocks generally dictate the throughput of floatingpoint units for which they are used [32]). We report our results based for both clock speeds.
Performance Results
We performed all software experiments on an unloaded machine (i.e. no other processes were running to guarantee exclusive, unshared access to the processors and cache).
Table 3 lists our performance results. For each dataset we report the average CPU time required to compute a single nonroot node and root node, as well as the average over all nodes. We also report the average pipeline times for each node for the FPGA implementations and corresponding speedups. As shown, we achieve a near 10× improvement over software for the 310 MHz version of our design without sacrificing the quality of the consensus trees from the search.
Conclusions
We successfully implemented an accelerator to MrBayes and characterized its performance. Our accelerator design exploited finegrain parallelism using a custom, deep pipeline for computing the likelihood of a tree node. This technique can be trivially scaled up by assigning a separate FPGA in a multipleFPGA system to each chain. This work demonstrates both the potential for accelerating Bayesian inference.
References
Williams J, George A, Richardson J, Gosrani K, Suresh S: Fixed and Reconfigurable MultiCore Device Characterization for HPEC. Proc of HighPerformance Embedded Computing Workshop (HPEC), Lexington, MA 2008.
Felsenstein J: The number of evolutionary trees. Systematic Zoology 1978, 27: 27–33. 10.2307/2412810
Felsenstein J: Evolutionary trees from DNA sequences: a maximum likelihood approach. J Mol Evol 1981, 17: 368–376. 10.1007/BF01734359
Felsenstein J: Inferring Phylogenies 2/e. Sinauer Associates 2003.
Alfaro ME, Zoller S, Lutzoni F: Bayes or Bootstrap? A Simulation Study Comparing the Performance of Bayesian Markov Chain Monte Carlo Sampling and Bootstrapping in Assessing Phylogenetic Confidence. Molecular Biology and Evolution 2003, 20(2):255–266. 10.1093/molbev/msg028
Stamataki A: RAxMLVIHPC: Maximum LikelihoodBased Phylogenetic Analysis with Thousands of Taxa and Mixed Models. Bioinformatics 2006, 22(21):2688–2690. 10.1093/bioinformatics/btl446
Zwickl D: Genetic Algorithm Approaches for the Phylogenetic Analysis of Large Biological Sequence Datasets Under the Maximum Likelihood Criterion. In Ph.D. Thesis. University of Texas at Austin; 2006.
Ronquist F, Huelsenbeck JP: MrBayes 3: Bayesian Phylogenetic Inference under Mixed Models. Bioinformatics 2003, 19(12):1572–1574. 10.1093/bioinformatics/btg180
Yang Z: PAML 4: Phylogenetic Analysis by Maximum Likelihood. J Mol Bio Evol 2007, 24(8):1586–1591. 10.1093/molbev/msm088
Altekar G, et al.: Parallel Metropolis Coupled Markov Chain Monte Carlo for Bayesian Phylogenetic Inference. Bioinformatics 2004, 20: 407–415. 10.1093/bioinformatics/btg427
Feng X, et al.: Parallel Algorithms for Bayesian Phylogenetic Inference. J Parallel Distr Comput 2003, 63: 707–718. 10.1016/S07437315(03)000790
Feng X, et al.: Building the Tree of Life in Terascale Systems. Proc Parallel and Distributed Processing Symposium (IPDP 2007)
Keane T, et al.: DPRml: Distributed Phylogeny Reconstruction by Maximum Likelihood. Bioinformatics 2005, 21: 969–974. 10.1093/bioinformatics/bti100
Minh B, et al.: plQPNNI: Parallel Reconstruction of Large Maximum Likelihood Phylogenies. Bioinformatics 2005, 21: 3794–3796. 10.1093/bioinformatics/bti594
Schmidt H, et al.: TREEPUZZLE: Maximum Likelihood Phylogenetic Analysis Using Quartets and Parallel Computing. Bioinformatics 2002, 18: 502–504. 10.1093/bioinformatics/18.3.502
Stamatakis A, et al.: RAxMLIII: A Fast Program for Maximim LikelihoodBased Inference for Large Phylogenetic Trees. Bioinformatics 2005, 21: 456–463. 10.1093/bioinformatics/bti191
Mak TST, Lam KP: Embedded Computation of MaximumLikelihood Phylogeny Inference Using Platform FPGA. Proc IEEE Computational Systems Bioinformatics Conference table of contents 2004, 512–514.
Alachiotis N, Sotiriades E, Dollas A, Stamatakis A: Exploring FPGAs for accelerating the Phylogenetic Likelihood Function. Proc Eighth IEEE International Workshop on High Performance Computational Biology (HiCOMB 2009)
Alachiotis N, Sotiriades E, Dollas A, Stamatakis A: A Reconfigurable Architecture for the Phylogenetic LikelihoodFunction. Proc International Conference on Field Programmable Logic and Applications (FPL 2009)
Suchard MA, Rambaut A: ManyCore Algorithms for Statistical Phylogenetics. Bioinformatics 2009, 25(11):1370–1376. 10.1093/bioinformatics/btp244
Felsenstein J: Evolutionary trees from DNA sequences: a maximum likelihood approach. J Mol Evol 1981, 17: 368–376. 10.1007/BF01734359
Fu H, Mencer O, Luk W: Optimizing LogarithmicArithmetic on FPGAs. Proc 15th Annual IEEE Symposium on FieldProgrammable Custom Computing Machines (FCCM 2007) 2007, 163–172.
Hamada T, Nakasato N: PGR: a software package for reconfigurable supercomputing. Proc International Conference on Field Programmable Logic and Applications (FPL'05) 2005, 366–373. full_text
Li RC: Near Optimality of Chebyshev Interpolation for Elementary Function Computations. IEEE Transactions on Computers 2004, 53(6):678–687. 10.1109/TC.2004.15
Abed KH, Siferd RE: CMOS VLSI Implementation of a LowPower Logarithmic Converter. IEEE Transactions on Computers 2003, 52(11):1421–1433. 10.1109/TC.2003.1244940
de Dinechin F, Klein C, Pasca B: Generating highperformance custom floatingpoint pipelines. Proc 19th Internationl Conference on Field Programmable Logic and Applications (FPL 2009)
Maple, MapleSoft[http://www.maplesoft.com]
Zhuo L, Prasanna VK: HighPerformance Reduction Circuits Using Deeply Pipelined Operators on FPGAs. IEEE Trans Paralleland Dist Sys 2007., 18(10):
TreeBase[http://www.treebase.org]
Robinson DR, Foulds LR: Comparison of phylogenetic trees. Mathematical Biosciences 1981, 53: 131–147. 10.1016/00255564(81)900432
Than C, Ruths D, Nakhleh L: PhyloNet: A Software Package for Analyzing and Reconstructing Reticulate Evolutionary Relationships. BMC Bioinformatics 2008, 9: 322. 10.1186/147121059322
Virtex6 FPGA DSP48E1 Slice User Guide[http://www.xilinx.com] retrieved 1/22/2009
Binder M, Bresinsky A: Derivation of a polymorphic lineage of Gasteromycetes from boletoid ancestors. Mycologia 2001, 94(1):85–98. 10.2307/3761848
Bauer R, Begerow D, Oberwinkler F, Maranová L: Classicula: the teleomorph of Naiadella fluitans. Mycologia, Mycologia 2003, 95(4):756–764.
Barns SM, Delwiche CF, Palmer JD, Pace NR: Perspectives on archaeal diversity, thermophily and monophyly from environmental rRNA sequences. Proc Natl Acad Sci 1996, 93: 9188–9193. 10.1073/pnas.93.17.9188
Berbee ML: The phylogeny of plant and animal pathogens in the Ascomycota. Physiological and Molecular Plant Pathology(2001) 2001, 59: 165–187. 10.1006/pmpp.2001.0355
Anderson FE, Córdoba AJ, Thollesson M: 2003 Bilaterian phylogeny based on analyses of a region of the sodiumpotassium ATPase alpha subunit gene. Journal of Molecular Evolution 2004., 58(3): 10.1007/s0023900325489
Schoch CL, Sung GH, LópezGiráldez F, Townsend JP, Miadlikowska J, Hofstetter V, Robbertse B, Matheny PB, Kauff F, Wang Z, Andrie R, Trippe K, Ciuffetti L, Wynn A, Fraker E, Hodkinson BP, Bonito G, Groenewald JZ, Arzanlou M, de Hoog S, Crous PW, Hewitt D, Pfister DH, Peterson K, Gryzenhout M, Wingfield MJ, Aptroot A, Suh SO, Blackwell M, Hillis DM, Griffith G, Castlebury L, Rossman A, Lumbsch HT, Lücking R, Büdel B, Diederich P, Ertz D, Geiser D, Hosaka K, Inderbitzin P, Kohlmeyer J, VolkmannKohlmeyer B, Mostert L, O'Donnell K, Sipman H, Rogers J, Shoemaker R, Sugiyama J, Summerbell R, Untereiner W, Johnston P, Stenroos S, Zuccaro A, Dyer P, Crittenden P, Yahr R, Cole MS, Hansen K, Trappe JM, Lutzoni F, Spatafora JW: A phylum wide phylogeny of the Ascomycota to address phylogenetic informativeness, ancestral character reconstruction and define novel lineages. Systematic Biology 2008, in press.
Spatafora JW, Johnson D, Sung GH, Hosaka K, O'Rourke B, Serdani M, Spotts R, Lutzoni F, Hofstetter V, Fraker E, Gueidan C, Miadlikowska J, Reeb V, Lumbsch T, Lücking R, Schmitt I, Aptroot A, Roux C, Miller A, Geiser DJH, Hestmark G, Arnold AE, Büdel B, Rauhut A, Hewitt D, Untereiner WA, Cole MS, Scheidegger C, Schultz M, Sipman H, Schoch CL: A fivegene phylogenetic analysis of the Pezizomycotina. Mycologia 2006, 98: 1018–1028. 10.3852/mycologia.98.6.1018
Acknowledgements
We thank the anonymous reviewers whose comments have led to substantial improvements to this paper. This material is based upon work supported by the National Science Foundation under Grant Nos. CCF0844951 and CCF0915608.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
SZ performed the runtime analysis of MrBayes to determine which components of the application to perform on the coprocessor, designed the accelerator architecture, and wrote the bulk of the manuscript text. JDB assisted SZ in choosing the application, analyzing its runtime behavior, and designing the accelerator architectures. JDB modified the accelerator architecture so it would fit on the FPGA, added control logic to reduce the design's I/O bottleneck by caching node data in onboard memory, designed the accelerator architecture's host interface, modified the MrBayes source code to interface it to the accelerator, performed the tests to characterize performance and accuracy, edited and revised the manuscript, and performed additional synthesis runs for a more recent FPGA device. Both authors read and approved the final manuscript.
Stephanie Zierke and Jason D Bakos contributed equally to this work.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Zierke, S., Bakos, J.D. FPGA acceleration of the phylogenetic likelihood function for Bayesian MCMC inference methods. BMC Bioinformatics 11, 184 (2010). https://doi.org/10.1186/1471210511184
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/1471210511184
Keywords
 Conditional Probability
 Field Programmable Gate Array
 Single Precision
 Graphic Processor Unit
 Memory Port