arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.06603q-bio.GNcs.LOcs.PL
收藏

高吞吐量排序应用中的类型安全坐标系统

Typesafe Coordinate Systems in High-Throughput Sequencing Applications

Charles Thomas Gregory, James S. Blachly

摘要:

高通量测序文件格式和工具以至少四种不同的、不兼容的方式编码相对于参考序列的坐标区间。集成不同格式的数据以及在不同格式之间移动数据可能会引入细微的逐个错误。在这里,我们引入类型安全坐标的概念:坐标区间不仅是一个整数对,而且是一个包含四种类型的类型类的成员:零或一个基的笛卡尔积,以及开或闭区间端。通过利用静态和强类型的编译语言的类型系统,我们可以提供静态保证,消除整个类的错误。我们提供了一个D语言的参考实现,作为一个更大的工作(dhtslib)的一部分,以及Rust,OCaml和Python的概念证明。探索性实现可在https://github.com/blachlylab/typesafe-coordinates上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑