一种基于agent的生物细胞系统仿真框架等。

cellsystem的Python项目详细描述


https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg

一种基于agent的生物细胞系统仿真框架。

这是为了模拟癌症的生长,考虑到营养和细胞迁移,同时允许跟踪突变、细胞分裂和细胞位置历史,以研究肿瘤系统发育重建算法。

https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/sidebyside.pnghttps://raw.githubusercontent.com/Ad115/Cell-System/master/assets/spacetime.png

安装

您可以从pypi安装它:

$ pip install cellsystem

示例

存储库中集成的用例:

>>>fromcellsystemimport*# The cell system will simulate cell growth# while tracking the steps in that process.>>>system=CellSystem(grid_shape=(100,100))# Initialize the first cell# in the middle of the grid>>>system.seed()Newcell0added@(50,50)# Take 35 steps forward in time>>>system.run(steps=30)Cellno.0mutating@site(50,50)(fatherNone)Initialmutations:[]Initialgenome:AAAAAAAAAAFinalmutations:[(4,'G')]Finalgenome:AAAAGAAAAACellno.0dividing@(50,50)Newcells:1@(49,50)and2@(50,51)Cellno.2dividing@(50,51)Newcells:3@(51,52)and4@(51,52)Cellno.4mutating@site(51,52)(father2)Initialmutations:[(4,'G')]Initialgenome:AAAAGAAAAAFinalmutations:[(4,'G'),(7,'A')]Finalgenome:AAAAGAAAAACellno.1death@site(49,50)(fatherNone)Cellno.3death@site(51,52)(father2)Cellno.4mutating@site(51,52)(father2)Initialmutations:[(4,'G'),(7,'A')]Initialgenome:AAAAGAAAAAFinalmutations:[(4,'G'),(7,'A'),(2,'T')]Finalgenome:AATAGAAAAACellno.4migratingfromsite(51,52)(father2)Newsite:(50,52).........# Prepare to explore the simulation logs>>>history=system['log']# First, let's see the cells' evolution in time and space!>>>history.worldlines().show()# Remove the cells that died somewhere along the way>>>history.worldlines(prune_death=True).show()
https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/geometry.pnghttps://raw.githubusercontent.com/Ad115/Cell-System/master/assets/geometry_no_death.png
>>>tree_style={'show_leaf_name':True,...'mode':'c',# Circular...'arc_start':-135,# Degrees...'arc_span':270}# Degrees also# Lookup the tree formed by cellular division>>>history.ancestry().show(styling=tree_style)# Now, remove cells that are no longer alive>>>history.ancestry(prune_death=True).show(styling=tree_style)
https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/ancestry.pnghttps://raw.githubusercontent.com/Ad115/Cell-System/master/assets/ancestry_no_death.png
# Now, check out the tree formed by the mutations>>>history.mutations().show(styling=tree_style)# Remove genomes with no living representatives.>>>history.mutations(prune_death=True).show(styling=tree_style)
https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/mutations.pnghttps://raw.githubusercontent.com/Ad115/Cell-System/master/assets/mutations_no_death.png

几乎模拟的每个方面都是可定制的。你可以添加几种不同类型的相互作用的细胞系, 另外,具有不同几何形状和扩散的世界,具有其他可记录特征的细胞, 其他种类的原木。改变每个细胞的死亡率、移动速度等,甚至增加新的细胞行为!

目前,用于这样做的文档分散在类文档字符串中,但是一个好的开始是 通过监视cellsystem.CellSystem类的源。

作者Ad115-Githuba.garcia230395@gmail.com

根据麻省理工学院的许可证发行。有关详细信息,请参见LICENSE

贡献

  1. 检查打开的问题或打开一个新的问题,开始围绕功能想法或错误的讨论。
  2. forkthe repository在github上,开始对从master分支派生的功能分支进行更改。
  3. 编写一个测试,显示错误已修复或功能按预期工作。
  4. 发送一个pull请求并对维护程序进行bug操作,直到它被合并并发布。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在java中将字符串转换为音频输入   java如何使用Spring Boot RestTemplate解组json列表   计算机上C++ OpenCV项目转换为OpenCV Android的java步骤   Java Spring Telegraf数据表不工作   openurlconnection与connect之间的java差异?   java Solr字段搜索、通配符和转义字符   java如何使用DLFolderLocalServiceUtil类的getFolders()方法?   尝试用Java编写文件   java连续双缓冲解决方案不起作用   两个数组的Java乘积   java Jackson,如何正确编写自定义反序列化程序   java将布尔标志按一定顺序排列以获得更好的性能是否有意义   java Vaadin无缓冲网格无法关闭   java在MySQL中以同一用户身份同时从不同客户端登录安全吗?   java如何使用安卓asynchttp库   java无法在Android中使用AlarmManager停止服务   java在Hibernate的XML配置文件中指定默认值   Spring启动应用程序中的java内存SQLITE不工作   Java代码无法写入文本文件,