注意! 运行Lagrange软件的指南随后贴出,现在的版本仅供参考。
“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.
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