打开蠕虫分析工具箱

open_worm_analysis_toolbox的Python项目详细描述


https://github.com/openworm/open-worm-analysis-toolboxGitHub licenseTravis-CIBountySource

|打开蠕虫分析工具箱

open worm analysis toolbox是schafer实验室的Worm Analysis Toolbox 1.3.4的python端口。

它可用于将{em1}$c.elegans的视频处理为统计数据,以便比较单个蠕虫的行为。

它也是openworm项目使用的一个包,用于确定其模拟蠕虫的行为与真实蠕虫的行为有多相似。它是作为OpenWorm project的子项目启动的。

OWAT is on PyPI,所以要安装,只需键入:

pip install open_worm_analysis_toolbox

贡献者请参见:

用法示例

importopen_worm_analysis_toolboxasmv# Load a "basic" worm from a filebw=mv.BasicWorm.from_schafer_file_factory("example_contour_and_skeleton_info.mat")# Normalize the basic wormnw=mv.NormalizedWorm.from_BasicWorm_factory(bw)# Plot this normalized worm    wp=mv.NormalizedWormPlottable(nw,interactive=False)wp.show()# Obtain featureswf=mv.WormFeatures(nw)

稍后,如果我们有控制蠕虫,我们可以对蠕虫运行统计信息:

# Compute histogramsexperiment_histograms=mv.HistogramManager([wf,wf])control_histograms=mv.HistogramManager(control_worms)# Compute statisticsstat=mv.StatisticsManager(experiment_histograms,control_histograms)# Plot statistics for the first extended featurestat[0].plot(ax=None,use_alternate_plot=True)# Give an overall assessment of the worm's similarity to the control setprint("Nonparametric p and q values are %.2f and %.2f, respectively."%(stat.min_p_wilcoxon,stat.min_q_wilcoxon))

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

推荐PyPI第三方库


热门话题
ArrayList Java中的搜索字符串   另一个web应用程序的java访问会话   另一个应用程序中的活动和服务之间的java通信   java根据Json字符串类型将Json字符串转换为对象   eclipse如何解决java中的错误异常。lang.NoSuchMethodError:'java。字符串javax。摆动JOptionPane。showInputDialog(java.lang.String)'   线程“main”java中的安卓异常。lang.NoClassDefFoundError:org/codehaus/jackson/JsonParseException   java如何在安卓 emulator上显示Mat图像?使用NDK   Java在本地读取测试源文件,但在服务器上读取失败   java dowhile循环用于计算输入数字中的数字。故障排除代码   JAva初学者在编写获取成本的方法时遇到困难   java是shell游戏。我如何让物体移动,特别是在特定的曲线上,但顺序是随机的?   java如何区分两个同名的JButton   java为什么我在Spring Boot中需要一个接口?   java将文件路径插入数据库将删除\   使用InterfaceType初始化java对象   java如何部署一个分为Angular、Spring Boot和MySQL的项目?   java如何使用Symja解决不等式?