@article {Sahlin023929, author = {Kristoffer Sahlin and Mattias Fr{\r a}nberg and Lars Arvestad}, title = {Correcting bias from stochastic insert size in read pair data {\textemdash} applications to structural variation detection and genome assembly}, elocation-id = {023929}, year = {2015}, doi = {10.1101/023929}, publisher = {Cold Spring Harbor Laboratory}, abstract = {Insert size distributions from paired read protocols are used for inference in bioinformatic applications such as genome assembly and structural variation detection. However, many of the models that are being used are subject to bias. This bias arises when we assume that all insert sizes within a distribution are equally likely to be observed, when in fact, size matters. These systematic errors exist in popular software even when the assumptions made about data are true. We have previously shown that bias occurs for scaffolders in genome assembly. Here, we generalize the theory and demonstrate that it is applicable in other contexts. We provide examples of bias in state-of the-art software and improve them using our model. One key application of our theory is structural variation detection using read pairs. We show that an incorrect null-hypothesis is commonly used in popular tools and can be corrected using our theory. Furthermore, we approximate the smallest size of indels that are possible to discover given an insert size distribution. Two other applications are inference of insert size distribution on de novo genome assemblies and error correction of genome assemblies using mated reads. Our theory is implemented in a tool called GetDistr (https://github.com/ksahlin/GetDistr).}, URL = {https://www.biorxiv.org/content/early/2015/08/04/023929}, eprint = {https://www.biorxiv.org/content/early/2015/08/04/023929.full.pdf}, journal = {bioRxiv} }