The simplest way to get Treerecs is to download the precompiled binaries.
- GNU/Linux & OS X
We advise windows users to run Treerecs via Seaview.
Install and launch Seaview, then open a gene tree file (for instance one of those provided in the examples) and choose “Reconcile->Reconcile, root and rearrange with Treerecs” in the menu.
2) Build from source
Alternatively, you can download the source code and compile it yourself.
This should be straightforward since the only requirements are CMake and a C++14-capable compiler.
2.1) Get the source code
2.1.2) Clone the git repository
If you wish to stay tuned and always have the latest version of Treerecs at hand, you can clone the git repository:
- using https:
git clone https://gitlab.inria.fr/Phylophile/Treerecs.git
- or using ssh (requires a registered ssh key):
git clone firstname.lastname@example.org:Phylophile/Treerecs.git
See also the gitlab page.
2.2) Build Treerecs
Open a terminal and cd into the Treerecs directory
From the Treerecs directory run the following commands:
cmake -DCMAKE_BUILD_TYPE=Release .
The created executable can be found in the bin directory.
You can try e.g.:
2.3) Install Treerecs (optional)
If you wish to install Treerecs on your system, run the following command from the Treerecs directory:
sudo make install
To uninstall Treerecs:
sudo make uninstall