File: installation.rst

package info (click to toggle)
python-treetime 0.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,316 kB
  • sloc: python: 8,437; sh: 124; makefile: 49
file content (66 lines) | stat: -rw-r--r-- 1,825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Installation
============

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:

* numpy, scipy, pandas: for all kind of mathematical operations as matrix
  operations, numerical integration, interpolation, minimization, etc.
* BioPython: for parsing multiple sequence alignments and phylogenetic trees
* matplotlib: optional dependency for plotting


Installing from PyPi or Conda
-----------------------------

You can also install TreeTime from PyPi via

.. code:: bash

  pip install phylo-treetime

You might need root privileges for system wide installation.
Similarly, you can install from conda using

.. code:: bash

  conda install -c bioconda treetime


Installing from source
----------------------
Clone or download the source code.

.. code:: bash

  git clone https://github.com/neherlab/treetime.git
  cd treetime
  pip install .

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.


Building the documentation
--------------------------

The API documentation for the TreeTime package is generated created with Sphinx. The source code for the documentaiton is located in doc folder.

  - sphinx-build to generate static html pages from source. Installed as

  .. code:: bash

	pip install Sphinx

  - basicstrap Html theme for sphinx:

  .. code:: bash

	pip install recommonmark sphinx-argparse sphinx_rtd_theme

After required packages are installed, navigate to doc directory, and build the docs by typing:

 .. code:: bash

   make html

Instead of html, another target as `latex` or `epub` can be specified to build the docs in the desired format.