Skip to content

How to install the tree visualizator InTreeGreat

Jean-François edited this page Feb 2, 2021 · 8 revisions

First of all, download the whole package in your working directory:

git clone https://github.com/SouthGreenPlatform/rap-green.git

Step 1 : Installation on the webserver

  • From your GitHub instance, copy the whole www/treedisplay/ directory on your webserver, in a web accessible location. The Apache service must be installed on the webserver (tested with Apache 2.4.12 and Tomcat 8.5.51).

  • Create the configuration file with the command: cp config_draft.php config.php . You could then edit several parameters (for example the address linked to the leaves), but it is not mandatory.

  • Create the CSS file with the command: cp treedisplay_draft.css treedisplay.css . that you can edit at will to change the look and feel.

Step 2 : upload

Two methods are available to display a user chosen tree:

  • You can upload the tree using the "File" menu in the web interface

  • You can create a web formulary, fill a text field named and identified with the hiddenfield string, and then submit the formulary to the index.php file.

An example file is available in the deposit here: example_files/example_colored_annotated_tree.nwk , in the NHX format. NHX zones can contain several informations, like duplication events or branch colors.