arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.04702cs.DSq-bio.MN
收藏

ppsim:一个有效模拟和可视化人口协议的软件包

ppsim: A software package for efficiently simulating and visualizing population protocols

David Doty, Eric Severson

摘要:

我们介绍ppsim,一个软件包,用于有效地模拟人口协议,一个广泛研究的子类的化学反应网络(CRN),其中所有的反应有两个反应物和两个产品。动力学中的每一步都涉及从$n$分子群体中挑选一个均匀的随机对进行碰撞并产生(潜在的零)反应。在最近的一项突破中,Berenbrink,Hammer,Kaaser,Meyer,Penschuck和Tran [ESA 2020]发现了一种比朴素算法快二次方的种群协议模拟算法,在 * 恒定 * 时间内模拟$Θ(\sqrt{n})$反应(独立于$n$,尽管时间与物种数量成比例),同时保留 * 精确 * 随机动力学。ppsim实现了该算法,并使用了经过严格优化的Cython实现,可以在几秒钟内精确模拟数千亿次反应。它动态切换到CRN吉莱斯皮算法的效率增益时,在配置中的适用反应的数量变小。作为一个Python库,ppsim还包括许多有用的工具,用于在Xueyter笔记本中进行数据可视化,允许对时间动态进行强大的可视化,例如时间快照的直方图和平均重复试验。最后,我们给出了一个框架,采取任何CRN只有双分子(2反应物,2产品)或单分子(1反应物,1产品)反应,任意速率常数,并将其编译成一个连续时间人口协议。这使得ppsim可以从化学主方程精确采样(不像近似的化学方法,如tau-leaping或LNA),同时在运行时间上实现渐近增益。在链接的CRYTER笔记本中,我们证明了该工具在分子编程中感兴趣的一些协议上的有效性,包括DNA链置换反应的近似大多数CRN和CRN模型。

英文摘要:

We introduce ppsim, a software package for efficiently simulating population protocols, a widely-studied subclass of chemical reaction networks (CRNs) in which all reactions have two reactants and two products. Each step in the dynamics involves picking a uniform random pair from a population of $n$ molecules to collide and have a (potentially null) reaction. In a recent breakthrough, Berenbrink, Hammer, Kaaser, Meyer, Penschuck, and Tran [ESA 2020] discovered a population protocol simulation algorithm quadratically faster than the naive algorithm, simulating $Θ(\sqrt{n})$ reactions in *constant* time (independently of $n$, though the time scales with the number of species), while preserving the *exact* stochastic dynamics. ppsim implements this algorithm, with a tightly optimized Cython implementation that can exactly simulate hundreds of billions of reactions in seconds. It dynamically switches to the CRN Gillespie algorithm for efficiency gains when the number of applicable reactions in a configuration becomes small. As a Python library, ppsim also includes many useful tools for data visualization in Jupyter notebooks, allowing robust visualization of time dynamics such as histogram plots at time snapshots and averaging repeated trials. Finally, we give a framework that takes any CRN with only bimolecular (2 reactant, 2 product) or unimolecular (1 reactant, 1 product) reactions, with arbitrary rate constants, and compiles it into a continuous-time population protocol. This lets ppsim exactly sample from the chemical master equation (unlike approximate heuristics such as tau-leaping or LNA), while achieving asymptotic gains in running time. In linked Jupyter notebooks, we demonstrate the efficacy of the tool on some protocols of interest in molecular programming, including the approximate majority CRN and CRN models of DNA strand displacement reactions.

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

↑