Skip to content

Souce code installation

ajing edited this page Feb 24, 2016 · 7 revisions

The following instruction has been tested on Ubuntu 14.04

Below an installation recipe for building from the source code.

Prerequisites (Dependencies)

The full ChemTreeMap installation needs RDKit, ETE2, and GraphViz.

RDKit

RDKit is an Open source toolkit for cheminformatics.

A number of installation recipes are presented on RDKit installation page.

For Ubuntu system, RDKit is available via the Ubuntu repositories. To install:

$ sudo apt-get install python-rdkit librdkit1 rdkit-data

ETE2

The ETE2 toolkits are Python library that assists in the analysis, manipulation and visualization of (phylogenetic) trees.

A number of ways to install ETE2 are shown here.

The pypi way https://pypi.python.org/pypi/ete2 is:

$ pip install --upgrade ete2

Or using easy_install:

$ sudo easy_install -U ete2

GraphViz

Graphviz (short for Graph Visualization Software) is a package of open-source tools initiated by AT&T Labs Research for drawing graphs specified in DOT language scripts.

ChemTreeMap uses sfdp (the multiscale version of fdp) to render the final graph. sfdp requires GNU Triangulated Surface Library (GTS) for installation.

Install GTS

GTS is critical for sfdp to render nice graph. GTS can be built from source. GTS depends on glib, which can be install in Ubuntu by

$ sudo apt-get install libglib2.0-dev

Then, download GTS from here, and build from the source code following the instruction.

After GTS installed, the configuration program of GraphViz will recognize GTS, and install sfdp.

Install Graphviz

This link http://www.graphviz.org/doc/build.html shows how to install GraphViz from the source code.

On linux system:

./configure
make
make install

Install ChemTreeMap

With all dependencies installed, ChemTreeMap application can be built from the source code located on github.

$ git clone https://github.com/ajing/ChemTreeMap.git
$ cd ChemTreeMap/backend
$ python setup.py install

After installation, examples can be run by:

$ cd treebuild/examples
$ python examples.py