LinearFold: linear-time approximate RNA folding by 5'-to-3' dynamic programming and beam search

Liang Huang, He Zhang, Dezhong Deng, Kai Zhao, Kaibo Liu +2 more
12/22/2019
q-bio.BMcs.DSmath.CO

Official code: LinearFold/LinearFold (202 stars, C++, last commit 2024-04-04).

Abstract

Motivation: Predicting the secondary structure of an RNA sequence is useful in many applications. Existing algorithms (based on dynamic programming) suffer from a major limitation: their runtimes scale cubically with the RNA length, and this slowness limits their use in genome-wide applications.

Show full abstract

Results: We present a novel alternative $O(n^3)$-time dynamic programming algorithm for RNA folding that is amenable to heuristics that make it run in $O(n)$ time and $O(n)$ space, while producing a high-quality approximation to the optimal solution. Inspired by incremental parsing for context-free grammars in computational linguistics, our alternative dynamic programming algorithm scans the sequence in a left-to-right (5'-to-3') direction rather than in a bottom-up fashion, which allows us to employ the effective beam pruning heuristic. Our work, though inexact, is the first RNA folding algorithm to achieve linear runtime (and linear space) without imposing constraints on the output structure. Surprisingly, our approximate search results in even higher overall accuracy on a diverse database of sequences with known structures. More interestingly, it leads to significantly more accurate predictions on the longest sequence families in that database (16S and 23S Ribosomal RNAs), as well as improved accuracies for long-range base pairs (500+ nucleotides apart), both of which are well known to be challenging for the current models. Availability: Our source code is available at https://github.com/LinearFold/LinearFold, and our webserver is at http://linearfold.org (sequence limit: 100,000nt).

View on arXivView PDF

Code Implementations(1)

The new source code of the LinearFold, linear-time prediction for RNA secondary structures

20252C++, PythonNov 27, 20182 years agoNOASSERTION

Similar Papers

Cite this paper

@article{huang2019linearfold,
  title  = {LinearFold: linear-time approximate RNA folding by 5'-to-3' dynamic programming and beam search},
  author = {Liang Huang and He Zhang and Dezhong Deng and Kai Zhao and Kaibo Liu and David A. Hendrix and David H. Mathews},
  year   = {2019},
  eprint = {2001.04020},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.04020}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.04020.svg)](https://codeofpaper.com/paper/2001.04020)

Discussion