Optimal Computation of Avoided Words

Yannis Almirantis, Panagiotis Charalampopoulos, Jia Gao, Costas S. Iliopoulos, Manal Mohamed +2 more
4/29/2016
1 citation
cs.DS

Official code: solonas13/aw (4 stars, C++, GPL-3.0, last commit 2017-08-28).

Abstract

The deviation of the observed frequency of a word $w$ from its expected frequency in a given sequence $x$ is used to determine whether or not the word is avoided. This concept is particularly useful in DNA linguistic analysis.

Show full abstract

The value of the standard deviation of $w$, denoted by $std(w)$, effectively characterises the extent of a word by its edge contrast in the context in which it occurs. A word $w$ of length $k>2$ is a $ρ$-avoided word in $x$ if $std(w) \leq ρ$, for a given threshold $ρ< 0$. Notice that such a word may be completely absent from $x$. Hence computing all such words naïvely can be a very time-consuming procedure, in particular for large $k$. In this article, we propose an $O(n)$-time and $O(n)$-space algorithm to compute all $ρ$-avoided words of length $k$ in a given sequence $x$ of length $n$ over a fixed-sized alphabet. We also present a time-optimal $O(σn)$-time and $O(σn)$-space algorithm to compute all $ρ$-avoided words (of any length) in a sequence of length $n$ over an alphabet of size $σ$. Furthermore, we provide a tight asymptotic upper bound for the number of $ρ$-avoided words and the expected length of the longest one. We make available an open-source implementation of our algorithm. Experimental results, using both real and synthetic data, show the efficiency of our implementation.

View on arXivView PDF

Code Implementations(1)

solonas13/awOfficial100%
GPL-3.0

AW: computing Avoided (or Overabundant) Words for biological sequence analysis

43C++, CJan 20, 20169 years agoGPL-3.0

Similar Papers

Cite this paper

@article{almirantis2016optimal,
  title  = {Optimal Computation of Avoided Words},
  author = {Yannis Almirantis and Panagiotis Charalampopoulos and Jia Gao and Costas S. Iliopoulos and Manal Mohamed and Solon P. Pissis and Dimitris Polychronopoulos},
  year   = {2016},
  eprint = {1604.08760},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1604.08760}
}

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/1604.08760.svg)](https://codeofpaper.com/paper/1604.08760)

Discussion