Desert v. Vinegar Flies: Eye Allometry
收藏资源简介:
Instructions needed to generate the statistics and figures used in Eye Allometry results: Make sure Python 3.6+ and the following Python packages are installed (try pip): -matplotlib -numpy -pandas -pickle -scikit-image -scipy -seaborn -statsmodels-eye_tools (from https://github.com/jpcurrea/eye_tools.git) A. Plot figures and calculate important statistics: In the terminal, cd to the downloaded folder and run the following: ~! python3 plot.py Running this script produces the following image files: -eye_composition.png -eye_composition.svg -eye_shape.png -eye_shape.svg -fields_of_view.png -fields_of_view.svg -optical_performance.png -optical_performance.svg We've also already saved the following files: -stats.txt: allometric statistics collated by measurement -stats.csv: allometric statistics used for table B. To generate the allometric data from scratch: 1. unzip image_stacks.zip, creating a folder of the same name 2. run the following: ~! python3 analysis.py Running this script produces the following: -allometry_data.csv: readable measurements dataframe -allometry_data.pkl: pickled measurements dataframe 3. to plot the data, running process A. above. C. To generate Supplemental Figure 2, cd to the downloaded folder and run the following: ~! python3 plot_demo.py
用于生成眼部异速生长(Eye Allometry)结果中统计数据与图表的操作指南:请确保已安装Python 3.6及以上版本,并通过pip安装以下Python依赖包:matplotlib、numpy、pandas、pickle、scikit-image、scipy、seaborn、statsmodels,以及来自https://github.com/jpcurrea/eye_tools.git的eye_tools库。 A. 绘制图表并计算关键统计量: 在终端中切换至已下载的文件夹,执行以下命令: ~! python3 plot.py 运行该脚本将生成以下图像文件: - eye_composition.png - eye_composition.svg - eye_shape.png - eye_shape.svg - fields_of_view.png - fields_of_view.svg - optical_performance.png - optical_performance.svg 此外已预先保存以下文件: - stats.txt:按测量项整理的异速生长统计数据 - stats.csv:用于制表的异速生长统计数据 B. 从零开始生成异速生长数据: 1. 解压image_stacks.zip,得到同名文件夹 2. 执行以下命令: ~! python3 analysis.py 运行该脚本将生成以下文件: - allometry_data.csv:易读的测量数据帧(DataFrame) - allometry_data.pkl:以pickle格式序列化的测量数据帧 3. 如需绘制数据图表,请执行上文步骤A。 C. 生成补充图2:切换至已下载的文件夹,执行以下命令: ~! python3 plot_demo.py




