张金龙的博客分享 http://blog.sciencenet.cn/u/zjlcas 物种适应性、分布与进化

博文

怎样运行Lagrange软件

已有 8352 次阅读 2010-8-3 14:32 |个人分类:科研笔记|系统分类:科研笔记| Python, 地理分布, Lagrange

注意! 运行Lagrange软件的指南随后贴出,现在的版本仅供参考。

 

How to run Lagrange in Windows XP

"Lagrange is a Python package implementing likelihood models for geographic range evolution on phylogenetic trees, with methods for inferring rates of dispersal and local extinction and ancestral ranges. "     http://code.google.com/p/lagrange/ 
1 Download and install Python NumPy and SciPy

Lagrange requires Python, NumPy and SciPy, the first step is to download and install these software.

Download and install Python2.5, because SciPy requires this version, it can be downloaded fromhttp://www.python.org/download/

Download and install NumPy and SciPy ,you can down load the exe files form

http://sourceforge.net/project/showfiles.php?group_id=27747  for SciPy

http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 for NumPi

It is strongly recommended that you download the  numpy-1.2.1-win32-superpack-python2.5.exe, since the  imcompatible problems may exist if you installed a incorrect version.

You can visit scipy's website for more detail.

http://www.scipy.org/

2 Copy the Lagrange modules to working directory

Assume you have had all the software that Lagrange required installed on your PC. You may seed a directory under C:Python25

now unzip your lagrange2[1].0.1.tar.gz

copy all the file in the directory which just unzipped to C:python25

3 Data preparation

The python scripts for exercise can be downloaded at

http://bodegaphylo.wikispot.org/Biogeography_%28Donoghue_%26_Smith%29

copy the test python script named psychotria.py and psychotria.matrix to python directory, C:python25  .

4 Run python scripts in cmd

The python scripts can be implement in commander just which just like the DOS , to run the script, begin here:

Begin>run> type cmd

a commander window will appeared

just type cd C:python25  to change your working directory to test

and type  psychotria.py>results.txt  “>results.txt” allowed you to save the results of the scripts in “results.txt”

When all are got ready , the python script will be run in your PC



https://blog.sciencenet.cn/blog-255662-349643.html

上一篇:从DNA序列预测RFLP—seqRFLP软件包简介
下一篇:计算生态位宽度与生态位重叠的R程序
收藏 IP: 159.226.89.*| 热度|

1 黄富强

发表评论 评论 (5 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-23 07:01

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部