-
Notifications
You must be signed in to change notification settings - Fork 5
How to install a phylogenetic tree pattern matching service
First of all, download the whole package in your working directory:
git clone https://github.com/SouthGreenPlatform/rap-green.git
The pattern matching daemon is a Java process that load the phylogenetic tree collection in the RAM, and interact with the tree pattern editor using a client-server protocol, taking in charge the combinatory part of the method. So, the daemon should be installed in a server with enough RAM (count 3-5 Go for 1,000,000 terminal genes). The daemon server should be visible from the web server that will host the www facilites, and a logical port should be opened.
- Compile the RapGreen java package (mostly tested in Java 1.8, but compatible with newer of older versions):
cd rap-green
javac rapgreen/*.java
Note that you can choose to directly use the
bin/RecDaemon.jar
executable archive file if you have the same JDK version used to compile this available version, which is JDK8.
-
Prepare your files, one must contain the phylogenetic tree collection, and one must contain the species tree labeled with internal and terminal taxa.
- The phylogenetic tree collection contains one tree per line, composed with the family identifier (any unique label) and the tree in NHX format. NHX zone must hold a
:S=
for the species at the leaves, and aD=Y/N
for duplication/speciation nodes (duplication, yes or no). An example is provided in:rap-green/example_files/phylo_tree_collection_example.nwk
- The species tree is a simple Newick file, containing species names as labels. An example is provided in:
rap-green/example_files/species_tree_example.nwk
- The phylogenetic tree collection contains one tree per line, composed with the family identifier (any unique label) and the tree in NHX format. NHX zone must hold a
-
Then, you can start the daemon. If you compiled your own version, use this command line:
nohup java -cp /[...]/rap-green rapgreen/ReconciliationDatabaseDaemon -standard myDatabase my_species_tree.nwk my_phylo_tree_collection.nwk &
And if you use the .jar provided file:
nohup java -jar /[...]/RecDaemon.jar -standard myDatabase my_species_tree.nwk my_phylo_tree_collection.nwk &
Please replace the
[...]
by the corresponding path, depending your working directories.
- From your GitHub instance, copy the whole
www/treepattern/
directory on your webserver, in a web accessible location.
Please don't hesistate to contact the webmaster.