Debian Codegraph @

docs/source/installation.rst

raw
1 Installation
2 ============
3
4 TreeTime is compatible with Python 2.7 upwards and is tested on 2.7, 3.5, and 3.6. It depends on several Python libraries:
5
6 * numpy, scipy, pandas: for all kind of mathematical operations as matrix
7 operations, numerical integration, interpolation, minimization, etc.
8 * BioPython: for parsing multiple sequence alignments and phylogenetic trees
9 * matplotlib: optional dependency for plotting
10
11
12 Installing from PyPi or Conda
13 -----------------------------
14
15 You can also install TreeTime from PyPi via
16
17 .. code:: bash
18
19 pip install phylo-treetime
20
21 You might need root privileges for system wide installation.
22 Similarly, you can install from conda using
23
24 .. code:: bash
25
26 conda install -c bioconda treetime
27
28
29 Installing from source
30 ----------------------
31 Clone or download the source code.
32
33 .. code:: bash
34
35 git clone https://github.com/neherlab/treetime.git
36 cd treetime
37 pip install .
38
39 You might need root privileges for system wide installation. Alternatively, you can simply use it TreeTime locally without installation. In this case, just download and unpack it, and then add the TreeTime folder to your $PYTHONPATH.
40
41
42 Building the documentation
43 --------------------------
44
45 The API documentation for the TreeTime package is generated created with Sphinx. The source code for the documentaiton is located in doc folder.
46
47 - sphinx-build to generate static html pages from source. Installed as
48
49 .. code:: bash
50
51 pip install Sphinx
52
53 - basicstrap Html theme for sphinx:
54
55 .. code:: bash
56
57 pip install recommonmark sphinx-argparse sphinx_rtd_theme
58
59 After required packages are installed, navigate to doc directory, and build the docs by typing:
60
61 .. code:: bash
62
63 make html
64
65 Instead of html, another target as `latex` or `epub` can be specified to build the docs in the desired format.
66