定量生物学 > 基因组学
[提交于 2022年9月14日]
标题:Typesafe Coordinate Systems in High-Throughput Sequencing Applications
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:High-throughput sequencing file formats and tools encode coordinate intervals with respect to a reference sequence in at least four distinct, incompatible ways. Integrating data from and moving data between different formats has the potential to introduce subtle off-by-one errors. Here, we introduce the notion of typesafe coordinates: coordinate intervals are not only an integer pair, but members of a type class comprising four types: the Cartesian product of a zero or one basis, and an open or closed interval end. By leveraging the type system of statically and strongly-typed, compiled languages we can provide static guarantees that an entire class of error is eliminated. We provide a reference implementation in D as part of a larger work (dhtslib), and proofs of concept in Rust, OCaml, and Python. Exploratory implementations are available at https://github.com/blachlylab/typesafe-coordinates.
提交历史
来自:James Blachly[v1] 2022年9月14日 星期三 12:41:52 UTC