RT Journal Article SR Electronic T1 Markov chains improve the significance computation of overlapping genome annotations JF bioRxiv FD Cold Spring Harbor Laboratory SP 2022.04.07.487119 DO 10.1101/2022.04.07.487119 A1 Askar Gafurov A1 Broňa Brejová A1 Paul Medvedev YR 2022 UL http://biorxiv.org/content/early/2022/04/10/2022.04.07.487119.abstract AB Motivation Genome annotations are a common way to represent genomic features such as genes, regulatory elements or epigenetic modifications. The amount of overlap between two annotations is often used to ascertain if there is an underlying biological connection between them. In order to distinguish between true biological association and overlap by pure chance, a robust measure of significance is required. One common way to do this is to determine if the number of intervals in the reference annotation that intersect the query annotation is statistically significant. However, currently employed statistical frameworks are often either inefficient or inaccurate when computing p-values on the scale of the whole human genome.Results We show that finding the p-values under the typically used “gold” null hypothesis is 𝒩𝒫-hard. This motivates us to reformulate the null hypothesis using Markov chains. To be able to measure the fidelity of our Markovian null hypothesis, we develop a fast direct sampling algorithm to estimate the p-value under the gold null hypothesis. We then present an open-source software tool MCDP that computes the p-values under the Markovian null hypothesis in 𝒪 (m2 + n) time and 𝒪 (m) memory, where m and n are the numbers of intervals in the reference and query annotations, respectively. Notably, MCDP runtime and memory usage are independent from the genome length, allowing it to outperform previous approaches in runtime and memory usage by orders of magnitude on human genome annotations, while maintaining the same level of accuracy.Availability The software is available at https://github.com/fmfi-compbio/mc-overlaps. All data for reproducibility are available at https://github.com/fmfi-compbio/mc-overlaps-reproducibilityCompeting Interest StatementThe authors have declared no competing interest.